annotate SkeletonKey/KeyBinds.xml @ 5:9ac29fe77455

- dynamic profession spell mapping - dynamic talent spell mapping - protection of dynamic slots that aren't in use - plugin abstractors for accessing state data - a lot of fixes related to the 7.0.3 API
author Nenue
date Tue, 26 Jul 2016 19:29:44 -0400
parents cd7d06bcd98d
children f6d1c192afc6
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@5 4 <Scripts>
Nenue@5 5 <OnLoad>
Nenue@5 6 self:SetAttribute('*type*', 'macro')
Nenue@5 7 </OnLoad>
Nenue@5 8 </Scripts>
Nenue@5 9 </Button>
Nenue@0 10 <CheckButton name="KeyButton" virtual="true">
Nenue@0 11 <Size x="32" y="32" />
Nenue@0 12 <Layers>
Nenue@0 13 <Layer level="BACKGROUND">
Nenue@0 14 <Texture parentKey="border" setAllPoints="true">
Nenue@0 15 <Color a="1" r=".25" g=".25" b=".25" />
Nenue@0 16 </Texture>
Nenue@0 17 </Layer>
Nenue@0 18 <Layer level="BORDER">
Nenue@0 19
Nenue@0 20 <Texture parentKey="bg">
Nenue@0 21 <Anchors>
Nenue@0 22 <Anchor point="TOPLEFT" x="2" y="-2" />
Nenue@0 23 <Anchor point="BOTTOMRIGHT" x="-2" y="2" />
Nenue@0 24 </Anchors>
Nenue@0 25 <Color a="0.5" r="0" g="0" b="0" />
Nenue@0 26 </Texture>
Nenue@0 27 </Layer>
Nenue@0 28 <Layer level="ARTWORK">
Nenue@0 29 <Texture setAllPoints="true" parentKey="icon">
Nenue@5 30 <Anchors>
Nenue@5 31 <Anchor point="TOPLEFT" x="2" y="-2" />
Nenue@5 32 <Anchor point="BOTTOMRIGHT" x="-2" y="2" />
Nenue@5 33 </Anchors>
Nenue@0 34
Nenue@0 35 <TexCoords left="0.1" right="0.9" top="0.1" bottom="0.9" />
Nenue@0 36
Nenue@0 37 </Texture>
Nenue@0 38 </Layer>
Nenue@0 39 <Layer level="OVERLAY">
Nenue@5 40 <FontString inherits="NumberFontNormal" parentKey="header" wordwrap="false" justifyH="LEFT">
Nenue@5 41
Nenue@5 42 <Anchors>
Nenue@5 43 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="2" y="-2" />
Nenue@5 44 <Anchor point="RIGHT" x="128" y="0" />
Nenue@5 45 </Anchors>
Nenue@5 46 </FontString>
Nenue@0 47 <FontString inherits="NumberFontNormal" parentKey="bind">
Nenue@0 48 <Anchors>
Nenue@5 49 <Anchor point="BOTTOMRIGHT" x="-2" y="2" />
Nenue@0 50 </Anchors>
Nenue@0 51 </FontString>
Nenue@5 52 <FontString inherits="KTMacroButtonFont" parentKey="macro">
Nenue@0 53 <Anchors>
Nenue@5 54 <Anchor point="TOPLEFT" x="2" y="-2" />
Nenue@5 55 <Anchor point="RIGHT" x="-2" y="0" />
Nenue@5 56 </Anchors>
Nenue@5 57 </FontString>
Nenue@5 58 <FontString inherits="NumberFontNormal" parentKey="details" justifyH="LEFT">
Nenue@5 59 <Anchors>
Nenue@5 60 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="0" y="-2" relativeKey="$parent.header" />
Nenue@5 61 <Anchor point="RIGHT" x="128" y="0" />
Nenue@0 62 </Anchors>
Nenue@0 63 </FontString>
Nenue@0 64 </Layer>
Nenue@0 65 </Layers>
Nenue@0 66 <HighlightTexture file="Interface\BUTTONS\UI-Button-Outline" alphaMode="ADD">
Nenue@0 67 <Anchors>
Nenue@0 68 <Anchor point="TOPLEFT" x="-13" y="13" />
Nenue@0 69 <Anchor point="BOTTOMRIGHT" x="13" y="-13" />
Nenue@0 70 </Anchors>
Nenue@0 71 </HighlightTexture>
Nenue@0 72 </CheckButton>
Nenue@0 73
Nenue@5 74 <Frame name="KeyBinder" parent="UIParent" hidden="true" clampedToScreen="true" movable="true" enableMouse="true">
Nenue@5 75 <Anchors>
Nenue@5 76 <Anchor point="TOP" y="-25" x="0" />
Nenue@5 77 </Anchors>
Nenue@5 78 <Size x="600" y="200" />
Nenue@0 79 <Scripts>
Nenue@0 80 <OnLoad>
Nenue@0 81 self:RegisterForDrag('LeftButton')
Nenue@0 82 </OnLoad>
Nenue@5 83 <OnShow>
Nenue@5 84 </OnShow>
Nenue@0 85 <OnDragStart>
Nenue@0 86 self:StartMoving()
Nenue@0 87 </OnDragStart>
Nenue@0 88 <OnDragStop>
Nenue@0 89 self:StopMovingOrSizing()
Nenue@0 90 </OnDragStop>
Nenue@5 91 <OnMouseWheel>
Nenue@5 92 self:OnMouseWheel(delta)
Nenue@5 93 </OnMouseWheel>
Nenue@5 94 <OnHide>
Nenue@5 95 self:OnHide()
Nenue@5 96 </OnHide>
Nenue@0 97 </Scripts>
Nenue@0 98 <Layers>
Nenue@0 99 <Layer level="BACKGROUND">
Nenue@0 100
Nenue@0 101 <Texture parentKey="info">
Nenue@0 102 <Anchors>
Nenue@0 103 <Anchor point="TOPLEFT" />
Nenue@0 104 <Anchor point="RIGHT" />
Nenue@0 105 </Anchors>
Nenue@0 106 <Size y="42" />
Nenue@0 107 </Texture>
Nenue@5 108
Nenue@5 109 <Texture parentKey="headerbg" alphaMode="MOD">
Nenue@5 110 <Size y="32" />
Nenue@0 111 <Anchors>
Nenue@5 112 <Anchor point="TOPLEFT" />
Nenue@5 113 <Anchor point="RIGHT" />
Nenue@0 114 </Anchors>
Nenue@5 115 <Color a="1" r="1" g="1" b="1" />
Nenue@5 116 <Gradient orientation="VERTICAL">
Nenue@5 117 <MinColor r="0" g="0" b="0"/>
Nenue@5 118 <MaxColor r="1" g="1" b="1"/>
Nenue@5 119 </Gradient>
Nenue@5 120 </Texture>
Nenue@5 121
Nenue@5 122 <Texture parentKey="sourcesbg">
Nenue@5 123 <Size x="100" />
Nenue@5 124 <Anchors>
Nenue@5 125 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.headerbg" />
Nenue@5 126 <Anchor point="BOTTOM" />
Nenue@5 127 </Anchors>
Nenue@5 128 <Color a="1" r="0.2" g="0.2" b="0.2" />
Nenue@5 129 </Texture>
Nenue@5 130
Nenue@5 131
Nenue@5 132
Nenue@5 133 <Texture parentKey="profilebg">
Nenue@5 134 <Size y="102" />
Nenue@5 135 <Anchors>
Nenue@5 136 <Anchor point="TOP" relativePoint="BOTTOM" relativeKey="$parent.headerbg" />
Nenue@5 137 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.sourcesbg" />
Nenue@5 138 <Anchor point="RIGHT" />
Nenue@5 139 </Anchors>
Nenue@5 140 <Color a="1" r="0" g="0" b="0" />
Nenue@5 141 </Texture>
Nenue@5 142
Nenue@5 143 <Texture parentKey="bg">
Nenue@5 144 <Anchors>
Nenue@5 145 <Anchor point="TOP" relativePoint="BOTTOM" relativeKey="$parent.profilebg" />
Nenue@5 146 <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.sourcesbg" />
Nenue@5 147 </Anchors>
Nenue@5 148 <Color a="0.5" r="0" g="0" b="0" />
Nenue@5 149 </Texture>
Nenue@5 150
Nenue@5 151 <Texture parentKey="footer">
Nenue@5 152 <Size y="52" />
Nenue@5 153 <Anchors>
Nenue@5 154 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeKey="$parent.bg" x="0" y="0" />
Nenue@5 155 <Anchor point="RIGHT" />
Nenue@5 156 </Anchors>
Nenue@5 157 <Color a="1" r="0" g="0" b="0" />
Nenue@0 158 </Texture>
Nenue@0 159 </Layer>
Nenue@0 160 <Layer level="OVERLAY">
Nenue@0 161
Nenue@5 162 <FontString inherits="KTHeaderFont" text="Bindings" parentKey="header">
Nenue@0 163 <Anchors>
Nenue@5 164 <Anchor point="TOPLEFT" />
Nenue@0 165 </Anchors>
Nenue@0 166 </FontString>
Nenue@0 167
Nenue@5 168 <FontString parentKey="profiletext" inherits="KTHeader2Font" justifyH="LEFT" text="Foobar">
Nenue@0 169 <Anchors>
Nenue@5 170 <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" relativeKey="$parent.header" x="8" y="5" />
Nenue@0 171 </Anchors>
Nenue@5 172 <Color a="1" r="1" g="0.7" b="0" />
Nenue@5 173 </FontString>
Nenue@5 174
Nenue@5 175 <FontString parentKey="statustext" inherits="NumberFont_Outline_Large" justifyH="LEFT" justifyV="TOP">
Nenue@5 176 <Anchors>
Nenue@5 177 <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" relativeKey="$parent.bg" x="12" y="7" />
Nenue@5 178 </Anchors>
Nenue@5 179 </FontString>
Nenue@5 180
Nenue@5 181
Nenue@5 182 <FontString parentKey="bindingstext" inherits="NumberFont_Outline_Large" justifyH="RIGHT" justifyV="TOP">
Nenue@5 183 <Anchors>
Nenue@5 184 <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" relativeKey="$parent.bg" x="-12" y="7" />
Nenue@5 185 </Anchors>
Nenue@5 186 <Color a="1" r="0" g="1" b="0" />
Nenue@0 187 </FontString>
Nenue@0 188 </Layer>
Nenue@0 189 </Layers>
Nenue@0 190 <Frames>
Nenue@5 191 <Button inherits="UIPanelCloseButton" parentKey="CloseButton">
Nenue@0 192 <Anchors>
Nenue@0 193 <Anchor point="TOPRIGHT" />
Nenue@0 194 </Anchors>
Nenue@0 195 </Button>
Nenue@5 196
Nenue@5 197 <CheckButton inherits="UICheckButtonTemplate" parentKey="DummyCheckButton">
Nenue@5 198 <Anchors>
Nenue@5 199 <Anchor point="BOTTOMLEFT" x="4" y="4" />
Nenue@5 200 </Anchors>
Nenue@5 201 <ButtonText text="This is some crap" />
Nenue@5 202 </CheckButton>
Nenue@0 203 </Frames>
Nenue@0 204 </Frame>
Nenue@5 205
Nenue@5 206 <ScrollingMessageFrame hidden="true" fade="false" name="KeyBinderImportLog" parent="KeyBinder" clampedToScreen="true" parentKey="ImportLog" insertMode="BOTTOM" maxLines="500">
Nenue@5 207
Nenue@5 208 <Scripts>
Nenue@5 209 <OnLoad>
Nenue@5 210 self:AddMessage('SkeletonKey import tool')
Nenue@5 211 </OnLoad>
Nenue@5 212 <OnMouseWheel>
Nenue@5 213 if delta >= 0 then
Nenue@5 214 if IsControlKeyDown() then
Nenue@5 215 -- extremely janky but avoids having one line at the bottom
Nenue@5 216 for i =1, self:GetMaxLines() do
Nenue@5 217 self:ScrollUp()
Nenue@5 218 end
Nenue@5 219 end
Nenue@5 220
Nenue@5 221 return self:ScrollUp()
Nenue@5 222 else
Nenue@5 223
Nenue@5 224 if IsControlKeyDown() then
Nenue@5 225 return self:ScrollToBottom()
Nenue@5 226 end
Nenue@5 227
Nenue@5 228 self:ScrollDown()
Nenue@5 229 end
Nenue@5 230 </OnMouseWheel>
Nenue@5 231 </Scripts>
Nenue@5 232 <Anchors>
Nenue@5 233 <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="2" y="0" />
Nenue@5 234 <Anchor point="BOTTOM" />
Nenue@5 235 </Anchors>
Nenue@5 236 <Size x="400" />
Nenue@5 237 <Layers>
Nenue@5 238 <Layer level="BACKGROUND">
Nenue@5 239 <Texture setAllPoints="true">
Nenue@5 240 <Color a="1" r="0" g="0" b="0" />
Nenue@5 241 </Texture>
Nenue@5 242 </Layer>
Nenue@5 243 </Layers>
Nenue@5 244 <FontString inherits="NumberFontNormal" justifyH="LEFT">
Nenue@5 245
Nenue@5 246 <Anchors>
Nenue@5 247 <Anchor point="TOPLEFT" />
Nenue@5 248 </Anchors>
Nenue@5 249 </FontString>
Nenue@5 250 </ScrollingMessageFrame>
Nenue@0 251 </Ui>