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