📄 decursive.xml
字号:
</Size>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentTexture" >
<Size>
<AbsDimension x="30" y="30"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="$parent"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:RegisterForClicks('LeftButtonDown','RightButtonDown');
this.unit = nil;
this.DebuffIndex = 0;
</OnLoad>
<OnEnter>
DcrDisplay_Tooltip:SetOwner(this, "ANCHOR_BOTTOMLEFT");
DcrDisplay_Tooltip:ClearLines();
DcrDisplay_Tooltip:SetUnitDebuff(this.unit,this.DebuffIndex);
DcrDisplay_Tooltip:Show();
</OnEnter>
<OnLeave>
DcrDisplay_Tooltip:Hide();
</OnLeave>
<OnClick>
TargetUnit(this.unit);
if UnitIsVisible("target") then
Dcr_CureTarget("target");
end
</OnClick>
</Scripts>
</Button>
</Frames>
</Button>
<Frame name="DecursiveName" frameStrata="LOW" toplevel="true" enableMouse="true" movable="true" parent="UIParent">
<Size>
<AbsDimension x="125" y="25"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="UIErrorsFrame" relativePoint="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TitleRegion setAllPoints="true"/>
<Backdrop 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="BACKGROUND">
<FontString name="$parentText" inherits="GameFontNormalSmall" text="Decursive">
<Size>
<AbsDimension x="80" y="25"/>
</Size>
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
getglobal(this:GetName().."Text"):SetText(DCR_VERSION_STRING);
this:SetBackdropBorderColor(1,1,1,0);
</OnLoad>
<OnEnter>
this:SetBackdropBorderColor(1,1,1,0.8);
</OnEnter>
<OnLeave>
this:SetBackdropBorderColor(1,1,1,0);
</OnLeave>
</Scripts>
<Frames>
<Frame name="$parentDropDown" inherits="UIDropDownMenuTemplate" hidden="true">
<Scripts>
<OnLoad>
Dcr_MainDropDownMenu_OnLoad();
</OnLoad>
</Scripts>
</Frame>
<Button name="$parentHideOthers">
<Size>
<AbsDimension x="113" y="13" />
</Size>
<Anchors>
<Anchor point="CENTER" relativePoint="CENTER" relativeTo="$parent"/>
</Anchors>
<Scripts>
<OnLoad>
this:RegisterForClicks('RightButtonDown');
</OnLoad>
<OnClick>
ToggleDropDownMenu(1, nil,DecursiveNameDropDown,this,40,0);
</OnClick>
<OnEnter>
Dcr_DisplayTooltip(DCR_MAINWINDOW_TIP);--DCR_MAINWINDOW_TIP = "拖动边框可以移动\n右键单击打开菜单";
</OnEnter>
<OnLeave>
DcrDisplay_Tooltip:Hide();
</OnLeave>
</Scripts>
</Button>
</Frames>
</Frame>
<MessageFrame name="DecursiveAfflictedListFrame" frameStrata="LOW" toplevel="true" parent="UIParent">
<Size>
<AbsDimension x="80" y="25" />
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="DecursiveName">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnUpdate>
Dcr_AfflictedListFrame_Update(arg1);
</OnUpdate>
</Scripts>
<Frames>
<!--Button name="$parentList" inherits="GameMenuButtonTemplate" text="P">
<Size>
<AbsDimension x="40" y="20" />
</Size>
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent">
<Offset>
<AbsDimension x="-4" y="0" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:SetText(DCR_LIST);
</OnLoad>
<OnClick>
if DecursiveListFrame:IsVisible() then
DecursiveListFrame:Hide();
else
Dcr_HideSkipIndex();
DecursiveListFrame:Show();
end
DecursiveListFrame.IsPrio = true;
Dcr_AutoAdd = false;
DecursiveAddTip:Hide();
</OnClick>
<OnEnter>
Dcr_DisplayTooltip(DCR_LIST_STR);
</OnEnter>
<OnLeave>
DcrDisplay_Tooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Button name="$parentOptions" inherits="GameMenuButtonTemplate" text="O">
<Size>
<AbsDimension x="40" y="20" />
</Size>
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentList">
<Offset>
<AbsDimension x="-4" y="0" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:SetText(DCR_OPTIONS);
</OnLoad>
<OnClick>
Dcr_ShowHideOptionsUI();
</OnClick>
<OnEnter>
Dcr_DisplayTooltip(DCR_OPT_STR);
</OnEnter>
<OnLeave>
DcrDisplay_Tooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Button name="$parentHideHeader" inherits="GameMenuButtonTemplate" text="Hide">
<Size>
<AbsDimension x="40" y="20" />
</Size>
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentOptions">
<Offset>
<AbsDimension x="-4" y="0" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:SetText(DCR_HIDEHEADER);
</OnLoad>
<OnClick>
DecursiveAfflictedListFrameHide:Hide();
DecursiveAfflictedListFrameHideHeader:Hide();
DecursiveAfflictedListFrameOptions:Hide();
DecursiveAfflictedListFrameList:Hide();
DecursiveName:Hide();
Dcr_vars.Show_LiveList = 3;
DEFAULT_CHAT_FRAME:AddMessage(DCR_RESHOW_HEADER_MSG,0.1, 0.1, 1);
</OnClick>
<OnEnter>
Dcr_DisplayTooltip(DCR_HIDEHEADER_STR);
</OnEnter>
<OnLeave>
DcrDisplay_Tooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Button name="$parentHide" inherits="GameMenuButtonTemplate" text="X">
<Size>
<AbsDimension x="20" y="20" />
</Size>
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parentHideHeader">
<Offset>
<AbsDimension x="-4" y="0" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
Dcr_ShowHideAfflictedListUI();
DEFAULT_CHAT_FRAME:AddMessage(DCR_RESHOW_MSG,0.1, 0.1, 1);
</OnClick>
<OnEnter>
Dcr_DisplayTooltip(DCR_HIDE_MAIN);
</OnEnter>
<OnLeave>
DcrDisplay_Tooltip:Hide();
</OnLeave>
</Scripts>
</Button-->
<Button name="$parentListItem1" inherits="DecursiveAfflictedTemplate">
<Anchors>
<Anchor point="TOP" relativeTo="$parent" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentListItem2" inherits="DecursiveAfflictedTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem1">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentListItem3" inherits="DecursiveAfflictedTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem2">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentListItem4" inherits="DecursiveAfflictedTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem3">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentListItem5" inherits="DecursiveAfflictedTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem4">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentListItem6" inherits="DecursiveAfflictedTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem5">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentListItem7" inherits="DecursiveAfflictedTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem6">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentListItem8" inherits="DecursiveAfflictedTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem7">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentListItem9" inherits="DecursiveAfflictedTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem8">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentListItem10" inherits="DecursiveAfflictedTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem9">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentListItem11" inherits="DecursiveAfflictedTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem10">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentListItem12" inherits="DecursiveAfflictedTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem11">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentListItem13" inherits="DecursiveAfflictedTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem12">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentListItem14" inherits="DecursiveAfflictedTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem13">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentListItem15" inherits="DecursiveAfflictedTemplate">
<Anchors>
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parentListItem14">
<Offset>
<AbsDimension x="0" y="5" />
</Offset>
</Anchor>
</Anchors>
</Button>
</Frames>
</MessageFrame>
<Frame name="DecursiveListFrame" frameStrata="LOW" toplevel="true" enableMouse="true" movable="true" hidden="true" parent="UIParent">
<Size>
<AbsDimension x="180" y="270" />
</Size>
<Anchors>
<Anchor point="CENTER" />
</Anchors>
<TitleRegion setAllPoints="true"/>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-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>
<Scripts>
<OnEnter>
if this.IsPrio then
Dcr_DisplayTooltip(DCR_PRIOLIST_TIP);
else
Dcr_DisplayTooltip(DCR_SKIPLIST_TIP);
end
</OnEnter>
<OnLeave>
DcrDisplay_Tooltip:Hide();
</OnLeave>
<OnLoad>
this:RegisterEvent("PLAYER_TARGET_CHANGED");
this.IsPrio = true;
this.PrioOffset = 0;
this.SkipOffset = 0;
DecursiveListFrameSlider:SetMinMaxValues(0,1);
DecursiveListFrameSlider:SetValue(0);
</OnLoad>
<OnEvent>
if (event == "PLAYER_TARGET_CHANGED") and Dcr_AutoAdd and this:IsVisible() then
if this.IsPrio then
if not Dcr_IfToTop then
Dcr_AddTargetToPriorityList();
else
Dcr_AddTargetToTopPosOfPriorityList();
end
else
Dcr_AddTargetToSkipList();
end
end
</OnEvent>
<OnUpdate>
Dcr_ListFrame_Update();
</OnUpdate>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -