📄 ct_ramenu.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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
<Script file="CT_RAMenu.lua"/>
<Button name="CT_RA_PriorityTemplate" virtual="true" movable="true" hidden="false">
<Size>
<AbsDimension x="190" y="32"/>
</Size>
<Backdrop name="$parentBackdrop" bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
<EdgeSize>
<AbsValue val="16"/>
</EdgeSize>
<TileSize>
<AbsValue val="16"/>
</TileSize>
<BackgroundInsets>
<AbsInset left="5" right="5" top="5" bottom="5"/>
</BackgroundInsets>
</Backdrop>
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentName" inherits="ChatFontNormal" text="玩家">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnMouseDown>
this:StartMoving();
CT_RA_PriorityFrame.moving = this;
</OnMouseDown>
<OnMouseUp>
CT_RA_PriorityFrame.moving = nil;
this:StopMovingOrSizing();
CT_RA_Priority_SetPosition();
</OnMouseUp>
</Scripts>
</Button>
<Button name="CT_RA_DebuffSetTemplate" virtual="true" hidden="true">
<Size>
<AbsDimension x="192" y="25"/>
</Size>
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentName" justifyH="LEFT" inherits="ChatFontNormal">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="10" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
<Layer level="BACKGROUND">
<Texture name="$parentMO" hidden="true">
<Anchors>
<Anchor point="TOPLEFT"/>
<Anchor point="BOTTOMRIGHT"/>
</Anchors>
<Color r="1" g="1" b="1" a="1"/>
</Texture>
</Layer>
</Layers>
<Frames>
<Button name="$parentMoveUp" inherits="UIPanelScrollUpButtonTemplate" hidden="false">
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="150" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( not CT_RA_PriorityFrame:IsVisible() ) then
CT_RAMenuDebuff_MoveSetUp();
end
</OnClick>
<OnEnter>
if ( not CT_RA_PriorityFrame:IsVisible() ) then
if ( not this:GetParent().isHighlighted ) then
getglobal(this:GetParent():GetName() .. "MO"):SetVertexColor(1, 1, 1, 0.1);
end
getglobal(this:GetParent():GetName() .. "MO"):Show();
this:GetParent().isOver = 1;
end
</OnEnter>
<OnLeave>
this:GetParent().isOver = nil;
if ( not this:GetParent().isHighlighted ) then
getglobal(this:GetParent():GetName() .. "MO"):Hide();
end
</OnLeave>
</Scripts>
</Button>
<Button name="$parentMoveDown" inherits="UIPanelScrollDownButtonTemplate" hidden="false">
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentMoveUp">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
if ( not CT_RA_PriorityFrame:IsVisible() ) then
CT_RAMenuDebuff_MoveSetDown();
end
</OnClick>
<OnEnter>
if ( not CT_RA_PriorityFrame:IsVisible() ) then
if ( not this:GetParent().isHighlighted ) then
getglobal(this:GetParent():GetName() .. "MO"):SetVertexColor(1, 1, 1, 0.1);
end
getglobal(this:GetParent():GetName() .. "MO"):Show();
this:GetParent().isOver = 1;
end
</OnEnter>
<OnLeave>
this:GetParent().isOver = nil;
if ( not this:GetParent().isHighlighted ) then
getglobal(this:GetParent():GetName() .. "MO"):Hide();
end
</OnLeave>
</Scripts>
</Button>
</Frames>
<Scripts>
<OnEnter>
if ( not CT_RA_PriorityFrame:IsVisible() ) then
if ( not this.isHighlighted ) then
getglobal(this:GetName() .. "MO"):SetVertexColor(1, 1, 1, 0.1);
end
getglobal(this:GetName() .. "MO"):Show();
this.isOver = 1;
end
</OnEnter>
<OnLeave>
this.isOver = nil;
if ( not this.isHighlighted ) then
getglobal(this:GetName() .. "MO"):Hide();
end
</OnLeave>
<OnClick>
if ( not CT_RA_PriorityFrame:IsVisible() ) then
CT_RAMenuFrameDebuffSettingsNameEB:ClearFocus();
CT_RAMenuFrameDebuffSettingsDebuffTitleEB:ClearFocus();
CT_RAMenuFrameDebuffSettingsDebuffTypeEB:ClearFocus();
CT_RAMenuFrameDebuffSettingsDebuffDescriptEB:ClearFocus();
CT_RAMenuFrameDebuff.selectedIndex = this:GetID()+FauxScrollFrame_GetOffset(CT_RAMenuFrameDebuffUseScrollFrame);
CT_RAMenuFrameDebuff_UpdateSet();
end
</OnClick>
</Scripts>
</Button>
<Frame name="CT_RAMenuOptionSetTemplate" virtual="true" hidden="false">
<Size>
<AbsDimension x="550" y="25"/>
</Size>
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentName" inherits="ChatFontNormal" hidden="false">
<Anchors>
<Anchor point="LEFT"/>
</Anchors>
</FontString>
<Texture name="$parentLine" file="Interface\Tooltips\UI-Tooltip-Background" hidden="false">
<Size>
<AbsDimension x="550" y="1"/>
</Size>
<Anchors>
<Anchor point="BOTTOM">
<Offset>
<AbsDimension x="0" y="-5"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
</Layer>
</Layers>
<Frames>
<Button name="$parentDelete" inherits="GameMenuButtonTemplate" text="删除" hidden="false">
<Size>
<AbsDimension x="80" y="20"/>
</Size>
<Anchors>
<Anchor point="RIGHT"/>
</Anchors>
<Scripts>
<OnClick>
CT_RAMenu_DeleteSetFrame.name = this:GetParent().setName;
ShowUIPanel(CT_RAMenu_DeleteSetFrame);
</OnClick>
</Scripts>
</Button>
<Button name="$parentCopy" inherits="GameMenuButtonTemplate" text="复制" hidden="false">
<Size>
<AbsDimension x="80" y="20"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentDelete">
<Offset>
<AbsDimension x="-5" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
CT_RAMenu_NewSetFrame.from = this:GetParent().setName;
CT_RAMenu_NewSetFrame.type = "Copy";
ShowUIPanel(CT_RAMenu_NewSetFrame);
</OnClick>
</Scripts>
</Button>
<Button name="$parentLoad" inherits="GameMenuButtonTemplate" text="载入" hidden="false">
<Size>
<AbsDimension x="80" y="20"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parentCopy">
<Offset>
<AbsDimension x="-5" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
CT_RAMenu_CurrSet = this:GetParent().setName;
CT_RAMenu_Options["temp"] = CT_RAMenu_CopyTable(CT_RAMenu_Options[CT_RAMenu_CurrSet]);
CT_RAMenu_UpdateOptionSets();
CT_RA_UpdateRaidGroup(0);
CT_RA_UpdateMTs();
CT_RAMenu_UpdateMenu();
CT_RAOptions_Update();
</OnClick>
</Scripts>
</Button>
</Frames>
</Frame>
<Button name="CT_RAMenuHelpTemplateSub" virtual="true" hidden="false">
<Size>
<AbsDimension x="18" y="16"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-5" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="[?]">
<Anchors>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 0);
CT_RAMenuHelp_SetTooltip()
GameTooltip:SetText(this.text, 1, 0.72, 0, nil, 1);
GameTooltip:Show();
</OnEnter>
<OnLeave>
getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
GameTooltip:Hide();
</OnLeave>
<OnLoad>
this.text = "";
CT_RAMenuHelp_LoadText();
</OnLoad>
</Scripts>
</Button>
<Button name="CT_RAMenuHelpTemplateTitle" virtual="true" hidden="false">
<Size>
<AbsDimension x="18" y="16"/>
</Size>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentText" inherits="GameFontHighlightSmall" justifyH="RIGHT" text="[?]">
<Anchors>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
CT_RAMenuHelp_SetTooltip()
GameTooltip:SetText(this.text, 1, 0.72, 0, nil, 1);
</OnEnter>
<OnLeave>
getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 1);
GameTooltip:Hide();
</OnLeave>
<OnLoad>
this.text = "";
CT_RAMenuHelp_LoadText();
</OnLoad>
</Scripts>
</Button>
<Button name="CT_RAMenuHelpTemplateBuffs" virtual="true" hidden="false">
<Size>
<AbsDimension x="18" y="16"/>
</Size>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentText" inherits="GameFontNormalSmall" justifyH="RIGHT" text="[?]">
<Anchors>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 1);
CT_RAMenuHelp_SetTooltip()
GameTooltip:SetText(this.text, 1, 0.72, 0, nil, 1);
</OnEnter>
<OnLeave>
getglobal(this:GetName() .. "Text"):SetTextColor(1, 0.82, 0);
GameTooltip:Hide();
</OnLeave>
<OnLoad>
this.text = "";
CT_RAMenuHelp_LoadText();
</OnLoad>
</Scripts>
</Button>
<Button name="CT_RAMenuHelpTemplateFAQ" virtual="true" hidden="false">
<Size>
<AbsDimension x="48" y="16"/>
</Size>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentText" inherits="ChatFontNormal" justifyH="RIGHT" text="[回答]">
<Anchors>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
getglobal(this:GetName() .. "Text"):SetTextColor(0.82, 0.82, 0.82);
CT_RAMenuHelp_SetTooltip()
GameTooltip:SetText(this.text, 1, 0.72, 0, nil, 1);
</OnEnter>
<OnLeave>
getglobal(this:GetName() .. "Text"):SetTextColor(1, 1, 1);
GameTooltip:Hide();
</OnLeave>
<OnLoad>
this.text = "";
CT_RAMenuHelp_LoadText();
</OnLoad>
</Scripts>
</Button>
<Frame name="CT_RAMenuFrameBulletPointTemplate" virtual="true">
<Size>
<AbsDimension x="550" y="12"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<Texture file="Interface\QuestFrame\UI-Quest-BulletPoint">
<Size>
<AbsDimension x="16" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString name="$parentText" inherits="GameFontHighlightSmall" justifyH="LEFT">
<Size>
<AbsDimension x="548" y="0"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="17" y="-3"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
</Frame>
<Slider name="CT_RAMenuFrameSliderTemplate" virtual="true" inherits="OptionsSliderTemplate">
<Size>
<AbsDimension x="170" y="17"/>
</Size>
<Scripts>
<OnShow>
CT_RAMenuMisc_Slider_OnShow();
</OnShow>
<OnValueChanged>
CT_RAMenuMisc_Slider_OnChange();
</OnValueChanged>
<OnEvent>
CT_RAMenuMisc_Slider_OnEvent();
</OnEvent>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -