diff KeybindDialog.xml @ 10:f3a7bfebc283

Version 0.33
author Flick <flickerstreak@gmail.com>
date Tue, 20 Mar 2007 21:37:38 +0000
parents
children e27e4204bf5e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/KeybindDialog.xml	Tue Mar 20 21:37:38 2007 +0000
@@ -0,0 +1,117 @@
+<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/..\FrameXML\UI.xsd">
+
+
+  <Frame name="ReActionKeybindDialog" frameStrata="DIALOG" movable="true" hidden="true" enableMouse="true">
+    <Size>
+      <AbsDimension x="270" y="95"/>
+    </Size>
+    <Anchors>
+      <Anchor point="CENTER"/>
+    </Anchors>
+    <TitleRegion>
+      <Size>
+        <AbsDimension x="200" y="30"/>
+      </Size>
+      <Anchors>
+        <Anchor point="TOP">
+          <Offset>
+            <AbsDimension x="0" y="-10"/>
+          </Offset>
+        </Anchor>
+      </Anchors>
+    </TitleRegion>
+    <Backdrop  bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
+			<BackgroundInsets>
+				<AbsInset left="4" right="4" top="4" bottom="4"/>
+			</BackgroundInsets>
+      <TileSize>
+        <AbsValue val="16"/>
+      </TileSize>
+      <EdgeSize>
+        <AbsValue val="16"/>
+      </EdgeSize>
+    </Backdrop>
+    <Layers>
+      <Layer level="ARTWORK">
+        <FontString inherits="GameFontNormalLarge" text="REACTION_KEYBIND_TITLE" justifyH="CENTER">
+          <Size>
+            <AbsDimension x="200" y="30"/>
+          </Size>
+          <Anchors>
+            <Anchor point="TOP">
+              <Offset>
+                <AbsDimension x="0" y="-10"/>
+              </Offset>
+            </Anchor>
+          </Anchors>
+        </FontString>
+        <FontString inherits="GameFontNormalSmall" text="REACTION_KEYBIND_SUBTITLE" justifyH="CENTER">
+          <Size>
+            <AbsDimension x="240" y="70"/>
+          </Size>
+          <Anchors>
+            <Anchor point="TOP">
+              <Offset>
+                <AbsDimension x="0" y="-10"/>
+              </Offset>
+            </Anchor>
+          </Anchors>
+        </FontString>
+      </Layer>
+    </Layers>
+    <Frames>
+      <Button inherits="GameMenuButtonTemplate" text="REACTION_KEYBIND_DONE">
+        <Size>
+          <AbsDimension x="112" y="28"/>
+        </Size>
+        <Anchors>
+          <Anchor point="BOTTOMLEFT" relativePoint="BOTTOM">
+            <Offset>
+              <AbsDimension x="10" y="10"/>
+            </Offset>
+          </Anchor>
+        </Anchors>
+        <Scripts>
+          <OnClick>
+            this:GetParent().save = true
+            this:GetParent():Hide()
+          </OnClick>
+        </Scripts>
+      </Button>
+      <Button inherits="GameMenuButtonTemplate" text="REACTION_KEYBIND_REVERT">
+        <Size>
+          <AbsDimension x="112" y="28"/>
+        </Size>
+        <Anchors>
+          <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOM">
+            <Offset>
+              <AbsDimension x="-10" y="10"/>
+            </Offset>
+          </Anchor>
+        </Anchors>
+        <Scripts>
+          <OnClick>
+            this:GetParent():Hide()
+          </OnClick>
+        </Scripts>
+      </Button>
+    </Frames>
+    <Scripts>
+      <OnLoad>
+        table.insert(UISpecialFrames, this:GetName())
+      </OnLoad>
+      <OnHide>
+        ReActionAddOn:SetKeybindMode(false)
+        if this.save then
+          this.save = false
+          SaveBindings(GetCurrentBindingSet())
+        else
+          LoadBindings(GetCurrentBindingSet())
+        end
+      </OnHide>
+    </Scripts>
+  </Frame>
+
+</Ui>