📄 kalented.xml
字号:
<ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">
<!-- Language Support Files: English, French, German -->
<Script file="localization.lua" />
<!-- Main Scripting File -->
<Script file="Kalented.lua" />
<!-- Virtual Templates -->
<Button name="KO_Kalented_ButtonTemplate" inherits="TalentButtonTemplate" virtual="true">
<Scripts>
<OnLoad>
this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
</OnLoad>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
KO_Kalented_SetTalentTip();
</OnEnter>
<OnClick>
KO_Kalented_Button_OnClick(arg1);
</OnClick>
</Scripts>
</Button>
<!-- Kalented Expand Frame -->
<button name="KO_Kalented_ExpandButton" toplevel="true" parent="TalentFrame">
<Size>
<AbsDimension x="16" y="256" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="TalentFrame" relativePoint="TOPRIGHT">
<offset>
<AbsDimension x="-33" y="-38" />
</offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture name="KO_Kalented_Texture" />
</Layer>
</Layers>
<Scripts>
<OnClick>
if ( KO_Kalented_Frame:IsVisible() ) then
this:SetPoint("TOPLEFT", this:GetParent():GetName(), "TOPRIGHT", -33, -38);
HideUIPanel(KO_Kalented_Frame);
else
this:SetPoint("TOPLEFT", this:GetParent():GetName(), "TOPRIGHT", 284, -38);
ShowUIPanel(KO_Kalented_Frame);
end
</OnClick>
</Scripts>
<HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD" />
</button>
<!-- Kalented Frame -->
<Frame name="KO_Kalented_Frame" enableMouse="true" toplevel="true" parent="TalentFrame" hidden="true">
<Size>
<AbsDimension x="318" y="355" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="TalentFrame" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-33" y="-35" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture file="Interface\AddOns\Kalented\images\talented">
<TexCoords left="0" right="0.62109375" top="0" bottom="0.693359375" />
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture name="KO_Kalented_BackgroundTopLeft">
<Size>
<AbsDimension x="245" y="194" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="-58" />
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture name="KO_Kalented_BackgroundTopRight">
<Size>
<AbsDimension x="64" y="194" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="KO_Kalented_BackgroundTopLeft" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture name="KO_Kalented_BackgroundBottomLeft">
<Size>
<AbsDimension x="256" y="128" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="KO_Kalented_BackgroundTopLeft" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture name="KO_Kalented_BackgroundBottomRight">
<Size>
<AbsDimension x="64" y="128" />
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="KO_Kalented_BackgroundTopLeft" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="0" y="0" />
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
<Layer level="OVERLAY">
<FontString inherits="GameFontNormal" text="KO_TEXT_TITLE">
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-4" />
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="KO_Kalented_LevelText" inherits="GameFontNormalSmall" text="KO_TEXT_LEVEL">
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="10" y="-44" />
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="KO_Kalented_SpentText" inherits="GameFontNormalSmall" text="KO_TEXT_POINTSPENT">
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="10" y="12" />
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="KO_Kalented_SpentValue" inherits="GameFontHighlightSmall" text="0">
<Anchors>
<Anchor point="LEFT" relativeTo="KO_Kalented_SpentText" relativePoint="RIGHT">
<Offset>
<AbsDimension x="5" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="KO_Kalented_TalentText" inherits="GameFontNormalSmall" text="KO_TEXT_TALENTPOINT">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="280" y="12" />
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="KO_Kalented_PointsValue" inherits="GameFontHighlightSmall" text="0">
<Anchors>
<Anchor point="LEFT" relativeTo="KO_Kalented_TalentText" relativePoint="RIGHT">
<Offset>
<AbsDimension x="5" y="0" />
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<EditBox name="KO_Kalented_Level" letters="2" numeric="true" autoFocus="false" inherits="InputBoxTemplate" text="60">
<Size>
<AbsDimension x="30" y="16" />
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="KO_Kalented_LevelText" relativePoint="RIGHT">
<Offset>
<AbsDimension x="10" y="0" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnTabPressed>
KO_Kalented_Update();
</OnTabPressed>
<OnEnterPressed>
KO_Kalented_Update();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -