200 lines
6.3 KiB
XML
200 lines
6.3 KiB
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="ActionButton.lua"/>
|
|
<CheckButton name="ActionBarButtonTemplate" inherits="SecureActionButtonTemplate, ActionButtonTemplate" virtual="true">
|
|
<Scripts>
|
|
<OnLoad>
|
|
ActionButton_OnLoad(self);
|
|
</OnLoad>
|
|
<OnAttributeChanged>
|
|
ActionButton_UpdateAction(self, name, value);
|
|
</OnAttributeChanged>
|
|
<OnEvent>
|
|
ActionButton_OnEvent(self, event, ...);
|
|
</OnEvent>
|
|
<PostClick>
|
|
ActionButton_UpdateState(self, button, down);
|
|
</PostClick>
|
|
<OnDragStart>
|
|
if ( LOCK_ACTIONBAR ~= "1" or IsModifiedClick("PICKUPACTION") ) then
|
|
PickupAction(self.action);
|
|
ActionButton_UpdateState(self);
|
|
ActionButton_UpdateFlash(self);
|
|
end
|
|
</OnDragStart>
|
|
<OnReceiveDrag>
|
|
PlaceAction(self.action);
|
|
ActionButton_UpdateState(self);
|
|
ActionButton_UpdateFlash(self);
|
|
</OnReceiveDrag>
|
|
<OnEnter>
|
|
ActionButton_SetTooltip(self);
|
|
</OnEnter>
|
|
<OnLeave>
|
|
GameTooltip:Hide();
|
|
</OnLeave>
|
|
<OnUpdate>
|
|
ActionButton_OnUpdate(self, elapsed);
|
|
</OnUpdate>
|
|
</Scripts>
|
|
</CheckButton>
|
|
<CheckButton name="ActionButton1" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="1">
|
|
<Anchors>
|
|
<Anchor point="BOTTOMLEFT">
|
|
<Offset>
|
|
<AbsDimension x="8" y="4"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</CheckButton>
|
|
<CheckButton name="ActionButton2" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="2">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="ActionButton1" relativePoint="RIGHT">
|
|
<Offset>
|
|
<AbsDimension x="6" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</CheckButton>
|
|
<CheckButton name="ActionButton3" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="3">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="ActionButton2" relativePoint="RIGHT">
|
|
<Offset>
|
|
<AbsDimension x="6" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</CheckButton>
|
|
<CheckButton name="ActionButton4" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="4">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="ActionButton3" relativePoint="RIGHT">
|
|
<Offset>
|
|
<AbsDimension x="6" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</CheckButton>
|
|
<CheckButton name="ActionButton5" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="5">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="ActionButton4" relativePoint="RIGHT">
|
|
<Offset>
|
|
<AbsDimension x="6" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</CheckButton>
|
|
<CheckButton name="ActionButton6" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="6">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="ActionButton5" relativePoint="RIGHT">
|
|
<Offset>
|
|
<AbsDimension x="6" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</CheckButton>
|
|
<CheckButton name="ActionButton7" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="7">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="ActionButton6" relativePoint="RIGHT">
|
|
<Offset>
|
|
<AbsDimension x="6" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</CheckButton>
|
|
<CheckButton name="ActionButton8" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="8">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="ActionButton7" relativePoint="RIGHT">
|
|
<Offset>
|
|
<AbsDimension x="6" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</CheckButton>
|
|
<CheckButton name="ActionButton9" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="9">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="ActionButton8" relativePoint="RIGHT">
|
|
<Offset>
|
|
<AbsDimension x="6" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</CheckButton>
|
|
<CheckButton name="ActionButton10" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="10">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="ActionButton9" relativePoint="RIGHT">
|
|
<Offset>
|
|
<AbsDimension x="6" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</CheckButton>
|
|
<CheckButton name="ActionButton11" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="11">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="ActionButton10" relativePoint="RIGHT">
|
|
<Offset>
|
|
<AbsDimension x="6" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</CheckButton>
|
|
<CheckButton name="ActionButton12" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="12">
|
|
<Anchors>
|
|
<Anchor point="LEFT" relativeTo="ActionButton11" relativePoint="RIGHT">
|
|
<Offset>
|
|
<AbsDimension x="6" y="0"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</CheckButton>
|
|
<Button name="ActionBarUpButton" parent="MainMenuBarArtFrame">
|
|
<Size>
|
|
<AbsDimension x="32" y="32"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="CENTER" relativeTo="MainMenuBarArtFrame" relativePoint="TOPLEFT">
|
|
<Offset>
|
|
<AbsDimension x="522" y="-22"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<HitRectInsets>
|
|
<AbsInset left="6" right="6" top="7" bottom="7"/>
|
|
</HitRectInsets>
|
|
<Scripts>
|
|
<OnClick>
|
|
ActionBar_PageUp(self);
|
|
PlaySound("UChatScrollButton");
|
|
</OnClick>
|
|
</Scripts>
|
|
<NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Up"/>
|
|
<PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Down"/>
|
|
<DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Disabled"/>
|
|
<HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Highlight"/>
|
|
</Button>
|
|
<Button name="ActionBarDownButton" parent="MainMenuBarArtFrame">
|
|
<Size>
|
|
<AbsDimension x="32" y="32"/>
|
|
</Size>
|
|
<Anchors>
|
|
<Anchor point="CENTER" relativeTo="MainMenuBarArtFrame" relativePoint="TOPLEFT">
|
|
<Offset>
|
|
<AbsDimension x="522" y="-42"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
<HitRectInsets>
|
|
<AbsInset left="6" right="6" top="7" bottom="7"/>
|
|
</HitRectInsets>
|
|
<Scripts>
|
|
<OnClick>
|
|
ActionBar_PageDown(self);
|
|
PlaySound("UChatScrollButton");
|
|
</OnClick>
|
|
</Scripts>
|
|
<NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Up"/>
|
|
<PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Down"/>
|
|
<DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/>
|
|
<HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Highlight"/>
|
|
</Button>
|
|
</Ui>
|