|
| 1 | +<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/ |
| 2 | +..\FrameXML\UI.xsd"> |
| 3 | + <Script file="ActionButton.lua"/> |
| 4 | + <CheckButton name="ActionBarButtonTemplate" inherits="SecureActionButtonTemplate, ActionButtonTemplate" virtual="true"> |
| 5 | + <Scripts> |
| 6 | + <OnLoad> |
| 7 | + ActionButton_OnLoad(self); |
| 8 | + </OnLoad> |
| 9 | + <OnAttributeChanged> |
| 10 | + ActionButton_UpdateAction(self, name, value); |
| 11 | + </OnAttributeChanged> |
| 12 | + <OnEvent> |
| 13 | + ActionButton_OnEvent(self, event, ...); |
| 14 | + </OnEvent> |
| 15 | + <PostClick> |
| 16 | + ActionButton_UpdateState(self, button, down); |
| 17 | + </PostClick> |
| 18 | + <OnDragStart> |
| 19 | + if ( LOCK_ACTIONBAR ~= "1" or IsModifiedClick("PICKUPACTION") ) then |
| 20 | + PickupAction(self.action); |
| 21 | + ActionButton_UpdateState(self); |
| 22 | + ActionButton_UpdateFlash(self); |
| 23 | + end |
| 24 | + </OnDragStart> |
| 25 | + <OnReceiveDrag> |
| 26 | + PlaceAction(self.action); |
| 27 | + ActionButton_UpdateState(self); |
| 28 | + ActionButton_UpdateFlash(self); |
| 29 | + </OnReceiveDrag> |
| 30 | + <OnEnter> |
| 31 | + ActionButton_SetTooltip(self); |
| 32 | + </OnEnter> |
| 33 | + <OnLeave> |
| 34 | + GameTooltip:Hide(); |
| 35 | + </OnLeave> |
| 36 | + <OnUpdate> |
| 37 | + ActionButton_OnUpdate(self, elapsed); |
| 38 | + </OnUpdate> |
| 39 | + </Scripts> |
| 40 | + </CheckButton> |
| 41 | + <CheckButton name="ActionButton1" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="1"> |
| 42 | + <Anchors> |
| 43 | + <Anchor point="BOTTOMLEFT"> |
| 44 | + <Offset> |
| 45 | + <AbsDimension x="8" y="4"/> |
| 46 | + </Offset> |
| 47 | + </Anchor> |
| 48 | + </Anchors> |
| 49 | + </CheckButton> |
| 50 | + <CheckButton name="ActionButton2" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="2"> |
| 51 | + <Anchors> |
| 52 | + <Anchor point="LEFT" relativeTo="ActionButton1" relativePoint="RIGHT"> |
| 53 | + <Offset> |
| 54 | + <AbsDimension x="6" y="0"/> |
| 55 | + </Offset> |
| 56 | + </Anchor> |
| 57 | + </Anchors> |
| 58 | + </CheckButton> |
| 59 | + <CheckButton name="ActionButton3" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="3"> |
| 60 | + <Anchors> |
| 61 | + <Anchor point="LEFT" relativeTo="ActionButton2" relativePoint="RIGHT"> |
| 62 | + <Offset> |
| 63 | + <AbsDimension x="6" y="0"/> |
| 64 | + </Offset> |
| 65 | + </Anchor> |
| 66 | + </Anchors> |
| 67 | + </CheckButton> |
| 68 | + <CheckButton name="ActionButton4" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="4"> |
| 69 | + <Anchors> |
| 70 | + <Anchor point="LEFT" relativeTo="ActionButton3" relativePoint="RIGHT"> |
| 71 | + <Offset> |
| 72 | + <AbsDimension x="6" y="0"/> |
| 73 | + </Offset> |
| 74 | + </Anchor> |
| 75 | + </Anchors> |
| 76 | + </CheckButton> |
| 77 | + <CheckButton name="ActionButton5" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="5"> |
| 78 | + <Anchors> |
| 79 | + <Anchor point="LEFT" relativeTo="ActionButton4" relativePoint="RIGHT"> |
| 80 | + <Offset> |
| 81 | + <AbsDimension x="6" y="0"/> |
| 82 | + </Offset> |
| 83 | + </Anchor> |
| 84 | + </Anchors> |
| 85 | + </CheckButton> |
| 86 | + <CheckButton name="ActionButton6" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="6"> |
| 87 | + <Anchors> |
| 88 | + <Anchor point="LEFT" relativeTo="ActionButton5" relativePoint="RIGHT"> |
| 89 | + <Offset> |
| 90 | + <AbsDimension x="6" y="0"/> |
| 91 | + </Offset> |
| 92 | + </Anchor> |
| 93 | + </Anchors> |
| 94 | + </CheckButton> |
| 95 | + <CheckButton name="ActionButton7" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="7"> |
| 96 | + <Anchors> |
| 97 | + <Anchor point="LEFT" relativeTo="ActionButton6" relativePoint="RIGHT"> |
| 98 | + <Offset> |
| 99 | + <AbsDimension x="6" y="0"/> |
| 100 | + </Offset> |
| 101 | + </Anchor> |
| 102 | + </Anchors> |
| 103 | + </CheckButton> |
| 104 | + <CheckButton name="ActionButton8" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="8"> |
| 105 | + <Anchors> |
| 106 | + <Anchor point="LEFT" relativeTo="ActionButton7" relativePoint="RIGHT"> |
| 107 | + <Offset> |
| 108 | + <AbsDimension x="6" y="0"/> |
| 109 | + </Offset> |
| 110 | + </Anchor> |
| 111 | + </Anchors> |
| 112 | + </CheckButton> |
| 113 | + <CheckButton name="ActionButton9" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="9"> |
| 114 | + <Anchors> |
| 115 | + <Anchor point="LEFT" relativeTo="ActionButton8" relativePoint="RIGHT"> |
| 116 | + <Offset> |
| 117 | + <AbsDimension x="6" y="0"/> |
| 118 | + </Offset> |
| 119 | + </Anchor> |
| 120 | + </Anchors> |
| 121 | + </CheckButton> |
| 122 | + <CheckButton name="ActionButton10" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="10"> |
| 123 | + <Anchors> |
| 124 | + <Anchor point="LEFT" relativeTo="ActionButton9" relativePoint="RIGHT"> |
| 125 | + <Offset> |
| 126 | + <AbsDimension x="6" y="0"/> |
| 127 | + </Offset> |
| 128 | + </Anchor> |
| 129 | + </Anchors> |
| 130 | + </CheckButton> |
| 131 | + <CheckButton name="ActionButton11" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="11"> |
| 132 | + <Anchors> |
| 133 | + <Anchor point="LEFT" relativeTo="ActionButton10" relativePoint="RIGHT"> |
| 134 | + <Offset> |
| 135 | + <AbsDimension x="6" y="0"/> |
| 136 | + </Offset> |
| 137 | + </Anchor> |
| 138 | + </Anchors> |
| 139 | + </CheckButton> |
| 140 | + <CheckButton name="ActionButton12" inherits="ActionBarButtonTemplate" parent="MainMenuBarArtFrame" id="12"> |
| 141 | + <Anchors> |
| 142 | + <Anchor point="LEFT" relativeTo="ActionButton11" relativePoint="RIGHT"> |
| 143 | + <Offset> |
| 144 | + <AbsDimension x="6" y="0"/> |
| 145 | + </Offset> |
| 146 | + </Anchor> |
| 147 | + </Anchors> |
| 148 | + </CheckButton> |
| 149 | + <Button name="ActionBarUpButton" parent="MainMenuBarArtFrame"> |
| 150 | + <Size> |
| 151 | + <AbsDimension x="32" y="32"/> |
| 152 | + </Size> |
| 153 | + <Anchors> |
| 154 | + <Anchor point="CENTER" relativeTo="MainMenuBarArtFrame" relativePoint="TOPLEFT"> |
| 155 | + <Offset> |
| 156 | + <AbsDimension x="522" y="-22"/> |
| 157 | + </Offset> |
| 158 | + </Anchor> |
| 159 | + </Anchors> |
| 160 | + <HitRectInsets> |
| 161 | + <AbsInset left="6" right="6" top="7" bottom="7"/> |
| 162 | + </HitRectInsets> |
| 163 | + <Scripts> |
| 164 | + <OnClick> |
| 165 | + ActionBar_PageUp(self); |
| 166 | + PlaySound("UChatScrollButton"); |
| 167 | + </OnClick> |
| 168 | + </Scripts> |
| 169 | + <NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Up"/> |
| 170 | + <PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Down"/> |
| 171 | + <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollUpButton-Disabled"/> |
| 172 | + <HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollUpButton-Highlight"/> |
| 173 | + </Button> |
| 174 | + <Button name="ActionBarDownButton" parent="MainMenuBarArtFrame"> |
| 175 | + <Size> |
| 176 | + <AbsDimension x="32" y="32"/> |
| 177 | + </Size> |
| 178 | + <Anchors> |
| 179 | + <Anchor point="CENTER" relativeTo="MainMenuBarArtFrame" relativePoint="TOPLEFT"> |
| 180 | + <Offset> |
| 181 | + <AbsDimension x="522" y="-42"/> |
| 182 | + </Offset> |
| 183 | + </Anchor> |
| 184 | + </Anchors> |
| 185 | + <HitRectInsets> |
| 186 | + <AbsInset left="6" right="6" top="7" bottom="7"/> |
| 187 | + </HitRectInsets> |
| 188 | + <Scripts> |
| 189 | + <OnClick> |
| 190 | + ActionBar_PageDown(self); |
| 191 | + PlaySound("UChatScrollButton"); |
| 192 | + </OnClick> |
| 193 | + </Scripts> |
| 194 | + <NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Up"/> |
| 195 | + <PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Down"/> |
| 196 | + <DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/> |
| 197 | + <HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Highlight"/> |
| 198 | + </Button> |
| 199 | +</Ui> |
0 commit comments