Mercurial > wow > cyborg-mmo7
comparison OptionPage.xml @ 0:bf9220814fb5
The first version of the Cyborg MMO7 addon for warcraft
| author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
|---|---|
| date | Tue, 24 Jan 2012 17:14:21 +0000 |
| parents | |
| children | a4e2eaf9cad9 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:bf9220814fb5 |
|---|---|
| 1 <Ui xmlns="http://www.blizzard.com/wow/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| 2 <!-- | |
| 3 Warcraft Plugin for Cyborg MMO7 | |
| 4 Filename: OptionPage.xml | |
| 5 Description: The configuration page layout for the addons interface page | |
| 6 Copyright (C) 2012 Mad Catz Inc. | |
| 7 Author: Christopher Hooks | |
| 8 | |
| 9 This program is free software; you can redistribute it and/or | |
| 10 modify it under the terms of the GNU General Public License | |
| 11 as published by the Free Software Foundation; either version 2 | |
| 12 of the License, or (at your option) any later version. | |
| 13 | |
| 14 This program is distributed in the hope that it will be useful, | |
| 15 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 17 GNU General Public License for more details. | |
| 18 | |
| 19 You should have received a copy of the GNU General Public License | |
| 20 along with this program; if not, write to the Free Software | |
| 21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| 22 --> | |
| 23 <FontString name="normalStringTemplate" font="Fonts\FRIZQT__.TTF" text="NoText" virtual="true"> | |
| 24 <FontHeight> | |
| 25 <AbsValue val="10" /> | |
| 26 </FontHeight> | |
| 27 <Color r="1" g="1" b="1" /> | |
| 28 <Shadow> | |
| 29 <Color r="0" g="0" b="0" /> | |
| 30 <Offset> | |
| 31 <AbsDimension x="1" y="-1" /> | |
| 32 </Offset> | |
| 33 </Shadow> | |
| 34 </FontString> | |
| 35 | |
| 36 <FontString name="SliderTitle" font="Fonts\FRIZQT__.TTF" text="NoText" virtual="true"> | |
| 37 <FontHeight> | |
| 38 <AbsValue val="14" /> | |
| 39 </FontHeight> | |
| 40 <Color r="1" g="0.8196079" b="0" /> | |
| 41 <Shadow> | |
| 42 <Color r="0" g="0" b="0" /> | |
| 43 <Offset> | |
| 44 <AbsDimension x="1" y="-1" /> | |
| 45 </Offset> | |
| 46 </Shadow> | |
| 47 </FontString> | |
| 48 | |
| 49 | |
| 50 | |
| 51 <Frame name="OptionPage"> | |
| 52 <Layers> | |
| 53 <Layer level="ARTWORK"> | |
| 54 <FontString name="$parentTitle" inherits="GameFontNormalLarge"> | |
| 55 <Anchors> | |
| 56 <Anchor point="TOPLEFT"> | |
| 57 <Offset> | |
| 58 <AbsDimension x="15" y="-15" /> | |
| 59 </Offset> | |
| 60 </Anchor> | |
| 61 </Anchors> | |
| 62 </FontString> | |
| 63 </Layer> | |
| 64 </Layers> | |
| 65 | |
| 66 <Frames> | |
| 67 <CheckButton name="MiniMapButton" inherits="UICheckButtonTemplate" checked="true"> | |
| 68 <Size> | |
| 69 <AbsDimension x="32" y="32"/> | |
| 70 </Size> | |
| 71 <Anchors> | |
| 72 <Anchor point="TOPLEFT" relativeTo="$parentTitle"> | |
| 73 <Offset> | |
| 74 <AbsDimension x="25" y="-60"/> | |
| 75 </Offset> | |
| 76 </Anchor> | |
| 77 </Anchors> | |
| 78 <Layers> | |
| 79 <Layer> | |
| 80 <FontString name="$parentTitle" font="Fonts\FRIZQT__.TTF" inherits="SliderTitle"> | |
| 81 <Anchors> | |
| 82 <Anchor point="LEFT" relativePoint="$parentMiniMapButton"> | |
| 83 <Offset> | |
| 84 <AbsDimension x="45" y="0" /> | |
| 85 </Offset> | |
| 86 </Anchor> | |
| 87 </Anchors> | |
| 88 </FontString> | |
| 89 </Layer> | |
| 90 </Layers> | |
| 91 <Scripts> | |
| 92 <OnLoad> | |
| 93 LoadStrings(getglobal(self:GetName().."Title")); | |
| 94 </OnLoad> | |
| 95 <OnClick> | |
| 96 if(self:GetChecked() == 1) then | |
| 97 SetMiniMapButton(true) | |
| 98 else | |
| 99 SetMiniMapButton(false) | |
| 100 end | |
| 101 </OnClick> | |
| 102 </Scripts> | |
| 103 </CheckButton> | |
| 104 | |
| 105 | |
| 106 <CheckButton name="CyborgButton" inherits="UICheckButtonTemplate" checked="true"> | |
| 107 <Size> | |
| 108 <AbsDimension x="32" y="32"/> | |
| 109 </Size> | |
| 110 <Anchors> | |
| 111 <Anchor point="TOPLEFT" relativeTo="$parentTitle"> | |
| 112 <Offset> | |
| 113 <AbsDimension x="25" y="-85"/> | |
| 114 </Offset> | |
| 115 </Anchor> | |
| 116 </Anchors> | |
| 117 <Layers> | |
| 118 <Layer> | |
| 119 <FontString name="$parentTitle" font="Fonts\FRIZQT__.TTF" inherits="SliderTitle"> | |
| 120 <Anchors> | |
| 121 <Anchor point="LEFT" relativePoint="$parentCyborgButton"> | |
| 122 <Offset> | |
| 123 <AbsDimension x="45" y="0" /> | |
| 124 </Offset> | |
| 125 </Anchor> | |
| 126 </Anchors> | |
| 127 </FontString> | |
| 128 </Layer> | |
| 129 </Layers> | |
| 130 <Scripts> | |
| 131 <OnLoad> | |
| 132 LoadStrings(getglobal(self:GetName().."Title")); | |
| 133 </OnLoad> | |
| 134 <OnClick> | |
| 135 if(self:GetChecked() == 1) then | |
| 136 SetCyborgHeadButton(true) | |
| 137 else | |
| 138 SetCyborgHeadButton(false) | |
| 139 end | |
| 140 </OnClick> | |
| 141 </Scripts> | |
| 142 </CheckButton> | |
| 143 | |
| 144 <Button name="$parentSetDefaults"> | |
| 145 <Size> | |
| 146 <AbsDimension x="156" y="28" /> | |
| 147 </Size> | |
| 148 <Anchors> | |
| 149 <Anchor point="TOPLEFT" relativeTo="$parentTitle">> | |
| 150 <Offset> | |
| 151 <AbsDimension x="25" y="-220"/> | |
| 152 </Offset> | |
| 153 </Anchor> | |
| 154 </Anchors> | |
| 155 <NormalTexture file="Interface\Buttons\UI-Panel-Button-Up"> | |
| 156 <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> | |
| 157 </NormalTexture> | |
| 158 <PushedTexture file="Interface\Buttons\UI-Panel-Button-Down"> | |
| 159 <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> | |
| 160 </PushedTexture> | |
| 161 <DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled"> | |
| 162 <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> | |
| 163 </DisabledTexture> | |
| 164 <HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD"> | |
| 165 <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> | |
| 166 </HighlightTexture> | |
| 167 <ButtonText name="$parentText"> | |
| 168 <FontHeight> | |
| 169 <AbsValue val="10" /> | |
| 170 </FontHeight> | |
| 171 </ButtonText> | |
| 172 <NormalFont style="GameFontNormal" /> | |
| 173 <HighlightFont style="GameFontHighlight" /> | |
| 174 <DisabledFont style="GameFontDisable" /> | |
| 175 <Scripts> | |
| 176 <OnLoad> | |
| 177 LoadStrings(getglobal(self:GetName())); | |
| 178 </OnLoad> | |
| 179 <OnClick> | |
| 180 SetDefaultSettings(); | |
| 181 </OnClick> | |
| 182 </Scripts> | |
| 183 </Button> | |
| 184 | |
| 185 <Frame name="CyborgSize"> | |
| 186 <Size> | |
| 187 <AbsDimension x="198" y="60" /> | |
| 188 </Size> | |
| 189 <Anchors> | |
| 190 <Anchor point="TOPLEFT" relativeTo="$parentTitle"> | |
| 191 <Offset> | |
| 192 <AbsDimension x="25" y="-120"/> | |
| 193 </Offset> | |
| 194 </Anchor> | |
| 195 </Anchors> | |
| 196 <Frames> | |
| 197 <Slider name="$parentSlider" enableMouse="true" minValue=".5" maxValue="1" defaultValue=".75" valueStep=".01" orientation="HORIZONTAL"> | |
| 198 <Size> | |
| 199 <AbsDimension x="128" y="17" /> | |
| 200 </Size> | |
| 201 <Anchors> | |
| 202 <Anchor point="LEFT" /> | |
| 203 <Anchor point="RIGHT" /> | |
| 204 </Anchors> | |
| 205 <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true"> | |
| 206 <BackgroundInsets> | |
| 207 <AbsInset left="3" right="3" top="6" bottom="6" /> | |
| 208 </BackgroundInsets> | |
| 209 <TileSize> | |
| 210 <AbsValue val="8" /> | |
| 211 </TileSize> | |
| 212 <EdgeSize> | |
| 213 <AbsValue val="8" /> | |
| 214 </EdgeSize> | |
| 215 </Backdrop> | |
| 216 <Layers> | |
| 217 <Layer> | |
| 218 <FontString name="$parentTitle" font="Fonts\FRIZQT__.TTF" inherits="SliderTitle"> | |
| 219 <Anchors> | |
| 220 <Anchor point="BOTTOM" relativePoint="TOP" /> | |
| 221 </Anchors> | |
| 222 </FontString> | |
| 223 <FontString name="$parentLow" font="Fonts\FRIZQT__.TTF" inherits="normalStringTemplate" text="50%"> | |
| 224 <Anchors> | |
| 225 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" /> | |
| 226 </Anchors> | |
| 227 </FontString> | |
| 228 <FontString name="$parentHigh" font="Fonts\FRIZQT__.TTF" inherits="normalStringTemplate" text="100%"> | |
| 229 <Anchors> | |
| 230 <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" /> | |
| 231 </Anchors> | |
| 232 </FontString> | |
| 233 </Layer> | |
| 234 </Layers> | |
| 235 <ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal"> | |
| 236 <Size> | |
| 237 <AbsDimension x="32" y="32" /> | |
| 238 </Size> | |
| 239 </ThumbTexture> | |
| 240 <Scripts> | |
| 241 <OnLoad> | |
| 242 LoadStrings(getglobal(self:GetName().."Title")) | |
| 243 </OnLoad> | |
| 244 <OnValueChanged>SetOpenButtonSize(self:GetValue())</OnValueChanged> | |
| 245 </Scripts> | |
| 246 </Slider> | |
| 247 </Frames> | |
| 248 </Frame> | |
| 249 <Frame name="PluginSize"> | |
| 250 <Size> | |
| 251 <AbsDimension x="198" y="60" /> | |
| 252 </Size> | |
| 253 <Anchors> | |
| 254 <Anchor point="TOPLEFT" relativeTo="$parentTitle"> | |
| 255 <Offset> | |
| 256 <AbsDimension x="25" y="-165"/> | |
| 257 </Offset> | |
| 258 </Anchor> | |
| 259 </Anchors> | |
| 260 <Frames> | |
| 261 <Slider name="$parentSlider" enableMouse="true" minValue=".5" maxValue="1" defaultValue=".75" valueStep=".01" orientation="HORIZONTAL"> | |
| 262 <Size> | |
| 263 <AbsDimension x="128" y="17" /> | |
| 264 </Size> | |
| 265 <Anchors> | |
| 266 <Anchor point="LEFT" /> | |
| 267 <Anchor point="RIGHT" /> | |
| 268 </Anchors> | |
| 269 <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true"> | |
| 270 <BackgroundInsets> | |
| 271 <AbsInset left="3" right="3" top="6" bottom="6" /> | |
| 272 </BackgroundInsets> | |
| 273 <TileSize> | |
| 274 <AbsValue val="8" /> | |
| 275 </TileSize> | |
| 276 <EdgeSize> | |
| 277 <AbsValue val="8" /> | |
| 278 </EdgeSize> | |
| 279 </Backdrop> | |
| 280 <Layers> | |
| 281 <Layer> | |
| 282 <FontString name="$parentTitle" font="Fonts\FRIZQT__.TTF" inherits="SliderTitle"> | |
| 283 <Anchors> | |
| 284 <Anchor point="BOTTOM" relativePoint="TOP" /> | |
| 285 </Anchors> | |
| 286 </FontString> | |
| 287 <FontString name="$parentLow" font="Fonts\FRIZQT__.TTF" inherits="normalStringTemplate" text="50%"> | |
| 288 <Anchors> | |
| 289 <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" /> | |
| 290 </Anchors> | |
| 291 </FontString> | |
| 292 <FontString name="$parentHigh" font="Fonts\FRIZQT__.TTF" inherits="normalStringTemplate" text="100%"> | |
| 293 <Anchors> | |
| 294 <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" /> | |
| 295 </Anchors> | |
| 296 </FontString> | |
| 297 </Layer> | |
| 298 </Layers> | |
| 299 <ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal"> | |
| 300 <Size> | |
| 301 <AbsDimension x="32" y="32" /> | |
| 302 </Size> | |
| 303 </ThumbTexture> | |
| 304 <Scripts> | |
| 305 <OnLoad> | |
| 306 LoadStrings(getglobal(self:GetName().."Title")); | |
| 307 </OnLoad> | |
| 308 <OnValueChanged> | |
| 309 SetMainPageSize(self:GetValue()) | |
| 310 </OnValueChanged> | |
| 311 </Scripts> | |
| 312 </Slider> | |
| 313 </Frames> | |
| 314 </Frame> | |
| 315 </Frames> | |
| 316 | |
| 317 <Scripts> | |
| 318 <OnLoad> | |
| 319 LoadStrings(getglobal(self:GetName().."Title")); | |
| 320 msg("Loaded Option Page"); | |
| 321 self = OptionView.new(self); | |
| 322 </OnLoad> | |
| 323 </Scripts> | |
| 324 </Frame> | |
| 325 </Ui> |
