Mercurial > wow > cyborg-mmo7
diff OptionPage.xml @ 43:f02cf040133c
Cleaned up whitespace (and other minor details) in all the XML files.
author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
---|---|
date | Mon, 29 Apr 2013 17:44:40 +0000 |
parents | 92b62e33887b |
children | c9706291c141 |
line wrap: on
line diff
--- a/OptionPage.xml Mon Apr 29 17:44:34 2013 +0000 +++ b/OptionPage.xml Mon Apr 29 17:44:40 2013 +0000 @@ -1,6 +1,6 @@ <Ui xmlns="http://www.blizzard.com/wow/ui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!-- - Warcraft Plugin for Cyborg MMO7 + Warcraft Plugin for Cyborg MMO7 Filename: OptionPage.xml Description: The configuration page layout for the addons interface page Copyright (C) 2012 Mad Catz Inc. @@ -18,79 +18,68 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. --> + <FontString name="CyborgMMO_TemplateNormalString" font="Fonts\FRIZQT__.TTF" text="NoText" virtual="true"> - <FontHeight> - <AbsValue val="10" /> - </FontHeight> - <Color r="1" g="1" b="1" /> + <FontHeight><AbsValue val="10"/></FontHeight> + <Color r="1" g="1" b="1"/> <Shadow> - <Color r="0" g="0" b="0" /> - <Offset> - <AbsDimension x="1" y="-1" /> - </Offset> + <Color r="0" g="0" b="0"/> + <Offset><AbsDimension x="1" y="-1"/></Offset> </Shadow> </FontString> -<Button name="CyborgMMO_TemplateButton" virtual="true"> - <NormalTexture file="Interface\Buttons\UI-Panel-Button-Up"> - <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> - </NormalTexture> - <PushedTexture file="Interface\Buttons\UI-Panel-Button-Down"> - <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> - </PushedTexture> - <DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled"> - <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> - </DisabledTexture> - <HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD"> - <TexCoords left="0" right="0.625" top="0" bottom="0.6875" /> - </HighlightTexture> + <Button name="CyborgMMO_TemplateButton" virtual="true"> + <NormalTexture file="Interface\Buttons\UI-Panel-Button-Up"> + <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/> + </NormalTexture> + <PushedTexture file="Interface\Buttons\UI-Panel-Button-Down"> + <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/> + </PushedTexture> + <DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled"> + <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/> + </DisabledTexture> + <HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD"> + <TexCoords left="0" right="0.625" top="0" bottom="0.6875"/> + </HighlightTexture> - <NormalFont style="GameFontNormal" /> - <HighlightFont style="GameFontHighlight" /> - <DisabledFont style="GameFontDisable" /> - <Scripts> - <OnLoad> - self:RegisterEvent("VARIABLES_LOADED") - </OnLoad> - <OnEvent> - if event == "VARIABLES_LOADED" then - CyborgMMO_SetBindingButtonText(self:GetName()) - end - </OnEvent> - <OnClick> - CyborgMMO_BindButton(self:GetName()) - </OnClick> - </Scripts> -</Button> + <NormalFont style="GameFontNormal"/> + <HighlightFont style="GameFontHighlight"/> + <DisabledFont style="GameFontDisable"/> + <Scripts> + <OnLoad> + self:RegisterEvent("VARIABLES_LOADED") + </OnLoad> + <OnEvent> + if event == "VARIABLES_LOADED" then + CyborgMMO_SetBindingButtonText(self:GetName()) + end + </OnEvent> + <OnClick> + CyborgMMO_BindButton(self:GetName()) + </OnClick> + </Scripts> + </Button> <FontString name="CyborgMMO_TemplateSliderTitle" font="Fonts\FRIZQT__.TTF" text="NoText" virtual="true"> - <FontHeight> - <AbsValue val="14" /> - </FontHeight> - <Color r="1" g="0.8196079" b="0" /> + <FontHeight><AbsValue val="14"/></FontHeight> + <Color r="1" g="0.8196079" b="0"/> <Shadow> - <Color r="0" g="0" b="0" /> - <Offset> - <AbsDimension x="1" y="-1" /> - </Offset> + <Color r="0" g="0" b="0"/> + <Offset><AbsDimension x="1" y="-1"/></Offset> </Shadow> </FontString> - + <Frame name="CyborgMMO_TemplateButtonRow" virtual="true"> - <Size> - <AbsDimension x="160" y="28" /> - </Size> - + <Size><AbsDimension x="160" y="28"/></Size> + <Layers> <Layer level="ARTWORK"> <FontString name="$parentName" inherits="GameFontNormal"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parent"> - <Offset> - <AbsDimension x="0" y="-10" /> - </Offset> + <Offset><AbsDimension x="0" y="-10"/></Offset> </Anchor> </Anchors> </FontString> @@ -98,38 +87,26 @@ </Layers> <Frames> <Button name="$parentMode1" inherits="CyborgMMO_TemplateButton"> - <Size> - <AbsDimension x="145" y="28" /> - </Size> + <Size><AbsDimension x="145" y="28"/></Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parent"> - <Offset> - <AbsDimension x="135" y="0"/> - </Offset> + <Offset><AbsDimension x="135" y="0"/></Offset> </Anchor> </Anchors> </Button> <Button name="$parentMode2" inherits="CyborgMMO_TemplateButton"> - <Size> - <AbsDimension x="145" y="28" /> - </Size> + <Size><AbsDimension x="145" y="28"/></Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parent"> - <Offset> - <AbsDimension x="280" y="0"/> - </Offset> + <Offset><AbsDimension x="280" y="0"/></Offset> </Anchor> </Anchors> </Button> <Button name="$parentMode3" inherits="CyborgMMO_TemplateButton"> - <Size> - <AbsDimension x="145" y="28" /> - </Size> + <Size><AbsDimension x="145" y="28"/></Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parent"> - <Offset> - <AbsDimension x="425" y="0"/> - </Offset> + <Offset><AbsDimension x="425" y="0"/></Offset> </Anchor> </Anchors> </Button> @@ -141,44 +118,28 @@ </Scripts> </Frame> -<!--Custom keybinds --> - <Frame name="CyborgMMO_MouseRebind" virtual="true"> + <!-- Custom keybinds --> + <Frame name="CyborgMMO_MouseRebind" virtual="true"> <Layers> <Layer level="ARTWORK"> <FontString name="$parentTitle" inherits="GameFontNormalLarge" text="CyborgMMO_MouseRebindTitle"> <Anchors> - <Anchor point="TOPLEFT"> - <Offset> - <AbsDimension x="-15" y="0" /> - </Offset> - </Anchor> + <Anchor point="TOPLEFT"><Offset><AbsDimension x="-15" y="0"/></Offset></Anchor> </Anchors> </FontString> <FontString name="$parentMode1" inherits="GameFontNormal" text="Mode Num"> <Anchors> - <Anchor point="TOPLEFT"> - <Offset> - <AbsDimension x="147" y="-28" /> - </Offset> - </Anchor> + <Anchor point="TOPLEFT"><Offset><AbsDimension x="147" y="-28"/></Offset></Anchor> </Anchors> </FontString> <FontString name="$parentMode2" inherits="GameFontNormal" text="Mode Num"> <Anchors> - <Anchor point="TOPLEFT"> - <Offset> - <AbsDimension x="282" y="-28" /> - </Offset> - </Anchor> + <Anchor point="TOPLEFT"><Offset><AbsDimension x="282" y="-28"/></Offset></Anchor> </Anchors> </FontString> <FontString name="$parentMode3" inherits="GameFontNormal" text="Mode Num"> <Anchors> - <Anchor point="TOPLEFT"> - <Offset> - <AbsDimension x="427" y="-28" /> - </Offset> - </Anchor> + <Anchor point="TOPLEFT"><Offset><AbsDimension x="427" y="-28"/></Offset></Anchor> </Anchors> </FontString> </Layer> @@ -187,117 +148,91 @@ <Frame name="$parentMouseRow1" inherits="CyborgMMO_TemplateButtonRow"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parent"> - <Offset> - <AbsDimension x="0" y="-40" /> - </Offset> + <Offset><AbsDimension x="0" y="-40"/></Offset> </Anchor> </Anchors> </Frame> <Frame name="$parentMouseRow2" inherits="CyborgMMO_TemplateButtonRow"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentMouseRow1"> - <Offset> - <AbsDimension x="0" y="-30" /> - </Offset> + <Offset><AbsDimension x="0" y="-30"/></Offset> </Anchor> </Anchors> </Frame> <Frame name="$parentMouseRow3" inherits="CyborgMMO_TemplateButtonRow"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentMouseRow2"> - <Offset> - <AbsDimension x="0" y="-30" /> - </Offset> + <Offset><AbsDimension x="0" y="-30"/></Offset> </Anchor> </Anchors> </Frame> <Frame name="$parentMouseRow4" inherits="CyborgMMO_TemplateButtonRow"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentMouseRow3"> - <Offset> - <AbsDimension x="0" y="-30" /> - </Offset> + <Offset><AbsDimension x="0" y="-30"/></Offset> </Anchor> </Anchors> </Frame> <Frame name="$parentMouseRow5" inherits="CyborgMMO_TemplateButtonRow"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentMouseRow4"> - <Offset> - <AbsDimension x="0" y="-30" /> - </Offset> + <Offset><AbsDimension x="0" y="-30"/></Offset> </Anchor> </Anchors> </Frame> <Frame name="$parentMouseRow6" inherits="CyborgMMO_TemplateButtonRow"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentMouseRow5"> - <Offset> - <AbsDimension x="0" y="-30" /> - </Offset> + <Offset><AbsDimension x="0" y="-30"/></Offset> </Anchor> </Anchors> </Frame> <Frame name="$parentMouseRow7" inherits="CyborgMMO_TemplateButtonRow"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentMouseRow6"> - <Offset> - <AbsDimension x="0" y="-30" /> - </Offset> + <Offset><AbsDimension x="0" y="-30"/></Offset> </Anchor> </Anchors> </Frame> <Frame name="$parentMouseRow8" inherits="CyborgMMO_TemplateButtonRow"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentMouseRow7"> - <Offset> - <AbsDimension x="0" y="-30" /> - </Offset> + <Offset><AbsDimension x="0" y="-30"/></Offset> </Anchor> </Anchors> </Frame> <Frame name="$parentMouseRow9" inherits="CyborgMMO_TemplateButtonRow"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentMouseRow8"> - <Offset> - <AbsDimension x="0" y="-30" /> - </Offset> + <Offset><AbsDimension x="0" y="-30"/></Offset> </Anchor> </Anchors> </Frame> <Frame name="$parentMouseRowA" inherits="CyborgMMO_TemplateButtonRow"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentMouseRow9"> - <Offset> - <AbsDimension x="0" y="-30" /> - </Offset> + <Offset><AbsDimension x="0" y="-30"/></Offset> </Anchor> </Anchors> </Frame> <Frame name="$parentMouseRowB" inherits="CyborgMMO_TemplateButtonRow"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentMouseRowA"> - <Offset> - <AbsDimension x="0" y="-30" /> - </Offset> + <Offset><AbsDimension x="0" y="-30"/></Offset> </Anchor> </Anchors> </Frame> <Frame name="$parentMouseRowC" inherits="CyborgMMO_TemplateButtonRow"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentMouseRowB"> - <Offset> - <AbsDimension x="0" y="-30" /> - </Offset> + <Offset><AbsDimension x="0" y="-30"/></Offset> </Anchor> </Anchors> </Frame> <Frame name="$parentMouseRowD" inherits="CyborgMMO_TemplateButtonRow"> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentMouseRowC"> - <Offset> - <AbsDimension x="0" y="-30" /> - </Offset> + <Offset><AbsDimension x="0" y="-30"/></Offset> </Anchor> </Anchors> </Frame> @@ -310,9 +245,7 @@ <FontString name="$parentTitle" inherits="GameFontNormalLarge"> <Anchors> <Anchor point="TOPLEFT"> - <Offset> - <AbsDimension x="15" y="-15" /> - </Offset> + <Offset><AbsDimension x="15" y="-15"/></Offset> </Anchor> </Anchors> </FontString> @@ -321,14 +254,10 @@ <Frames> <CheckButton name="$parentMiniMapButton" inherits="UICheckButtonTemplate" checked="true"> - <Size> - <AbsDimension x="32" y="32"/> - </Size> + <Size><AbsDimension x="32" y="32"/></Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentTitle"> - <Offset> - <AbsDimension x="15" y="-30"/> - </Offset> + <Offset><AbsDimension x="15" y="-30"/></Offset> </Anchor> </Anchors> <Layers> @@ -336,9 +265,7 @@ <FontString name="$parentTitle" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateSliderTitle"> <Anchors> <Anchor point="LEFT" relativePoint="$parentMiniMapButton"> - <Offset> - <AbsDimension x="45" y="0" /> - </Offset> + <Offset><AbsDimension x="45" y="0"/></Offset> </Anchor> </Anchors> </FontString> @@ -349,7 +276,7 @@ CyborgMMO_LoadStrings(getglobal(self:GetName().."Title")) </OnLoad> <OnClick> - if self:GetChecked() == 1 then + if self:GetChecked() then CyborgMMO_SetMiniMapButton(true) else CyborgMMO_SetMiniMapButton(false) @@ -360,14 +287,10 @@ <CheckButton name="$parentCyborgButton" inherits="UICheckButtonTemplate" checked="true"> - <Size> - <AbsDimension x="32" y="32"/> - </Size> + <Size><AbsDimension x="32" y="32"/></Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentMiniMapButton"> - <Offset> - <AbsDimension x="0" y="-30"/> - </Offset> + <Offset><AbsDimension x="0" y="-30"/></Offset> </Anchor> </Anchors> <Layers> @@ -375,9 +298,7 @@ <FontString name="$parentTitle" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateSliderTitle"> <Anchors> <Anchor point="LEFT" relativePoint="$parentCyborgButton"> - <Offset> - <AbsDimension x="45" y="0" /> - </Offset> + <Offset><AbsDimension x="45" y="0"/></Offset> </Anchor> </Anchors> </FontString> @@ -388,7 +309,7 @@ CyborgMMO_LoadStrings(getglobal(self:GetName().."Title")) </OnLoad> <OnClick> - if self:GetChecked() == 1 then + if self:GetChecked() then CyborgMMO_SetCyborgHeadButton(true) else CyborgMMO_SetCyborgHeadButton(false) @@ -398,15 +319,11 @@ </CheckButton> <Button name="$parentSetDefaults" inherits="CyborgMMO_TemplateButton"> - <Size> - <AbsDimension x="150" y="28" /> - </Size> + <Size><AbsDimension x="150" y="28"/></Size> <Anchors> - <Anchor point="TOPLEFT" relativeTo="CyborgButton"> - <Offset> - <AbsDimension x="431" y="-20"/> - </Offset> - </Anchor> + <Anchor point="TOPLEFT" relativeTo="CyborgButton"> + <Offset><AbsDimension x="431" y="-20"/></Offset> + </Anchor> </Anchors> <Scripts> <OnLoad> @@ -417,16 +334,12 @@ </OnClick> </Scripts> </Button> - + <Frame name="$parentRebind" inherits="CyborgMMO_MouseRebind"> - <Size> - <AbsDimension x="45" y="60" /> - </Size> + <Size><AbsDimension x="45" y="60"/></Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentTitle"> - <Offset> - <AbsDimension x="25" y="-120"/> - </Offset> + <Offset><AbsDimension x="25" y="-120"/></Offset> </Anchor> </Anchors> <Scripts> @@ -438,125 +351,105 @@ </OnLoad> </Scripts> </Frame> - + <Frame name="$parentCyborgSize"> <Size> - <AbsDimension x="180" y="32" /> + <AbsDimension x="180" y="32"/> </Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentTitle"> - <Offset> - <AbsDimension x="195" y="-40"/> - </Offset> + <Offset><AbsDimension x="195" y="-40"/></Offset> </Anchor> </Anchors> <Frames> <Slider name="$parentSlider" enableMouse="true" minValue=".5" maxValue="1" defaultValue=".75" valueStep=".01" orientation="HORIZONTAL"> - <Size> - <AbsDimension x="128" y="17" /> - </Size> + <Size><AbsDimension x="128" y="17"/></Size> <Anchors> - <Anchor point="LEFT" /> - <Anchor point="RIGHT" /> + <Anchor point="LEFT"/> + <Anchor point="RIGHT"/> </Anchors> <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true"> <BackgroundInsets> - <AbsInset left="3" right="3" top="6" bottom="6" /> + <AbsInset left="3" right="3" top="6" bottom="6"/> </BackgroundInsets> - <TileSize> - <AbsValue val="8" /> - </TileSize> - <EdgeSize> - <AbsValue val="8" /> - </EdgeSize> + <TileSize><AbsValue val="8"/></TileSize> + <EdgeSize><AbsValue val="8"/></EdgeSize> </Backdrop> <Layers> <Layer> <FontString name="$parentTitle" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateSliderTitle"> <Anchors> - <Anchor point="BOTTOM" relativePoint="TOP" /> + <Anchor point="BOTTOM" relativePoint="TOP"/> </Anchors> </FontString> <FontString name="$parentLow" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateNormalString" text="50%"> <Anchors> - <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" /> + <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT"/> </Anchors> </FontString> <FontString name="$parentHigh" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateNormalString" text="100%"> <Anchors> - <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" /> + <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT"/> </Anchors> </FontString> </Layer> </Layers> <ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal"> - <Size> - <AbsDimension x="32" y="32" /> - </Size> + <Size><AbsDimension x="32" y="32"/></Size> </ThumbTexture> <Scripts> <OnLoad> CyborgMMO_LoadStrings(getglobal(self:GetName().."Title")) </OnLoad> - <OnValueChanged>CyborgMMO_SetOpenButtonSize(self:GetValue())</OnValueChanged> + <OnValueChanged> + CyborgMMO_SetOpenButtonSize(self:GetValue()) + </OnValueChanged> </Scripts> </Slider> </Frames> </Frame> <Frame name="$parentPluginSize"> - <Size> - <AbsDimension x="180" y="32" /> - </Size> + <Size><AbsDimension x="180" y="32"/></Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentCyborgSize"> - <Offset> - <AbsDimension x="200" y="0"/> - </Offset> + <Offset><AbsDimension x="200" y="0"/></Offset> </Anchor> </Anchors> <Frames> <Slider name="$parentSlider" enableMouse="true" minValue=".5" maxValue="1" defaultValue=".75" valueStep=".01" orientation="HORIZONTAL"> - <Size> - <AbsDimension x="128" y="17" /> - </Size> + <Size><AbsDimension x="128" y="17"/></Size> <Anchors> - <Anchor point="LEFT" /> - <Anchor point="RIGHT" /> + <Anchor point="LEFT"/> + <Anchor point="RIGHT"/> </Anchors> <Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true"> <BackgroundInsets> - <AbsInset left="3" right="3" top="6" bottom="6" /> + <AbsInset left="3" right="3" top="6" bottom="6"/> </BackgroundInsets> - <TileSize> - <AbsValue val="8" /> - </TileSize> - <EdgeSize> - <AbsValue val="8" /> - </EdgeSize> + <TileSize><AbsValue val="8"/></TileSize> + <EdgeSize><AbsValue val="8"/></EdgeSize> </Backdrop> <Layers> <Layer> <FontString name="$parentTitle" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateSliderTitle"> <Anchors> - <Anchor point="BOTTOM" relativePoint="TOP" /> + <Anchor point="BOTTOM" relativePoint="TOP"/> </Anchors> </FontString> <FontString name="$parentLow" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateNormalString" text="50%"> <Anchors> - <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" /> + <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT"/> </Anchors> </FontString> <FontString name="$parentHigh" font="Fonts\FRIZQT__.TTF" inherits="CyborgMMO_TemplateNormalString" text="100%"> <Anchors> - <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" /> + <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT"/> </Anchors> </FontString> </Layer> </Layers> <ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal"> - <Size> - <AbsDimension x="32" y="32" /> - </Size> + <Size><AbsDimension x="32" y="32"/></Size> </ThumbTexture> <Scripts> <OnLoad> @@ -566,7 +459,7 @@ CyborgMMO_SetMainPageSize(self:GetValue()) </OnValueChanged> </Scripts> - </Slider> + </Slider> </Frames> </Frame> </Frames> @@ -579,123 +472,93 @@ </OnLoad> </Scripts> </Frame> - + <Button name="CyborgMMO_BindingFrame" toplevel="true" parent="UIParent" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" enableKeyboard="true"> - <Size> - <AbsDimension x="400" y="200"/> - </Size> - <Anchors> - <Anchor point="CENTER"> - <Offset> - <AbsDimension x="0" y="0"/> - </Offset> - </Anchor> - </Anchors> - <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> - <BackgroundInsets> - <AbsInset left="11" right="12" top="12" bottom="11"/> - </BackgroundInsets> - <TileSize> - <AbsValue val="32"/> - </TileSize> - <EdgeSize> - <AbsValue val="32"/> - </EdgeSize> - </Backdrop> - <Layers> - <Layer level="ARTWORK"> - <Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header"> - <Size> - <AbsDimension x="500" y="64"/> - </Size> - <Anchors> - <Anchor point="TOP"> - <Offset> - <AbsDimension x="0" y="12"/> - </Offset> - </Anchor> - </Anchors> - </Texture> - <FontString name="$parentHeaderText" inherits="GameFontNormal" text="FillerText"> - <Size> - <AbsDimension x="500" y="13"/> - </Size> - <Anchors> - <Anchor point="TOP" relativeTo="$parentHeader"> - <Offset> - <AbsDimension x="0" y="-13"/> - </Offset> - </Anchor> - </Anchors> - </FontString> - <FontString inherits="GameFontNormalLarge" name="$parentButtonName" text="Button Name"> - <Anchors> - <Anchor point="CENTER" relativeTo="$parent"> - <Offset> - <AbsDimension x="0" y="32"/> - </Offset> - </Anchor> - </Anchors> - </FontString> - <FontString name="$parentKey" inherits="GameFontNormalLarge" text="KeyText"> - <Anchors> - <Anchor point="CENTER" relativeTo="$parent"> - <Offset> - <AbsDimension x="0" y="-16"/> - </Offset> - </Anchor> - </Anchors> - </FontString> - </Layer> - </Layers> - <Frames> - <Button name="$parentCloseButton" inherits="UIPanelCloseButton"> - <Anchors> - <Anchor point="TOPRIGHT"> - <Offset> - <AbsDimension x="-3" y="-3"/> - </Offset> - </Anchor> - </Anchors> - </Button> - <Button name="$parentExitButton" inherits="UIPanelButtonTemplate" text="Close"> - <Size> - <AbsDimension x="80" y="26"/> - </Size> - <Anchors> - <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT"> - <Offset> - <AbsDimension x="-12" y="12"/> - </Offset> - </Anchor> - </Anchors> - <Scripts> - <OnClick> - HideUIPanel(self:GetParent()) - </OnClick> - </Scripts> - </Button> - </Frames> + <Size><AbsDimension x="400" y="200"/></Size> + <Anchors> + <Anchor point="CENTER"><Offset><AbsDimension x="0" y="0"/></Offset></Anchor> + </Anchors> + <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> + <BackgroundInsets> + <AbsInset left="11" right="12" top="12" bottom="11"/> + </BackgroundInsets> + <TileSize><AbsValue val="32"/></TileSize> + <EdgeSize><AbsValue val="32"/></EdgeSize> + </Backdrop> + <Layers> + <Layer level="ARTWORK"> + <Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header"> + <Size><AbsDimension x="500" y="64"/></Size> + <Anchors> + <Anchor point="TOP"><Offset><AbsDimension x="0" y="12"/></Offset></Anchor> + </Anchors> + </Texture> + <FontString name="$parentHeaderText" inherits="GameFontNormal" text="FillerText"> + <Size><AbsDimension x="500" y="13"/></Size> + <Anchors> + <Anchor point="TOP" relativeTo="$parentHeader"> + <Offset><AbsDimension x="0" y="-13"/></Offset> + </Anchor> + </Anchors> + </FontString> + <FontString inherits="GameFontNormalLarge" name="$parentButtonName" text="Button Name"> + <Anchors> + <Anchor point="CENTER" relativeTo="$parent"> + <Offset><AbsDimension x="0" y="32"/></Offset> + </Anchor> + </Anchors> + </FontString> + <FontString name="$parentKey" inherits="GameFontNormalLarge" text="KeyText"> + <Anchors> + <Anchor point="CENTER" relativeTo="$parent"> + <Offset><AbsDimension x="0" y="-16"/></Offset> + </Anchor> + </Anchors> + </FontString> + </Layer> + </Layers> + <Frames> + <Button name="$parentCloseButton" inherits="UIPanelCloseButton"> + <Anchors> + <Anchor point="TOPRIGHT"> + <Offset><AbsDimension x="-3" y="-3"/></Offset> + </Anchor> + </Anchors> + </Button> + <Button name="$parentExitButton" inherits="UIPanelButtonTemplate" text="Close"> + <Size><AbsDimension x="80" y="26"/></Size> + <Anchors> + <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT"> + <Offset><AbsDimension x="-12" y="12"/></Offset> + </Anchor> + </Anchors> + <Scripts> + <OnClick> + HideUIPanel(self:GetParent()) + </OnClick> + </Scripts> + </Button> + </Frames> - <Scripts> - <OnLoad> - CyborgMMO_LoadStrings(getglobal(self:GetName().."HeaderText")) - CyborgMMO_LoadStrings(getglobal(self:GetName().."ExitButton")) - self:RegisterForClicks("AnyUp") - </OnLoad> - <OnClick> - CyborgMMO_BindingFrameOnKeyDown(self, button) - </OnClick> - <OnKeyDown> - CyborgMMO_BindingFrameOnKeyDown(self, key) - </OnKeyDown> - <OnMouseWheel> - if delta > 0 then - CyborgMMO_BindingFrameOnKeyDown(self, "MOUSEWHEELUP") - else - CyborgMMO_BindingFrameOnKeyDown(self, "MOUSEWHEELDOWN") - end - </OnMouseWheel> - </Scripts> - </Button> + <Scripts> + <OnLoad> + CyborgMMO_LoadStrings(getglobal(self:GetName().."HeaderText")) + CyborgMMO_LoadStrings(getglobal(self:GetName().."ExitButton")) + self:RegisterForClicks("AnyUp") + </OnLoad> + <OnClick> + CyborgMMO_BindingFrameOnKeyDown(self, button) + </OnClick> + <OnKeyDown> + CyborgMMO_BindingFrameOnKeyDown(self, key) + </OnKeyDown> + <OnMouseWheel> + if delta > 0 then + CyborgMMO_BindingFrameOnKeyDown(self, "MOUSEWHEELUP") + else + CyborgMMO_BindingFrameOnKeyDown(self, "MOUSEWHEELDOWN") + end + </OnMouseWheel> + </Scripts> + </Button> </Ui>