📄 playerlinkmenu_options.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">
<Script file="PlayerLinkMenu_options.lua"/>
<Button name="PlayerLinkMenuButtonTemplate" inherits="OptionsButtonTemplate" virtual="true">
<NormalText name="$parentText" inherits="GameFontNormalSmall"/>
<DisabledText inherits="GameFontDisableSmall"/>
<HighlightText inherits="GameFontHighlightSmall"/>
<Layers>
<Layer level="BACKGROUND">
<FontString name="$parentLabel" inherits="GameFontNormalSmall" justifyH="left">
<Size>
<AbsDimension x="280" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT">
<Offset>
<AbsDimension x="20" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this.text = nil;
this.tooltip = nil;
</OnLoad>
<OnShow>
if (this.text) then
getglobal(this:GetName().."Label"):SetText(this.text);
getglobal(this:GetName().."Label"):Show();
else
getglobal(this:GetName().."Label"):Hide();
end
</OnShow>
<OnClick>
PlaySound("gsTitleOptionExit");
</OnClick>
<OnEnter>
if (this.tooltip) then
GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Frame name="PlayerLinkMenuEditTemplate" toplevel="true" enableMouse="true" hidden="true" virtual="true">
<Size>
<AbsDimension x="260" y="16"/>
</Size>
<Frames>
<CheckButton name="$parentCheckbox" inherits="OptionsCheckButtonTemplate">
<Size>
<AbsDimension x="20" y="20"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<HitRectInsets>
<AbsInset left="0" right="0" top="0" bottom="0"/>
</HitRectInsets>
<Scripts>
<OnClick>
if (this:GetChecked()) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
PlayerLinkMenu_SetVisible();
</OnClick>
</Scripts>
</CheckButton>
<Button name="$parentButtonUp">
<Size>
<AbsDimension x="20" y="20"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentCheckbox" relativePoint="RIGHT">
<Offset>
<AbsDimension x="10" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
PlayerLinkMenu_MoveItem(true);
PlaySound("igChatScrollUp");
</OnClick>
</Scripts>
<NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollUp-Up"/>
<PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollUp-Down"/>
<DisabledTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollUp-Disabled"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
</Button>
<Button name="$parentButtonDown">
<Size>
<AbsDimension x="20" y="20"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentButtonUp" relativePoint="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
PlayerLinkMenu_MoveItem(false);
PlaySound("igChatScrollDown");
</OnClick>
</Scripts>
<NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up"/>
<PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down"/>
<DisabledTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
</Button>
<Button name="$parentButton">
<NormalText name="$parentText" inherits="GameFontNormalSmall" justifyH="left"/>
<DisabledText inherits="GameFontDisableSmall" justifyH="left"/>
<HighlightText inherits="GameFontHighlightSmall" justifyH="left"/>
<Size>
<AbsDimension x="235" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentButtonDown" relativePoint="RIGHT">
<Offset>
<AbsDimension x="10" y="2"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this.tooltip = nil;
</OnLoad>
<OnClick>
PlayerLinkMenu_LabelEdit(this);
</OnClick>
<OnEnter>
if (this.tooltip) then
GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
</Frames>
</Frame>
<Frame name="PlayerLinkMenuDropDownTemplate" inherits="UIDropDownMenuTemplate" enableMouse="true" virtual="true">
<Layers>
<Layer level="BACKGROUND">
<FontString name="$parentLabel" inherits="GameFontNormalSmall" justifyH="left">
<Size>
<AbsDimension x="40" y="16"/>
</Size>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT">
<Offset>
<AbsDimension x="0" y="2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this.text = nil;
</OnLoad>
<OnShow>
if (this.text) then
getglobal(this:GetName().."Label"):SetText(this.text);
getglobal(this:GetName().."Label"):Show();
else
getglobal(this:GetName().."Label"):Hide();
end
</OnShow>
</Scripts>
</Frame>
<CheckButton name="PlayerLinkMenuCheckButtonTemplate" inherits="OptionsCheckButtonTemplate" virtual="true">
<Size>
<AbsDimension x="24" y="24"/>
</Size>
<HitRectInsets>
<AbsInset left="0" right="-180" top="0" bottom="0"/>
</HitRectInsets>
<Layers>
<Layer level="BACKGROUND">
<FontString name="$parentLabel" inherits="GameFontNormalSmall" justifyH="left">
<Size>
<AbsDimension x="180" y="16"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT">
<Offset>
<AbsDimension x="5" y="1"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this.tooltip = nil;
this.text = nil;
</OnLoad>
<OnShow>
if (this.text) then
getglobal(this:GetName().."Label"):SetText(this.text);
end
</OnShow>
<OnClick>
if (this:GetChecked()) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
</OnClick>
<OnEnter>
if (this.tooltip) then
GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</CheckButton>
<Button name="PlayerLinkMenuTextButtonTemplate" toplevel="true" enableMouse="true" virtual="true">
<NormalText name="$parentText" inherits="GameFontNormalSmall"/>
<DisabledText inherits="GameFontDisableSmall"/>
<HighlightText inherits="GameFontHighlightSmall"/>
<Size>
<AbsDimension x="92" y="16"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<FontString name="$parentLabel" inherits="GameFontHighlightSmall" justifyH="center">
<Size>
<AbsDimension x="92" y="12"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="TOP">
<Offset>
<AbsDimension x="0" y="-1"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this.label = nil;
this.tooltip = nil;
this.doShow = nil;
</OnLoad>
<OnShow>
if (this.label) then
getglobal(this:GetName().."Label"):SetText(this.label);
getglobal(this:GetName().."Label"):Show();
else
getglobal(this:GetName().."Label"):Hide();
end
if (this.doShow == "TIMEOUT") then
local tmp = PLAYERLINKMENU_TIMEOUT.." 秒";
if (PLAYERLINKMENU_TIMEOUT > 1) then
tmp = tmp.." ";
end
this:SetText(tmp);
end
</OnShow>
<OnClick>
</OnClick>
<OnEnter>
if (this.tooltip) then
GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
GameTooltip:SetText(this.tooltip, nil, nil, nil, nil, 1);
end
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>
</Scripts>
</Button>
<Frame name="PlayerLinkMenuOptions" toplevel="true" frameStrata="DIALOG" movable="false" enableMouse="true" hidden="true" parent="UIParent">
<Size>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -