Mercurial > wow > cyborg-mmo7
diff OptionPage.xml @ 1:a4e2eaf9cad9
Initial Fixes for ticket 1: Added a menu to the interface options page to allow the syncing of the addon to the mouse profile. This should resolve i8n issues
author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
---|---|
date | Wed, 23 May 2012 08:26:07 +0000 |
parents | bf9220814fb5 |
children | 08c83fa555a5 |
line wrap: on
line diff
--- a/OptionPage.xml Tue Jan 24 17:14:21 2012 +0000 +++ b/OptionPage.xml Wed May 23 08:26:07 2012 +0000 @@ -33,6 +33,39 @@ </Shadow> </FontString> +<Button name="standard" 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 + GetBindingButtonText(self:GetName()); + end + + </OnEvent> + <OnClick> + BindButton(self:GetName()) + </OnClick> + </Scripts> + </Button> + <FontString name="SliderTitle" font="Fonts\FRIZQT__.TTF" text="NoText" virtual="true"> <FontHeight> <AbsValue val="14" /> @@ -45,8 +78,208 @@ </Offset> </Shadow> </FontString> + + <Frame name="ButtonRow" virtual="true"> + <Size> + <AbsDimension x="160" y="28" /> + </Size> + + <Layers> + <Layer level="ARTWORK"> + <FontString name="$parentName" inherits="GameFontNormalLarge"> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="$parent"> + <Offset> + <AbsDimension x="0" y="0" /> + </Offset> + </Anchor> + </Anchors> + </FontString> + </Layer> + </Layers> + <Frames> + <Button name="$parentMode1" inherits="standard"> + <Size> + <AbsDimension x="140" y="28" /> + </Size> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="$parent"> + <Offset> + <AbsDimension x="150" y="5"/> + </Offset> + </Anchor> + </Anchors> + </Button> + <Button name="$parentMode2" inherits="standard"> + <Size> + <AbsDimension x="140" y="28" /> + </Size> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="$parent"> + <Offset> + <AbsDimension x="290" y="5"/> + </Offset> + </Anchor> + </Anchors> + </Button> + <Button name="$parentMode3" inherits="standard"> + <Size> + <AbsDimension x="140" y="28" /> + </Size> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="$parent"> + <Offset> + <AbsDimension x="430" y="5"/> + </Offset> + </Anchor> + </Anchors> + </Button> + </Frames> + <Scripts> + <OnLoad> + LoadStrings(getglobal(self:GetName().."Name")); + </OnLoad> + </Scripts> + </Frame> - +<!--Custom keybinds --> + <Frame name="MouseRebind" virtual="true"> + <Layers> + <Layer level="ARTWORK"> + <FontString name="MouseRebindTitle" inherits="GameFontNormalLarge" text="MMO Keybinds:-"> + <Anchors> + <Anchor point="TOPLEFT"> + <Offset> + <AbsDimension x="-15" y="-15" /> + </Offset> + </Anchor> + </Anchors> + </FontString> + + </Layer> + </Layers> + <Frames> + <Frame name="MouseRow1" inherits="ButtonRow"> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="$parent"> + <Offset> + <AbsDimension x="0" y="-40" /> + </Offset> + </Anchor> + </Anchors> + </Frame> + <Frame name="MouseRow2" inherits="ButtonRow"> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="MouseRow1"> + <Offset> + <AbsDimension x="0" y="-30" /> + </Offset> + </Anchor> + </Anchors> + </Frame> + <Frame name="MouseRow3" inherits="ButtonRow"> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="MouseRow2"> + <Offset> + <AbsDimension x="0" y="-30" /> + </Offset> + </Anchor> + </Anchors> + </Frame> + <Frame name="MouseRow4" inherits="ButtonRow"> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="MouseRow3"> + <Offset> + <AbsDimension x="0" y="-30" /> + </Offset> + </Anchor> + </Anchors> + </Frame> + <Frame name="MouseRow5" inherits="ButtonRow"> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="MouseRow4"> + <Offset> + <AbsDimension x="0" y="-30" /> + </Offset> + </Anchor> + </Anchors> + </Frame> + <Frame name="MouseRow6" inherits="ButtonRow"> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="MouseRow5"> + <Offset> + <AbsDimension x="0" y="-30" /> + </Offset> + </Anchor> + </Anchors> + </Frame> + <Frame name="MouseRow7" inherits="ButtonRow"> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="MouseRow6"> + <Offset> + <AbsDimension x="0" y="-30" /> + </Offset> + </Anchor> + </Anchors> + </Frame> + <Frame name="MouseRow8" inherits="ButtonRow"> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="MouseRow7"> + <Offset> + <AbsDimension x="0" y="-30" /> + </Offset> + </Anchor> + </Anchors> + </Frame> + <Frame name="MouseRow9" inherits="ButtonRow"> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="MouseRow8"> + <Offset> + <AbsDimension x="0" y="-30" /> + </Offset> + </Anchor> + </Anchors> + </Frame> + <Frame name="MouseRowA" inherits="ButtonRow"> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="MouseRow9"> + <Offset> + <AbsDimension x="0" y="-30" /> + </Offset> + </Anchor> + </Anchors> + </Frame> + <Frame name="MouseRowB" inherits="ButtonRow"> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="MouseRowA"> + <Offset> + <AbsDimension x="0" y="-30" /> + </Offset> + </Anchor> + </Anchors> + </Frame> + <Frame name="MouseRowC" inherits="ButtonRow"> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="MouseRowB"> + <Offset> + <AbsDimension x="0" y="-30" /> + </Offset> + </Anchor> + </Anchors> + </Frame> + <Frame name="MouseRowD" inherits="ButtonRow"> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="MouseRowC"> + <Offset> + <AbsDimension x="0" y="-30" /> + </Offset> + </Anchor> + </Anchors> + </Frame> + </Frames> + <OnLoad> + </OnLoad> + </Frame> <Frame name="OptionPage"> <Layers> @@ -71,7 +304,7 @@ <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentTitle"> <Offset> - <AbsDimension x="25" y="-60"/> + <AbsDimension x="15" y="-30"/> </Offset> </Anchor> </Anchors> @@ -108,9 +341,9 @@ <AbsDimension x="32" y="32"/> </Size> <Anchors> - <Anchor point="TOPLEFT" relativeTo="$parentTitle"> + <Anchor point="TOPLEFT" relativeTo="MiniMapButton"> <Offset> - <AbsDimension x="25" y="-85"/> + <AbsDimension x="0" y="-30"/> </Offset> </Anchor> </Anchors> @@ -141,37 +374,17 @@ </Scripts> </CheckButton> - <Button name="$parentSetDefaults"> + <Button name="$parentSetDefaults" inherits="standard"> <Size> <AbsDimension x="156" y="28" /> </Size> <Anchors> - <Anchor point="TOPLEFT" relativeTo="$parentTitle">> + <Anchor point="TOPLEFT" relativeTo="CyborgButton"> <Offset> - <AbsDimension x="25" y="-220"/> + <AbsDimension x="0" y="-40"/> </Offset> </Anchor> </Anchors> - <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> - <ButtonText name="$parentText"> - <FontHeight> - <AbsValue val="10" /> - </FontHeight> - </ButtonText> - <NormalFont style="GameFontNormal" /> - <HighlightFont style="GameFontHighlight" /> - <DisabledFont style="GameFontDisable" /> <Scripts> <OnLoad> LoadStrings(getglobal(self:GetName())); @@ -181,10 +394,10 @@ </OnClick> </Scripts> </Button> - - <Frame name="CyborgSize"> + + <Frame name="Rebind" inherits="MouseRebind"> <Size> - <AbsDimension x="198" y="60" /> + <AbsDimension x="45" y="60" /> </Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="$parentTitle"> @@ -193,6 +406,19 @@ </Offset> </Anchor> </Anchors> + </Frame> + + <Frame name="CyborgSize"> + <Size> + <AbsDimension x="198" y="10" /> + </Size> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="$parentTitle"> + <Offset> + <AbsDimension x="255" y="-20"/> + </Offset> + </Anchor> + </Anchors> <Frames> <Slider name="$parentSlider" enableMouse="true" minValue=".5" maxValue="1" defaultValue=".75" valueStep=".01" orientation="HORIZONTAL"> <Size> @@ -251,9 +477,9 @@ <AbsDimension x="198" y="60" /> </Size> <Anchors> - <Anchor point="TOPLEFT" relativeTo="$parentTitle"> + <Anchor point="TOPLEFT" relativeTo="CyborgSize"> <Offset> - <AbsDimension x="25" y="-165"/> + <AbsDimension x="0" y="-40"/> </Offset> </Anchor> </Anchors> @@ -322,4 +548,147 @@ </OnLoad> </Scripts> </Frame> + + <Button name="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="200" 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="200" y="13"/> + </Size> + <Anchors> + <Anchor point="TOP" relativeTo="$parentHeader"> + <Offset> + <AbsDimension x="0" y="-13"/> + </Offset> + </Anchor> + </Anchors> + </FontString> + <FontString inherits="GameFontNormal" text="BINDPAD_TEXT_PRESSKEY"> + <Anchors> + <Anchor point="CENTER" relativeTo="$parent"> + <Offset> + <AbsDimension x="0" y="32"/> + </Offset> + </Anchor> + </Anchors> + </FontString> + <FontString name="$parentAction" inherits="GameFontNormalLarge" text="no action"> + <Anchors> + <Anchor point="CENTER" relativeTo="$parent"> + <Offset> + <AbsDimension x="0" y="8"/> + </Offset> + </Anchor> + </Anchors> + </FontString> + <FontString name="$parentKey" inherits="GameFontNormal" text="unbinded"> + <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="BINDPAD_TEXT_EXIT"> + <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> + <Button name="$parentUnbindButton" inherits="UIPanelButtonTemplate" text="BINDPAD_TEXT_UNBIND"> + <Size> + <AbsDimension x="80" y="26"/> + </Size> + <Anchors> + <Anchor point="BOTTOMRIGHT" relativeTo="$parentExitButton" relativePoint="BOTTOMLEFT"> + <Offset> + <AbsDimension x="-2" y="0"/> + </Offset> + </Anchor> + </Anchors> + <Scripts> + <OnClick> + BindPadBindFrame_Unbind(self); + </OnClick> + </Scripts> + </Button> + </Frames> + + <Scripts> + <OnLoad> + self:RegisterForClicks("AnyUp"); + </OnLoad> + <OnClick> + BindingFrame_OnKeyDown(self, button); + </OnClick> + <OnKeyDown> + BindingFrame_OnKeyDown(self, key); + </OnKeyDown> + <OnMouseWheel> + if (delta > 0) then + BindingFrame_OnKeyDown(self, "MOUSEWHEELUP"); + else + BindingFrame_OnKeyDown(self, "MOUSEWHEELDOWN"); + end + </OnMouseWheel> + </Scripts> + </Button> </Ui>