annotate OptionPage.xml @ 55:72adde883f46

Removed the "Defaults" button from the option page. It was no longer visible following addition of the prefix anyway. Plugged the built-in "Defaults" button of the interface options dialog to what the custom button was previously doing.
author madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09
date Fri, 03 May 2013 23:24:26 +0000
parents c9706291c141
children 5ca5fe6b0871
rev   line source
madcatzinc@0 1 <Ui xmlns="http://www.blizzard.com/wow/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
madcatzinc@0 2 <!--
madcatzinc@43 3 Warcraft Plugin for Cyborg MMO7
madcatzinc@0 4 Filename: OptionPage.xml
madcatzinc@0 5 Description: The configuration page layout for the addons interface page
madcatzinc@0 6 Copyright (C) 2012 Mad Catz Inc.
madcatzinc@0 7 Author: Christopher Hooks
madcatzinc@0 8
madcatzinc@0 9 This program is free software; you can redistribute it and/or
madcatzinc@0 10 modify it under the terms of the GNU General Public License
madcatzinc@0 11 as published by the Free Software Foundation; either version 2
madcatzinc@0 12 of the License, or (at your option) any later version.
madcatzinc@0 13
madcatzinc@0 14 This program is distributed in the hope that it will be useful,
madcatzinc@0 15 but WITHOUT ANY WARRANTY; without even the implied warranty of
madcatzinc@0 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
madcatzinc@0 17 GNU General Public License for more details.
madcatzinc@0 18
madcatzinc@0 19 You should have received a copy of the GNU General Public License
madcatzinc@0 20 along with this program; if not, write to the Free Software
madcatzinc@43 21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
madcatzinc@0 22 -->
madcatzinc@43 23
madcatzinc@3 24 <FontString name="CyborgMMO_TemplateNormalString" font="Fonts\FRIZQT__.TTF" text="NoText" virtual="true">
madcatzinc@43 25 <FontHeight><AbsValue val="10"/></FontHeight>
madcatzinc@43 26 <Color r="1" g="1" b="1"/>
madcatzinc@0 27 <Shadow>
madcatzinc@43 28 <Color r="0" g="0" b="0"/>
madcatzinc@43 29 <Offset><AbsDimension x="1" y="-1"/></Offset>
madcatzinc@0 30 </Shadow>
madcatzinc@0 31 </FontString>
madcatzinc@0 32
madcatzinc@43 33 <Button name="CyborgMMO_TemplateButton" virtual="true">
madcatzinc@43 34 <NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
madcatzinc@43 35 <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
madcatzinc@43 36 </NormalTexture>
madcatzinc@43 37 <PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
madcatzinc@43 38 <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
madcatzinc@43 39 </PushedTexture>
madcatzinc@43 40 <DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
madcatzinc@43 41 <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
madcatzinc@43 42 </DisabledTexture>
madcatzinc@43 43 <HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
madcatzinc@43 44 <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/>
madcatzinc@43 45 </HighlightTexture>
madcatzinc@1 46
madcatzinc@43 47 <NormalFont style="GameFontNormal"/>
madcatzinc@43 48 <HighlightFont style="GameFontHighlight"/>
madcatzinc@43 49 <DisabledFont style="GameFontDisable"/>
madcatzinc@43 50 <Scripts>
madcatzinc@43 51 <OnLoad>
madcatzinc@43 52 self:RegisterEvent("VARIABLES_LOADED")
madcatzinc@43 53 </OnLoad>
madcatzinc@43 54 <OnEvent>
madcatzinc@43 55 if event == "VARIABLES_LOADED" then
madcatzinc@43 56 CyborgMMO_SetBindingButtonText(self:GetName())
madcatzinc@43 57 end
madcatzinc@43 58 </OnEvent>
madcatzinc@43 59 <OnClick>
madcatzinc@43 60 CyborgMMO_BindButton(self:GetName())
madcatzinc@43 61 </OnClick>
madcatzinc@43 62 </Scripts>
madcatzinc@43 63 </Button>
madcatzinc@1 64
madcatzinc@3 65 <FontString name="CyborgMMO_TemplateSliderTitle" font="Fonts\FRIZQT__.TTF" text="NoText" virtual="true">
madcatzinc@43 66 <FontHeight><AbsValue val="14"/></FontHeight>
madcatzinc@43 67 <Color r="1" g="0.8196079" b="0"/>
madcatzinc@0 68 <Shadow>
madcatzinc@43 69 <Color r="0" g="0" b="0"/>
madcatzinc@43 70 <Offset><AbsDimension x="1" y="-1"/></Offset>
madcatzinc@0 71 </Shadow>
madcatzinc@0 72 </FontString>
madcatzinc@43 73
madcatzinc@3 74 <Frame name="CyborgMMO_TemplateButtonRow" virtual="true">
madcatzinc@43 75 <Size><AbsDimension x="160" y="28"/></Size>
madcatzinc@43 76
madcatzinc@1 77 <Layers>
madcatzinc@1 78 <Layer level="ARTWORK">
madcatzinc@3 79 <FontString name="$parentName" inherits="GameFontNormal">
madcatzinc@1 80 <Anchors>
madcatzinc@1 81 <Anchor point="TOPLEFT" relativeTo="$parent">
madcatzinc@43 82 <Offset><AbsDimension x="0" y="-10"/></Offset>
madcatzinc@1 83 </Anchor>
madcatzinc@1 84 </Anchors>
madcatzinc@1 85 </FontString>
madcatzinc@1 86 </Layer>
madcatzinc@1 87 </Layers>
madcatzinc@1 88 <Frames>
madcatzinc@3 89 <Button name="$parentMode1" inherits="CyborgMMO_TemplateButton">
madcatzinc@43 90 <Size><AbsDimension x="145" y="28"/></Size>
madcatzinc@1 91 <Anchors>
madcatzinc@1 92 <Anchor point="TOPLEFT" relativeTo="$parent">
madcatzinc@43 93 <Offset><AbsDimension x="135" y="0"/></Offset>
madcatzinc@1 94 </Anchor>
madcatzinc@1 95 </Anchors>
madcatzinc@1 96 </Button>
madcatzinc@3 97 <Button name="$parentMode2" inherits="CyborgMMO_TemplateButton">
madcatzinc@43 98 <Size><AbsDimension x="145" y="28"/></Size>
madcatzinc@1 99 <Anchors>
madcatzinc@1 100 <Anchor point="TOPLEFT" relativeTo="$parent">
madcatzinc@43 101 <Offset><AbsDimension x="280" y="0"/></Offset>
madcatzinc@1 102 </Anchor>
madcatzinc@1 103 </Anchors>
madcatzinc@1 104 </Button>
madcatzinc@3 105 <Button name="$parentMode3" inherits="CyborgMMO_TemplateButton">
madcatzinc@43 106 <Size><AbsDimension x="145" y="28"/></Size>
madcatzinc@1 107 <Anchors>
madcatzinc@1 108 <Anchor point="TOPLEFT" relativeTo="$parent">
madcatzinc@43 109 <Offset><AbsDimension x="425" y="0"/></Offset>
madcatzinc@1 110 </Anchor>
madcatzinc@1 111 </Anchors>
madcatzinc@1 112 </Button>
madcatzinc@1 113 </Frames>
madcatzinc@1 114 <Scripts>
madcatzinc@1 115 <OnLoad>
madcatzinc@13 116 CyborgMMO_LoadStrings(getglobal(self:GetName().."Name"))
madcatzinc@1 117 </OnLoad>
madcatzinc@1 118 </Scripts>
madcatzinc@1 119 </Frame>
madcatzinc@0 120
madcatzinc@43 121 <!-- Custom keybinds -->
madcatzinc@43 122 <Frame name="CyborgMMO_MouseRebind" virtual="true">
madcatzinc@1 123 <Layers>
madcatzinc@1 124 <Layer level="ARTWORK">
madcatzinc@4 125 <FontString name="$parentTitle" inherits="GameFontNormalLarge" text="CyborgMMO_MouseRebindTitle">
madcatzinc@1 126 <Anchors>
madcatzinc@43 127 <Anchor point="TOPLEFT"><Offset><AbsDimension x="-15" y="0"/></Offset></Anchor>
madcatzinc@1 128 </Anchors>
madcatzinc@1 129 </FontString>
madcatzinc@4 130 <FontString name="$parentMode1" inherits="GameFontNormal" text="Mode Num">
madcatzinc@3 131 <Anchors>
madcatzinc@43 132 <Anchor point="TOPLEFT"><Offset><AbsDimension x="147" y="-28"/></Offset></Anchor>
madcatzinc@3 133 </Anchors>
madcatzinc@3 134 </FontString>
madcatzinc@4 135 <FontString name="$parentMode2" inherits="GameFontNormal" text="Mode Num">
madcatzinc@3 136 <Anchors>
madcatzinc@43 137 <Anchor point="TOPLEFT"><Offset><AbsDimension x="282" y="-28"/></Offset></Anchor>
madcatzinc@3 138 </Anchors>
madcatzinc@3 139 </FontString>
madcatzinc@4 140 <FontString name="$parentMode3" inherits="GameFontNormal" text="Mode Num">
madcatzinc@3 141 <Anchors>
madcatzinc@43 142 <Anchor point="TOPLEFT"><Offset><AbsDimension x="427" y="-28"/></Offset></Anchor>
madcatzinc@3 143 </Anchors>
madcatzinc@3 144 </FontString>
madcatzinc@1 145 </Layer>
madcatzinc@1 146 </Layers>
madcatzinc@1 147 <Frames>
madcatzinc@4 148 <Frame name="$parentMouseRow1" inherits="CyborgMMO_TemplateButtonRow">
madcatzinc@1 149 <Anchors>
madcatzinc@1 150 <Anchor point="TOPLEFT" relativeTo="$parent">
madcatzinc@43 151 <Offset><AbsDimension x="0" y="-40"/></Offset>
madcatzinc@1 152 </Anchor>
madcatzinc@1 153 </Anchors>
madcatzinc@1 154 </Frame>
madcatzinc@4 155 <Frame name="$parentMouseRow2" inherits="CyborgMMO_TemplateButtonRow">
madcatzinc@1 156 <Anchors>
madcatzinc@4 157 <Anchor point="TOPLEFT" relativeTo="$parentMouseRow1">
madcatzinc@43 158 <Offset><AbsDimension x="0" y="-30"/></Offset>
madcatzinc@1 159 </Anchor>
madcatzinc@1 160 </Anchors>
madcatzinc@1 161 </Frame>
madcatzinc@4 162 <Frame name="$parentMouseRow3" inherits="CyborgMMO_TemplateButtonRow">
madcatzinc@1 163 <Anchors>
madcatzinc@4 164 <Anchor point="TOPLEFT" relativeTo="$parentMouseRow2">
madcatzinc@43 165 <Offset><AbsDimension x="0" y="-30"/></Offset>
madcatzinc@1 166 </Anchor>
madcatzinc@1 167 </Anchors>
madcatzinc@1 168 </Frame>
madcatzinc@4 169 <Frame name="$parentMouseRow4" inherits="CyborgMMO_TemplateButtonRow">
madcatzinc@1 170 <Anchors>
madcatzinc@4 171 <Anchor point="TOPLEFT" relativeTo="$parentMouseRow3">
madcatzinc@43 172 <Offset><AbsDimension x="0" y="-30"/></Offset>
madcatzinc@1 173 </Anchor>
madcatzinc@1 174 </Anchors>
madcatzinc@1 175 </Frame>
madcatzinc@4 176 <Frame name="$parentMouseRow5" inherits="CyborgMMO_TemplateButtonRow">
madcatzinc@1 177 <Anchors>
madcatzinc@4 178 <Anchor point="TOPLEFT" relativeTo="$parentMouseRow4">
madcatzinc@43 179 <Offset><AbsDimension x="0" y="-30"/></Offset>
madcatzinc@1 180 </Anchor>
madcatzinc@1 181 </Anchors>
madcatzinc@1 182 </Frame>
madcatzinc@4 183 <Frame name="$parentMouseRow6" inherits="CyborgMMO_TemplateButtonRow">
madcatzinc@1 184 <Anchors>
madcatzinc@4 185 <Anchor point="TOPLEFT" relativeTo="$parentMouseRow5">
madcatzinc@43 186 <Offset><AbsDimension x="0" y="-30"/></Offset>
madcatzinc@1 187 </Anchor>
madcatzinc@1 188 </Anchors>
madcatzinc@1 189 </Frame>
madcatzinc@4 190 <Frame name="$parentMouseRow7" inherits="CyborgMMO_TemplateButtonRow">
madcatzinc@1 191 <Anchors>
madcatzinc@4 192 <Anchor point="TOPLEFT" relativeTo="$parentMouseRow6">
madcatzinc@43 193 <Offset><AbsDimension x="0" y="-30"/></Offset>
madcatzinc@1 194 </Anchor>
madcatzinc@1 195 </Anchors>
madcatzinc@1 196 </Frame>
madcatzinc@4 197 <Frame name="$parentMouseRow8" inherits="CyborgMMO_TemplateButtonRow">
madcatzinc@1 198 <Anchors>
madcatzinc@4 199 <Anchor point="TOPLEFT" relativeTo="$parentMouseRow7">
madcatzinc@43 200 <Offset><AbsDimension x="0" y="-30"/></Offset>
madcatzinc@1 201 </Anchor>
madcatzinc@1 202 </Anchors>
madcatzinc@1 203 </Frame>
madcatzinc@4 204 <Frame name="$parentMouseRow9" inherits="CyborgMMO_TemplateButtonRow">
madcatzinc@1 205 <Anchors>
madcatzinc@4 206 <Anchor point="TOPLEFT" relativeTo="$parentMouseRow8">
madcatzinc@43 207 <Offset><AbsDimension x="0" y="-30"/></Offset>
madcatzinc@1 208 </Anchor>
madcatzinc@1 209 </Anchors>
madcatzinc@1 210 </Frame>
madcatzinc@4 211 <Frame name="$parentMouseRowA" inherits="CyborgMMO_TemplateButtonRow">
madcatzinc@1 212 <Anchors>
madcatzinc@4 213 <Anchor point="TOPLEFT" relativeTo="$parentMouseRow9">
madcatzinc@43 214 <Offset><AbsDimension x="0" y="-30"/></Offset>
madcatzinc@1 215 </Anchor>
madcatzinc@1 216 </Anchors>
madcatzinc@1 217 </Frame>
madcatzinc@4 218 <Frame name="$parentMouseRowB" inherits="CyborgMMO_TemplateButtonRow">
madcatzinc@1 219 <Anchors>
madcatzinc@4 220 <Anchor point="TOPLEFT" relativeTo="$parentMouseRowA">
madcatzinc@43 221 <Offset><AbsDimension x="0" y="-30"/></Offset>
madcatzinc@1 222 </Anchor>
madcatzinc@1 223 </Anchors>
madcatzinc@1 224 </Frame>
madcatzinc@4 225 <Frame name="$parentMouseRowC" inherits="CyborgMMO_TemplateButtonRow">
madcatzinc@1 226 <Anchors>
madcatzinc@4 227 <Anchor point="TOPLEFT" relativeTo="$parentMouseRowB">
madcatzinc@43 228 <Offset><AbsDimension x="0" y="-30"/></Offset>
madcatzinc@1 229 </Anchor>
madcatzinc@1 230 </Anchors>
madcatzinc@1 231 </Frame>
madcatzinc@4 232 <Frame name="$parentMouseRowD" inherits="CyborgMMO_TemplateButtonRow">
madcatzinc@1 233 <Anchors>
madcatzinc@4 234 <Anchor point="TOPLEFT" relativeTo="$parentMouseRowC">
madcatzinc@43 235 <Offset><AbsDimension x="0" y="-30"/></Offset>
madcatzinc@1 236 </Anchor>
madcatzinc@1 237 </Anchors>
madcatzinc@1 238 </Frame>
madcatzinc@1 239 </Frames>
madcatzinc@1 240 </Frame>
madcatzinc@0 241
madcatzinc@4 242 <Frame name="CyborgMMO_OptionPage">
madcatzinc@0 243 <Layers>
madcatzinc@0 244 <Layer level="ARTWORK">
madcatzinc@0 245 <FontString name="$parentTitle" inherits="GameFontNormalLarge">
madcatzinc@0 246 <Anchors>
madcatzinc@0 247 <Anchor point="TOPLEFT">
madcatzinc@43 248 <Offset><AbsDimension x="15" y="-15"/></Offset>
madcatzinc@0 249 </Anchor>
madcatzinc@0 250 </Anchors>
madcatzinc@0 251 </FontString>
madcatzinc@0 252 </Layer>
madcatzinc@0 253 </Layers>
madcatzinc@0 254
madcatzinc@0 255 <Frames>
madcatzinc@4 256 <CheckButton name="$parentMiniMapButton" inherits="UICheckButtonTemplate" checked="true">
madcatzinc@43 257 <Size><AbsDimension x="32" y="32"/></Size>
madcatzinc@0 258 <Anchors>
madcatzinc@0 259 <Anchor point="TOPLEFT" relativeTo="$parentTitle">
madcatzinc@54 260 <Offset><AbsDimension x="15" y="-25"/></Offset>
madcatzinc@0 261 </Anchor>
madcatzinc@0 262 </Anchors>
madcatzinc@0 263 <Layers>
madcatzinc@0 264 <Layer>
madcatzinc@3 265 <FontString name="$parentTitle" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateSliderTitle">
madcatzinc@0 266 <Anchors>
madcatzinc@0 267 <Anchor point="LEFT" relativePoint="$parentMiniMapButton">
madcatzinc@43 268 <Offset><AbsDimension x="45" y="0"/></Offset>
madcatzinc@0 269 </Anchor>
madcatzinc@0 270 </Anchors>
madcatzinc@0 271 </FontString>
madcatzinc@0 272 </Layer>
madcatzinc@0 273 </Layers>
madcatzinc@0 274 <Scripts>
madcatzinc@0 275 <OnLoad>
madcatzinc@13 276 CyborgMMO_LoadStrings(getglobal(self:GetName().."Title"))
madcatzinc@0 277 </OnLoad>
madcatzinc@0 278 <OnClick>
madcatzinc@43 279 if self:GetChecked() then
madcatzinc@4 280 CyborgMMO_SetMiniMapButton(true)
madcatzinc@0 281 else
madcatzinc@4 282 CyborgMMO_SetMiniMapButton(false)
madcatzinc@0 283 end
madcatzinc@0 284 </OnClick>
madcatzinc@0 285 </Scripts>
madcatzinc@0 286 </CheckButton>
madcatzinc@0 287
madcatzinc@0 288
madcatzinc@4 289 <CheckButton name="$parentCyborgButton" inherits="UICheckButtonTemplate" checked="true">
madcatzinc@43 290 <Size><AbsDimension x="32" y="32"/></Size>
madcatzinc@0 291 <Anchors>
madcatzinc@4 292 <Anchor point="TOPLEFT" relativeTo="$parentMiniMapButton">
madcatzinc@43 293 <Offset><AbsDimension x="0" y="-30"/></Offset>
madcatzinc@0 294 </Anchor>
madcatzinc@0 295 </Anchors>
madcatzinc@0 296 <Layers>
madcatzinc@0 297 <Layer>
madcatzinc@3 298 <FontString name="$parentTitle" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateSliderTitle">
madcatzinc@0 299 <Anchors>
madcatzinc@0 300 <Anchor point="LEFT" relativePoint="$parentCyborgButton">
madcatzinc@43 301 <Offset><AbsDimension x="45" y="0"/></Offset>
madcatzinc@0 302 </Anchor>
madcatzinc@0 303 </Anchors>
madcatzinc@0 304 </FontString>
madcatzinc@0 305 </Layer>
madcatzinc@0 306 </Layers>
madcatzinc@0 307 <Scripts>
madcatzinc@0 308 <OnLoad>
madcatzinc@13 309 CyborgMMO_LoadStrings(getglobal(self:GetName().."Title"))
madcatzinc@0 310 </OnLoad>
madcatzinc@0 311 <OnClick>
madcatzinc@43 312 if self:GetChecked() then
madcatzinc@4 313 CyborgMMO_SetCyborgHeadButton(true)
madcatzinc@0 314 else
madcatzinc@4 315 CyborgMMO_SetCyborgHeadButton(false)
madcatzinc@0 316 end
madcatzinc@0 317 </OnClick>
madcatzinc@0 318 </Scripts>
madcatzinc@0 319 </CheckButton>
madcatzinc@0 320
madcatzinc@54 321 <CheckButton name="$parentPerSpecBindings" inherits="UICheckButtonTemplate" checked="true">
madcatzinc@54 322 <Size><AbsDimension x="32" y="32"/></Size>
madcatzinc@54 323 <Anchors>
madcatzinc@54 324 <Anchor point="TOPLEFT" relativeTo="$parentCyborgButton">
madcatzinc@54 325 <Offset><AbsDimension x="0" y="-30"/></Offset>
madcatzinc@54 326 </Anchor>
madcatzinc@54 327 </Anchors>
madcatzinc@54 328 <Layers>
madcatzinc@54 329 <Layer>
madcatzinc@54 330 <FontString name="$parentTitle" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateSliderTitle">
madcatzinc@54 331 <Anchors>
madcatzinc@54 332 <Anchor point="LEFT" relativePoint="$parentPerSpecBindings">
madcatzinc@54 333 <Offset><AbsDimension x="45" y="0"/></Offset>
madcatzinc@54 334 </Anchor>
madcatzinc@54 335 </Anchors>
madcatzinc@54 336 </FontString>
madcatzinc@54 337 </Layer>
madcatzinc@54 338 </Layers>
madcatzinc@54 339 <Scripts>
madcatzinc@54 340 <OnLoad>
madcatzinc@54 341 CyborgMMO_LoadStrings(getglobal(self:GetName().."Title"))
madcatzinc@54 342 </OnLoad>
madcatzinc@54 343 <OnClick>
madcatzinc@54 344 if self:GetChecked() then
madcatzinc@54 345 CyborgMMO_SetPerSpecBindings(true)
madcatzinc@54 346 else
madcatzinc@54 347 CyborgMMO_SetPerSpecBindings(false)
madcatzinc@54 348 end
madcatzinc@54 349 </OnClick>
madcatzinc@54 350 </Scripts>
madcatzinc@54 351 </CheckButton>
madcatzinc@54 352
madcatzinc@4 353 <Frame name="$parentRebind" inherits="CyborgMMO_MouseRebind">
madcatzinc@43 354 <Size><AbsDimension x="45" y="60"/></Size>
madcatzinc@0 355 <Anchors>
madcatzinc@0 356 <Anchor point="TOPLEFT" relativeTo="$parentTitle">
madcatzinc@43 357 <Offset><AbsDimension x="25" y="-120"/></Offset>
madcatzinc@0 358 </Anchor>
madcatzinc@0 359 </Anchors>
madcatzinc@4 360 <Scripts>
madcatzinc@4 361 <OnLoad>
madcatzinc@4 362 CyborgMMO_LoadStrings(getglobal(self:GetName().."Title"))
madcatzinc@4 363 CyborgMMO_LoadStrings(getglobal(self:GetName().."Mode1"))
madcatzinc@4 364 CyborgMMO_LoadStrings(getglobal(self:GetName().."Mode2"))
madcatzinc@4 365 CyborgMMO_LoadStrings(getglobal(self:GetName().."Mode3"))
madcatzinc@4 366 </OnLoad>
madcatzinc@4 367 </Scripts>
madcatzinc@1 368 </Frame>
madcatzinc@43 369
madcatzinc@4 370 <Frame name="$parentCyborgSize">
madcatzinc@1 371 <Size>
madcatzinc@43 372 <AbsDimension x="180" y="32"/>
madcatzinc@1 373 </Size>
madcatzinc@1 374 <Anchors>
madcatzinc@1 375 <Anchor point="TOPLEFT" relativeTo="$parentTitle">
madcatzinc@43 376 <Offset><AbsDimension x="195" y="-40"/></Offset>
madcatzinc@1 377 </Anchor>
madcatzinc@1 378 </Anchors>
madcatzinc@0 379 <Frames>
madcatzinc@0 380 <Slider name="$parentSlider" enableMouse="true" minValue=".5" maxValue="1" defaultValue=".75" valueStep=".01" orientation="HORIZONTAL">
madcatzinc@43 381 <Size><AbsDimension x="128" y="17"/></Size>
madcatzinc@0 382 <Anchors>
madcatzinc@43 383 <Anchor point="LEFT"/>
madcatzinc@43 384 <Anchor point="RIGHT"/>
madcatzinc@0 385 </Anchors>
madcatzinc@0 386 <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
madcatzinc@0 387 <BackgroundInsets>
madcatzinc@43 388 <AbsInset left="3" right="3" top="6" bottom="6"/>
madcatzinc@0 389 </BackgroundInsets>
madcatzinc@43 390 <TileSize><AbsValue val="8"/></TileSize>
madcatzinc@43 391 <EdgeSize><AbsValue val="8"/></EdgeSize>
madcatzinc@0 392 </Backdrop>
madcatzinc@0 393 <Layers>
madcatzinc@0 394 <Layer>
madcatzinc@3 395 <FontString name="$parentTitle" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateSliderTitle">
madcatzinc@0 396 <Anchors>
madcatzinc@43 397 <Anchor point="BOTTOM" relativePoint="TOP"/>
madcatzinc@0 398 </Anchors>
madcatzinc@0 399 </FontString>
madcatzinc@3 400 <FontString name="$parentLow" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateNormalString" text="50%">
madcatzinc@0 401 <Anchors>
madcatzinc@43 402 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT"/>
madcatzinc@0 403 </Anchors>
madcatzinc@0 404 </FontString>
madcatzinc@3 405 <FontString name="$parentHigh" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateNormalString" text="100%">
madcatzinc@0 406 <Anchors>
madcatzinc@43 407 <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT"/>
madcatzinc@0 408 </Anchors>
madcatzinc@0 409 </FontString>
madcatzinc@0 410 </Layer>
madcatzinc@0 411 </Layers>
madcatzinc@0 412 <ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
madcatzinc@43 413 <Size><AbsDimension x="32" y="32"/></Size>
madcatzinc@0 414 </ThumbTexture>
madcatzinc@0 415 <Scripts>
madcatzinc@0 416 <OnLoad>
madcatzinc@4 417 CyborgMMO_LoadStrings(getglobal(self:GetName().."Title"))
madcatzinc@0 418 </OnLoad>
madcatzinc@43 419 <OnValueChanged>
madcatzinc@43 420 CyborgMMO_SetOpenButtonSize(self:GetValue())
madcatzinc@43 421 </OnValueChanged>
madcatzinc@0 422 </Scripts>
madcatzinc@0 423 </Slider>
madcatzinc@0 424 </Frames>
madcatzinc@0 425 </Frame>
madcatzinc@4 426 <Frame name="$parentPluginSize">
madcatzinc@43 427 <Size><AbsDimension x="180" y="32"/></Size>
madcatzinc@0 428 <Anchors>
madcatzinc@4 429 <Anchor point="TOPLEFT" relativeTo="$parentCyborgSize">
madcatzinc@43 430 <Offset><AbsDimension x="200" y="0"/></Offset>
madcatzinc@0 431 </Anchor>
madcatzinc@0 432 </Anchors>
madcatzinc@0 433 <Frames>
madcatzinc@0 434 <Slider name="$parentSlider" enableMouse="true" minValue=".5" maxValue="1" defaultValue=".75" valueStep=".01" orientation="HORIZONTAL">
madcatzinc@43 435 <Size><AbsDimension x="128" y="17"/></Size>
madcatzinc@0 436 <Anchors>
madcatzinc@43 437 <Anchor point="LEFT"/>
madcatzinc@43 438 <Anchor point="RIGHT"/>
madcatzinc@0 439 </Anchors>
madcatzinc@0 440 <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
madcatzinc@0 441 <BackgroundInsets>
madcatzinc@43 442 <AbsInset left="3" right="3" top="6" bottom="6"/>
madcatzinc@0 443 </BackgroundInsets>
madcatzinc@43 444 <TileSize><AbsValue val="8"/></TileSize>
madcatzinc@43 445 <EdgeSize><AbsValue val="8"/></EdgeSize>
madcatzinc@0 446 </Backdrop>
madcatzinc@0 447 <Layers>
madcatzinc@0 448 <Layer>
madcatzinc@3 449 <FontString name="$parentTitle" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateSliderTitle">
madcatzinc@0 450 <Anchors>
madcatzinc@43 451 <Anchor point="BOTTOM" relativePoint="TOP"/>
madcatzinc@0 452 </Anchors>
madcatzinc@0 453 </FontString>
madcatzinc@3 454 <FontString name="$parentLow" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateNormalString" text="50%">
madcatzinc@0 455 <Anchors>
madcatzinc@43 456 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT"/>
madcatzinc@0 457 </Anchors>
madcatzinc@0 458 </FontString>
madcatzinc@3 459 <FontString name="$parentHigh" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateNormalString" text="100%">
madcatzinc@0 460 <Anchors>
madcatzinc@43 461 <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT"/>
madcatzinc@0 462 </Anchors>
madcatzinc@0 463 </FontString>
madcatzinc@0 464 </Layer>
madcatzinc@0 465 </Layers>
madcatzinc@0 466 <ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
madcatzinc@43 467 <Size><AbsDimension x="32" y="32"/></Size>
madcatzinc@0 468 </ThumbTexture>
madcatzinc@0 469 <Scripts>
madcatzinc@0 470 <OnLoad>
madcatzinc@13 471 CyborgMMO_LoadStrings(getglobal(self:GetName().."Title"))
madcatzinc@0 472 </OnLoad>
madcatzinc@0 473 <OnValueChanged>
madcatzinc@4 474 CyborgMMO_SetMainPageSize(self:GetValue())
madcatzinc@0 475 </OnValueChanged>
madcatzinc@0 476 </Scripts>
madcatzinc@43 477 </Slider>
madcatzinc@0 478 </Frames>
madcatzinc@0 479 </Frame>
madcatzinc@0 480 </Frames>
madcatzinc@0 481
madcatzinc@0 482 <Scripts>
madcatzinc@0 483 <OnLoad>
madcatzinc@13 484 CyborgMMO_LoadStrings(getglobal(self:GetName().."Title"))
madcatzinc@15 485 CyborgMMO_DPrint("Loaded Option Page")
madcatzinc@13 486 self = CyborgMMO_OptionView.new(self)
madcatzinc@0 487 </OnLoad>
madcatzinc@0 488 </Scripts>
madcatzinc@0 489 </Frame>
madcatzinc@43 490
madcatzinc@4 491 <Button name="CyborgMMO_BindingFrame" toplevel="true" parent="UIParent" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" enableKeyboard="true">
madcatzinc@43 492 <Size><AbsDimension x="400" y="200"/></Size>
madcatzinc@43 493 <Anchors>
madcatzinc@43 494 <Anchor point="CENTER"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor>
madcatzinc@43 495 </Anchors>
madcatzinc@43 496 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
madcatzinc@43 497 <BackgroundInsets>
madcatzinc@43 498 <AbsInset left="11" right="12" top="12" bottom="11"/>
madcatzinc@43 499 </BackgroundInsets>
madcatzinc@43 500 <TileSize><AbsValue val="32"/></TileSize>
madcatzinc@43 501 <EdgeSize><AbsValue val="32"/></EdgeSize>
madcatzinc@43 502 </Backdrop>
madcatzinc@43 503 <Layers>
madcatzinc@43 504 <Layer level="ARTWORK">
madcatzinc@43 505 <Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
madcatzinc@43 506 <Size><AbsDimension x="500" y="64"/></Size>
madcatzinc@43 507 <Anchors>
madcatzinc@43 508 <Anchor point="TOP"><Offset><AbsDimension x="0" y="12"/></Offset></Anchor>
madcatzinc@43 509 </Anchors>
madcatzinc@43 510 </Texture>
madcatzinc@43 511 <FontString name="$parentHeaderText" inherits="GameFontNormal" text="FillerText">
madcatzinc@43 512 <Size><AbsDimension x="500" y="13"/></Size>
madcatzinc@43 513 <Anchors>
madcatzinc@43 514 <Anchor point="TOP" relativeTo="$parentHeader">
madcatzinc@43 515 <Offset><AbsDimension x="0" y="-13"/></Offset>
madcatzinc@43 516 </Anchor>
madcatzinc@43 517 </Anchors>
madcatzinc@43 518 </FontString>
madcatzinc@43 519 <FontString inherits="GameFontNormalLarge" name="$parentButtonName" text="Button Name">
madcatzinc@43 520 <Anchors>
madcatzinc@43 521 <Anchor point="CENTER" relativeTo="$parent">
madcatzinc@43 522 <Offset><AbsDimension x="0" y="32"/></Offset>
madcatzinc@43 523 </Anchor>
madcatzinc@43 524 </Anchors>
madcatzinc@43 525 </FontString>
madcatzinc@43 526 <FontString name="$parentKey" inherits="GameFontNormalLarge" text="KeyText">
madcatzinc@43 527 <Anchors>
madcatzinc@43 528 <Anchor point="CENTER" relativeTo="$parent">
madcatzinc@43 529 <Offset><AbsDimension x="0" y="-16"/></Offset>
madcatzinc@43 530 </Anchor>
madcatzinc@43 531 </Anchors>
madcatzinc@43 532 </FontString>
madcatzinc@43 533 </Layer>
madcatzinc@43 534 </Layers>
madcatzinc@43 535 <Frames>
madcatzinc@43 536 <Button name="$parentCloseButton" inherits="UIPanelCloseButton">
madcatzinc@43 537 <Anchors>
madcatzinc@43 538 <Anchor point="TOPRIGHT">
madcatzinc@43 539 <Offset><AbsDimension x="-3" y="-3"/></Offset>
madcatzinc@43 540 </Anchor>
madcatzinc@43 541 </Anchors>
madcatzinc@43 542 </Button>
madcatzinc@43 543 <Button name="$parentExitButton" inherits="UIPanelButtonTemplate" text="Close">
madcatzinc@43 544 <Size><AbsDimension x="80" y="26"/></Size>
madcatzinc@43 545 <Anchors>
madcatzinc@43 546 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
madcatzinc@43 547 <Offset><AbsDimension x="-12" y="12"/></Offset>
madcatzinc@43 548 </Anchor>
madcatzinc@43 549 </Anchors>
madcatzinc@43 550 <Scripts>
madcatzinc@43 551 <OnClick>
madcatzinc@43 552 HideUIPanel(self:GetParent())
madcatzinc@43 553 </OnClick>
madcatzinc@43 554 </Scripts>
madcatzinc@43 555 </Button>
madcatzinc@43 556 </Frames>
madcatzinc@1 557
madcatzinc@43 558 <Scripts>
madcatzinc@43 559 <OnLoad>
madcatzinc@43 560 CyborgMMO_LoadStrings(getglobal(self:GetName().."HeaderText"))
madcatzinc@43 561 CyborgMMO_LoadStrings(getglobal(self:GetName().."ExitButton"))
madcatzinc@43 562 self:RegisterForClicks("AnyUp")
madcatzinc@43 563 </OnLoad>
madcatzinc@43 564 <OnClick>
madcatzinc@43 565 CyborgMMO_BindingFrameOnKeyDown(self, button)
madcatzinc@43 566 </OnClick>
madcatzinc@43 567 <OnKeyDown>
madcatzinc@43 568 CyborgMMO_BindingFrameOnKeyDown(self, key)
madcatzinc@43 569 </OnKeyDown>
madcatzinc@43 570 <OnMouseWheel>
madcatzinc@43 571 if delta > 0 then
madcatzinc@43 572 CyborgMMO_BindingFrameOnKeyDown(self, "MOUSEWHEELUP")
madcatzinc@43 573 else
madcatzinc@43 574 CyborgMMO_BindingFrameOnKeyDown(self, "MOUSEWHEELDOWN")
madcatzinc@43 575 end
madcatzinc@43 576 </OnMouseWheel>
madcatzinc@43 577 </Scripts>
madcatzinc@43 578 </Button>
madcatzinc@0 579 </Ui>