📄 decursive.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/">
<Script file="localization.lua"/>
<Script file="Decursive.lua"/>
<Button name="DecursiveAfflictedTemplate" frameStrata="LOW" enableMouse="true" virtual="true" hidden="true" >
<Size>
<AbsDimension x="125" y="30"/>
</Size>
<Backdrop 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>
<!-- The "name" field... is on a layer-->
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentIcon">
<Size>
<AbsDimension x="20" y="20"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent">
<Offset>
<AbsDimension x="5" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<Texture name="$parentClass" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes">
<Size>
<AbsDimension x="20" y="20"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentIcon">
<Offset>
<AbsDimension x="20" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString name="$parentName" justifyH="CENTER" inherits="GameFontNormalSmall" maxLines="1" text="Name">
<Size>
<AbsDimension x="75" y="15"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parent">
<Offset>
<AbsDimension x="-5" y="1"/>
<!--
图标大小为30,名字在离图标2的位置上
-->
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this.unit = "player";
this.DebuffIndex = 1;
this.DebuffTexture = nil;
this.DebuffName = nil;
this.DebuffType = nil;
this:RegisterForClicks('LeftButtonDown', 'RightButtonDown');
this:SetBackdropColor(1,0.1,0.1,1);
</OnLoad>
<OnClick>
if this.DebuffIndex >= 90 then
Dcr_CleanByDebuffName(this.DebuffName);
else
Dcr_LiveListItem_OnClick(arg1 == "RightButton");
end
</OnClick>
<OnEnter>
Dcr_DebuffTemplate_OnEnter();
this:SetBackdropColor(0.1,1,0.1,1);
</OnEnter>
<OnLeave>
DcrDisplay_Tooltip:Hide();
this:SetBackdropColor(1,0.1,0.1,1);
</OnLeave>
<OnUpdate>
Dcr_LiveListItem_OnUpdate();
</OnUpdate>
</Scripts>
</Button>
<Button name="DecursivePriorityListEntryTemplate" hidden="true" virtual="true" >
<Size>
<AbsDimension x="150" y="16"/>
</Size>
<NormalText name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT" text="Assistant">
<Size>
<AbsDimension x="150" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT"/>
</Anchors>
</NormalText>
<Scripts>
<OnLoad>
this.Priority = true;
this:RegisterForClicks('LeftButtonDown', 'RightButtonDown');
<!--
取消后3键, 'MiddleButtonDown', 'Button4Down', 'Button5Down'的注册
-->
</OnLoad>
<OnClick>
Dcr_PriorityListEntryTemplate_OnClick( (arg1 == "LeftButton"), IsShiftKeyDown(), IsControlKeyDown());
<!--
增加简单整理列表的功能
左击为上移一位
右击为删除
shift+左击上移5位
Ctrl+左击上移至顶
-->
</OnClick>
<OnUpdate>
Dcr_PriorityListEntryTemplate_OnUpdate();
</OnUpdate>
<OnEnter>
Dcr_DisplayTooltip(DCR_LISTELEMENT_TIP);
</OnEnter>
<OnLeave>
DcrDisplay_Tooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Button name="DecursiveSkipListEntryTemplate" hidden="true" virtual="true" inherits="DecursivePriorityListEntryTemplate">
<Scripts>
<OnLoad>
this.Priority = false;
this:RegisterForClicks('LeftButtonDown', 'RightButtonDown');
<!--
OnLoad信息相对与Prio的部分有了改变,因此就没有注册鼠标事件,必须增加
-->
</OnLoad>
</Scripts>
</Button>
<Button name="DcrQuickPriorityListClassTemplate" virtual="true" >
<Size>
<AbsDimension x="78" y="20"/>
</Size>
<NormalText name="$parentClassName" inherits="GameFontNormalSmall" justifyH="CENTER" text="Class">
<Size>
<AbsDimension x="58" y="15"/>
</Size>
<Anchors>
<Anchor point="RIGHT"/>
</Anchors>
</NormalText>
<HighlightTexture alphaMode="ADD" file="Interface\Buttons\UI-Listbox-Highlight"/>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentClassIcon" file="Interface\Glues\CharacterCreate\UI-CharacterCreate-Classes">
<Size>
<AbsDimension x="20" y="20"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:RegisterForClicks('LeftButtonDown', 'RightButtonDown');
</OnLoad>
<OnClick>
Dcr_QuickPriorityListItem_Click(arg1 == "RightButton");
</OnClick>
<OnEnter>
Dcr_DisplayTooltip(DCR_QUICKPRIO);--DCR_QUICKPRIO="左键开启/关闭优先\n右键上移";
</OnEnter>
<OnLeave>
DcrDisplay_Tooltip:Hide();
</OnLeave>
<OnUpDate>
Dcr_QuickPriorityListItem_Update();
</OnUpDate>
</Scripts>
</Button>
<!--Button name="DcrMonitorItemIconTemplate" virtual="true" hidden="true">
<Size>
<AbsDimension x="30" y="30"/>
</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-->
<Button name="DecursiveDebuffMonitorTemplate" frameStrata="LOW" enableMouse="true" virtual="true" hidden="true">
<Size>
<AbsDimension x="95" y="40"/>
</Size>
<Backdrop 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>
<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
<Scripts>
<OnLoad>
this:RegisterForClicks('LeftButtonDown','RightButtonDown');
this.unitName = nil;
this.unit = nil;
this:SetBackdropColor(0.1,1,0.1,0.4);
</OnLoad>
<OnClick>
if this.unit then
TargetUnit(this.unit);
if UnitIsVisible("target") then
Dcr_CureTarget("target");
end
end
</OnClick>
<OnUpdate>
Dcr_DebuffMonitor_UpDate();
</OnUpdate>
</Scripts>
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentName" justifyH="CENTER" inherits="GameFontNormalSmall" maxLines="1" text="Name">
<Size>
<AbsDimension x="85" y="15"/>
</Size>
<Anchors>
<Anchor point="TOP" relativeTo="$parent">
<Offset>
<AbsDimension x="0" y="-5"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentInfo" justifyH="CENTER" inherits="GameFontNormalSmall" maxLines="1" text="Info">
<Size>
<AbsDimension x="85" y="15"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativeTo="$parent">
<Offset>
<AbsDimension x="0" y="5"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="$parentDebuffIcon1" >
<Anchors>
<Anchor point="LEFT" relativeTo="$parent">
<Offset>
<AbsDimension x="91" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Size>
<AbsDimension x="30" y="30"/>
</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>
<Button name="$parentDebuffIcon2" >
<Anchors>
<Anchor point="LEFT" relativeTo="$parentDebuffIcon1">
<Offset>
<AbsDimension x="30" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Size>
<AbsDimension x="30" y="30"/>
</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>
<Button name="$parentDebuffIcon3" >
<Anchors>
<Anchor point="LEFT" relativeTo="$parentDebuffIcon2">
<Offset>
<AbsDimension x="30" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Size>
<AbsDimension x="30" y="30"/>
</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>
<Button name="$parentDebuffIcon4" >
<Anchors>
<Anchor point="LEFT" relativeTo="$parentDebuffIcon3">
<Offset>
<AbsDimension x="30" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Size>
<AbsDimension x="30" y="30"/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -