annotate SkeletonKey/SkeletonKey.xml @ 17:500f9b2bd9ac

- for RegisterAction, use a function table instead of that if/then rats nest - consequently pet bar actions work now - unlocalize bindings data - activate keyslot input manually instead of on mouse over - activate checkbox to keep input mode active - dynamic buttons update in real time for petaction/talent/profession spells
author Nenue
date Sat, 30 Jul 2016 00:08:00 -0400
parents cdd387d39137
children 91398d284a99
rev   line source
Nenue@0 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/
Nenue@0 2 ..\FrameXML\UI.xsd">
Nenue@5 3 <Button name="KeyBinderMacro" inherits="SecureActionButtonTemplate">
Nenue@6 4 <Attributes>
Nenue@6 5 <Attribute name="*type*" value="macro" />
Nenue@6 6 </Attributes>
Nenue@5 7 </Button>
Nenue@6 8 <Button name="KeyBinderKey" inherits="SecureActionButtonTemplate" />
Nenue@0 9 <CheckButton name="KeyButton" virtual="true">
Nenue@0 10 <Size x="32" y="32" />
Nenue@0 11 <Layers>
Nenue@0 12 <Layer level="BACKGROUND">
Nenue@0 13 <Texture parentKey="border" setAllPoints="true">
Nenue@0 14 <Color a="1" r=".25" g=".25" b=".25" />
Nenue@0 15 </Texture>
Nenue@0 16 </Layer>
Nenue@0 17 <Layer level="BORDER">
Nenue@0 18
Nenue@0 19 <Texture parentKey="bg">
Nenue@0 20 <Anchors>
Nenue@0 21 <Anchor point="TOPLEFT" x="2" y="-2" />
Nenue@0 22 <Anchor point="BOTTOMRIGHT" x="-2" y="2" />
Nenue@0 23 </Anchors>
Nenue@0 24 <Color a="0.5" r="0" g="0" b="0" />
Nenue@0 25 </Texture>
Nenue@0 26 </Layer>
Nenue@0 27 <Layer level="ARTWORK">
Nenue@0 28 <Texture setAllPoints="true" parentKey="icon">
Nenue@5 29 <Anchors>
Nenue@5 30 <Anchor point="TOPLEFT" x="2" y="-2" />
Nenue@5 31 <Anchor point="BOTTOMRIGHT" x="-2" y="2" />
Nenue@5 32 </Anchors>
Nenue@0 33
Nenue@0 34 <TexCoords left="0.1" right="0.9" top="0.1" bottom="0.9" />
Nenue@0 35
Nenue@0 36 </Texture>
Nenue@0 37 </Layer>
Nenue@0 38 <Layer level="OVERLAY">
Nenue@5 39 <FontString inherits="NumberFontNormal" parentKey="header" wordwrap="false" justifyH="LEFT">
Nenue@5 40
Nenue@5 41 <Anchors>
Nenue@5 42 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="2" y="-2" />
Nenue@5 43 <Anchor point="RIGHT" x="128" y="0" />
Nenue@5 44 </Anchors>
Nenue@5 45 </FontString>
Nenue@0 46 <FontString inherits="NumberFontNormal" parentKey="bind">
Nenue@0 47 <Anchors>
Nenue@5 48 <Anchor point="BOTTOMRIGHT" x="-2" y="2" />
Nenue@0 49 </Anchors>
Nenue@0 50 </FontString>
Nenue@5 51 <FontString inherits="KTMacroButtonFont" parentKey="macro">
Nenue@0 52 <Anchors>
Nenue@5 53 <Anchor point="TOPLEFT" x="2" y="-2" />
Nenue@5 54 <Anchor point="RIGHT" x="-2" y="0" />
Nenue@5 55 </Anchors>
Nenue@5 56 </FontString>
Nenue@5 57 <FontString inherits="NumberFontNormal" parentKey="details" justifyH="LEFT">
Nenue@5 58 <Anchors>
Nenue@5 59 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="0" y="-2" relativeKey="$parent.header" />
Nenue@5 60 <Anchor point="RIGHT" x="128" y="0" />
Nenue@0 61 </Anchors>
Nenue@0 62 </FontString>
Nenue@15 63
Nenue@15 64 <Texture parentKey="ignoreTexture" file="Interface\PaperDollInfoFrame\UI-GearManager-LeaveItem-Transparent" hidden="true">
Nenue@15 65 <Anchors>
Nenue@15 66 <Anchor point="TOPLEFT" x="0" y="0" />
Nenue@15 67 <Anchor point="BOTTOMRIGHT" x="0" y="0" />
Nenue@15 68 </Anchors>
Nenue@15 69 </Texture>
Nenue@0 70 </Layer>
Nenue@0 71 </Layers>
Nenue@0 72 <HighlightTexture file="Interface\BUTTONS\UI-Button-Outline" alphaMode="ADD">
Nenue@0 73 <Anchors>
Nenue@0 74 <Anchor point="TOPLEFT" x="-13" y="13" />
Nenue@0 75 <Anchor point="BOTTOMRIGHT" x="13" y="-13" />
Nenue@0 76 </Anchors>
Nenue@0 77 </HighlightTexture>
Nenue@0 78 </CheckButton>
Nenue@0 79
Nenue@5 80 <Frame name="KeyBinder" parent="UIParent" hidden="true" clampedToScreen="true" movable="true" enableMouse="true">
Nenue@5 81 <Anchors>
Nenue@5 82 <Anchor point="TOP" y="-25" x="0" />
Nenue@5 83 </Anchors>
Nenue@5 84 <Size x="600" y="200" />
Nenue@0 85 <Scripts>
Nenue@0 86 <OnLoad>
Nenue@0 87 self:RegisterForDrag('LeftButton')
Nenue@0 88 </OnLoad>
Nenue@5 89 <OnShow>
Nenue@5 90 </OnShow>
Nenue@0 91 <OnDragStart>
Nenue@0 92 self:StartMoving()
Nenue@0 93 </OnDragStart>
Nenue@0 94 <OnDragStop>
Nenue@0 95 self:StopMovingOrSizing()
Nenue@0 96 </OnDragStop>
Nenue@5 97 <OnMouseWheel>
Nenue@5 98 self:OnMouseWheel(delta)
Nenue@5 99 </OnMouseWheel>
Nenue@5 100 <OnHide>
Nenue@5 101 self:OnHide()
Nenue@5 102 </OnHide>
Nenue@0 103 </Scripts>
Nenue@0 104 <Layers>
Nenue@0 105 <Layer level="BACKGROUND">
Nenue@0 106
Nenue@0 107 <Texture parentKey="info">
Nenue@0 108 <Anchors>
Nenue@0 109 <Anchor point="TOPLEFT" />
Nenue@0 110 <Anchor point="RIGHT" />
Nenue@0 111 </Anchors>
Nenue@0 112 <Size y="42" />
Nenue@0 113 </Texture>
Nenue@5 114
Nenue@5 115 <Texture parentKey="headerbg" alphaMode="MOD">
Nenue@5 116 <Size y="32" />
Nenue@0 117 <Anchors>
Nenue@5 118 <Anchor point="TOPLEFT" />
Nenue@5 119 <Anchor point="RIGHT" />
Nenue@0 120 </Anchors>
Nenue@5 121 <Color a="1" r="1" g="1" b="1" />
Nenue@5 122 <Gradient orientation="VERTICAL">
Nenue@5 123 <MinColor r="0" g="0" b="0"/>
Nenue@5 124 <MaxColor r="1" g="1" b="1"/>
Nenue@5 125 </Gradient>
Nenue@5 126 </Texture>
Nenue@5 127
Nenue@5 128 <Texture parentKey="sourcesbg">
Nenue@5 129 <Size x="100" />
Nenue@5 130 <Anchors>
Nenue@5 131 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.headerbg" />
Nenue@5 132 <Anchor point="BOTTOM" />
Nenue@5 133 </Anchors>
Nenue@17 134 <Color a=".75" r="0" g="0" b="0" />
Nenue@5 135 </Texture>
Nenue@5 136
Nenue@5 137
Nenue@5 138
Nenue@5 139 <Texture parentKey="profilebg">
Nenue@5 140 <Size y="102" />
Nenue@5 141 <Anchors>
Nenue@5 142 <Anchor point="TOP" relativePoint="BOTTOM" relativeKey="$parent.headerbg" />
Nenue@5 143 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.sourcesbg" />
Nenue@5 144 <Anchor point="RIGHT" />
Nenue@5 145 </Anchors>
Nenue@5 146 <Color a="1" r="0" g="0" b="0" />
Nenue@5 147 </Texture>
Nenue@5 148
Nenue@5 149 <Texture parentKey="bg">
Nenue@5 150 <Anchors>
Nenue@5 151 <Anchor point="TOP" relativePoint="BOTTOM" relativeKey="$parent.profilebg" />
Nenue@5 152 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.sourcesbg" />
Nenue@5 153 </Anchors>
Nenue@5 154 <Color a="0.5" r="0" g="0" b="0" />
Nenue@5 155 </Texture>
Nenue@5 156
Nenue@5 157 <Texture parentKey="footer">
Nenue@5 158 <Size y="52" />
Nenue@5 159 <Anchors>
Nenue@5 160 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.bg" x="0" y="0" />
Nenue@5 161 <Anchor point="RIGHT" />
Nenue@5 162 </Anchors>
Nenue@5 163 <Color a="1" r="0" g="0" b="0" />
Nenue@0 164 </Texture>
Nenue@0 165 </Layer>
Nenue@0 166 <Layer level="OVERLAY">
Nenue@0 167
Nenue@5 168 <FontString inherits="KTHeaderFont" text="Bindings" parentKey="header">
Nenue@0 169 <Anchors>
Nenue@5 170 <Anchor point="TOPLEFT" />
Nenue@0 171 </Anchors>
Nenue@0 172 </FontString>
Nenue@0 173
Nenue@5 174 <FontString parentKey="profiletext" inherits="KTHeader2Font" justifyH="LEFT" text="Foobar">
Nenue@0 175 <Anchors>
Nenue@5 176 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" relativeKey="$parent.header" x="8" y="5" />
Nenue@0 177 </Anchors>
Nenue@5 178 <Color a="1" r="1" g="0.7" b="0" />
Nenue@5 179 </FontString>
Nenue@5 180
Nenue@5 181 <FontString parentKey="statustext" inherits="NumberFont_Outline_Large" justifyH="LEFT" justifyV="TOP">
Nenue@5 182 <Anchors>
Nenue@5 183 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" relativeKey="$parent.bg" x="12" y="7" />
Nenue@5 184 </Anchors>
Nenue@5 185 </FontString>
Nenue@5 186
Nenue@5 187
Nenue@5 188 <FontString parentKey="bindingstext" inherits="NumberFont_Outline_Large" justifyH="RIGHT" justifyV="TOP">
Nenue@5 189 <Anchors>
Nenue@5 190 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" relativeKey="$parent.bg" x="-12" y="7" />
Nenue@5 191 </Anchors>
Nenue@5 192 <Color a="1" r="0" g="1" b="0" />
Nenue@0 193 </FontString>
Nenue@17 194
Nenue@17 195 <FontString parentKey="savingText" inherits="KTHeaderFont" text="Press a key." />
Nenue@0 196 </Layer>
Nenue@0 197 </Layers>
Nenue@0 198 <Frames>
Nenue@5 199 <Button inherits="UIPanelCloseButton" parentKey="CloseButton">
Nenue@0 200 <Anchors>
Nenue@0 201 <Anchor point="TOPRIGHT" />
Nenue@0 202 </Anchors>
Nenue@0 203 </Button>
Nenue@5 204
Nenue@17 205 <Button name="$parentUnbindButton" hidden="true">
Nenue@17 206 <Size x="20" y="20" />
Nenue@17 207 <NormalTexture>
Nenue@17 208 <Color a="1" r="1" g="0.4" b="0" />
Nenue@17 209
Nenue@17 210 </NormalTexture>
Nenue@17 211 <NormalFont style="KTUIPanelFont" />
Nenue@17 212 <ButtonText text="X" />
Nenue@17 213 </Button>
Nenue@17 214
Nenue@17 215 <CheckButton name="$parentStickyMode">
Nenue@17 216 <Size y="28" />
Nenue@5 217 <Anchors>
Nenue@17 218 <Anchor point="BOTTOMLEFT" x="0" y="12" />
Nenue@17 219 <Anchor point="RIGHT" relativeKey="$parent.sourcesbg" />
Nenue@5 220 </Anchors>
Nenue@17 221 <ButtonText text="Receiving" inherits="KTUIPanelFont">
Nenue@17 222 <Anchors>
Nenue@17 223 <Anchor point="CENTER" />
Nenue@17 224 </Anchors>
Nenue@17 225 </ButtonText>
Nenue@17 226 <NormalTexture>
Nenue@17 227 <Color a="1" r=".3" g=".3" b=".3" />
Nenue@17 228 </NormalTexture>
Nenue@17 229 <CheckedTexture>
Nenue@17 230
Nenue@17 231 <Color a="1" r=".3" g="1" b=".2" />
Nenue@17 232 </CheckedTexture>
Nenue@5 233 </CheckButton>
Nenue@0 234 </Frames>
Nenue@0 235 </Frame>
Nenue@5 236
Nenue@5 237 <ScrollingMessageFrame hidden="true" fade="false" name="KeyBinderImportLog" parent="KeyBinder" clampedToScreen="true" parentKey="ImportLog" insertMode="BOTTOM" maxLines="500">
Nenue@5 238
Nenue@5 239 <Scripts>
Nenue@5 240 <OnLoad>
Nenue@5 241 self:AddMessage('SkeletonKey import tool')
Nenue@5 242 </OnLoad>
Nenue@5 243 <OnMouseWheel>
Nenue@5 244 if delta >= 0 then
Nenue@5 245 if IsControlKeyDown() then
Nenue@5 246 -- extremely janky but avoids having one line at the bottom
Nenue@5 247 for i =1, self:GetMaxLines() do
Nenue@5 248 self:ScrollUp()
Nenue@5 249 end
Nenue@5 250 end
Nenue@5 251
Nenue@5 252 return self:ScrollUp()
Nenue@5 253 else
Nenue@5 254
Nenue@5 255 if IsControlKeyDown() then
Nenue@5 256 return self:ScrollToBottom()
Nenue@5 257 end
Nenue@5 258
Nenue@5 259 self:ScrollDown()
Nenue@5 260 end
Nenue@5 261 </OnMouseWheel>
Nenue@5 262 </Scripts>
Nenue@5 263 <Anchors>
Nenue@5 264 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="2" y="0" />
Nenue@5 265 <Anchor point="BOTTOM" />
Nenue@5 266 </Anchors>
Nenue@5 267 <Size x="400" />
Nenue@5 268 <Layers>
Nenue@5 269 <Layer level="BACKGROUND">
Nenue@5 270 <Texture setAllPoints="true">
Nenue@5 271 <Color a="1" r="0" g="0" b="0" />
Nenue@5 272 </Texture>
Nenue@5 273 </Layer>
Nenue@5 274 </Layers>
Nenue@5 275 <FontString inherits="NumberFontNormal" justifyH="LEFT">
Nenue@5 276
Nenue@5 277 <Anchors>
Nenue@5 278 <Anchor point="TOPLEFT" />
Nenue@5 279 </Anchors>
Nenue@5 280 </FontString>
Nenue@5 281 </ScrollingMessageFrame>
Nenue@0 282 </Ui>