vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <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/ |
2 | ..\FrameXML\UI.xsd"> |
||
3 | <Script file="SmartHeal_OptionFrame.lua"/> |
||
4 | <!-- tab button template --> |
||
5 | <Button name="SH_TabButtonTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true"> |
||
6 | <Scripts> |
||
7 | <OnClick>SmartHeal:OptionTabClick(this:GetName())</OnClick> |
||
8 | <OnLoad> |
||
9 | this:SetText( SmartHeal.OptionTab[ this:GetName()] ); |
||
10 | PanelTemplates_TabResize(0); |
||
11 | </OnLoad> |
||
12 | </Scripts> |
||
13 | </Button> |
||
14 | |||
15 | <!-- options frame --> |
||
16 | <Frame name="SH_OptionsFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent" enableKeyboard="true"> |
||
17 | <Size> |
||
18 | <AbsDimension x="450" y="500"/> |
||
19 | </Size> |
||
20 | <Anchors> |
||
21 | <Anchor point="CENTER"/> |
||
22 | </Anchors> |
||
23 | |||
24 | <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> |
||
25 | <BackgroundInsets> |
||
26 | <AbsInset left="11" right="12" top="12" bottom="11"/> |
||
27 | </BackgroundInsets> |
||
28 | <TileSize> |
||
29 | <AbsValue val="32"/> |
||
30 | </TileSize> |
||
31 | <EdgeSize> |
||
32 | <AbsValue val="32"/> |
||
33 | </EdgeSize> |
||
34 | </Backdrop> |
||
35 | |||
36 | <!-- header --> |
||
37 | <Layers> |
||
38 | <Layer level="ARTWORK"> |
||
39 | <Texture name="SH_OptionsFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header"> |
||
40 | <Size><AbsDimension x="350" y="64"/></Size> |
||
41 | <Anchors><Anchor point="TOP"><Offset><AbsDimension x="0" y="12"/></Offset></Anchor></Anchors> |
||
42 | </Texture> |
||
43 | <FontString name="SH_TitleText" inherits="GameFontNormal" text="SH_SMARTHEAL_OPTION"> |
||
44 | <Anchors> |
||
45 | <Anchor point="TOP" relativeTo="SH_OptionsFrameHeader"> |
||
46 | <Offset><AbsDimension x="0" y="-14"/></Offset> |
||
47 | </Anchor> |
||
48 | </Anchors> |
||
49 | </FontString> |
||
50 | </Layer> |
||
51 | </Layers> |
||
52 | |||
53 | <Frames> |
||
54 | <Frame name="SH_OptionsFrameCanvas"> |
||
55 | <Size> |
||
56 | <AbsDimension x="390" y="400"/> |
||
57 | </Size> |
||
58 | <Anchors> |
||
59 | <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"> |
||
60 | <Offset> <AbsDimension x="30" y="-45"/> </Offset> |
||
61 | </Anchor> |
||
62 | </Anchors> |
||
63 | </Frame> |
||
64 | |||
65 | <!-- tab buttons --> |
||
66 | <Button name="$parentTab1" inherits="SH_TabButtonTemplate" id="1"> |
||
67 | <Anchors> |
||
68 | <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT"> |
||
69 | <Offset> <AbsDimension x="8" y="-24"/> </Offset> |
||
70 | </Anchor> |
||
71 | </Anchors> |
||
72 | </Button> |
||
73 | <Button name="$parentTab2" inherits="SH_TabButtonTemplate" id="2"> |
||
74 | <Anchors> |
||
75 | <Anchor point="LEFT" relativeTo="$parentTab1" relativePoint="RIGHT"> |
||
76 | <Offset> <AbsDimension x="-15" y="0"/> </Offset> |
||
77 | </Anchor> |
||
78 | </Anchors> |
||
79 | </Button> |
||
80 | <Button name="$parentTab3" inherits="SH_TabButtonTemplate" id="3"> |
||
81 | <Anchors> |
||
82 | <Anchor point="LEFT" relativeTo="$parentTab2" relativePoint="RIGHT"> |
||
83 | <Offset> <AbsDimension x="-15" y="0"/> </Offset> |
||
84 | </Anchor> |
||
85 | </Anchors> |
||
86 | </Button> |
||
87 | |||
88 | |||
89 | <!-- Default Button --> |
||
90 | <Button name="SH_ButtonDefault" inherits="OptionsButtonTemplate" text="SH_DEFAULT"> |
||
91 | <Anchors> |
||
92 | <Anchor point="TOPLEFT" relativeTo="SH_OptionsFrameCanvas" relativePoint="BOTTOMLEFT"> |
||
93 | <Offset><AbsDimension x="0" y="-5"/></Offset> |
||
94 | </Anchor> |
||
95 | </Anchors> |
||
96 | <Scripts> |
||
97 | <OnClick> |
||
98 | SmartHeal:setDefault(SmartHeal.TabDefault[SmartHeal.CurrentTab]) |
||
99 | this:GetParent():Hide() |
||
100 | this:GetParent():Show() |
||
101 | </OnClick> |
||
102 | </Scripts> |
||
103 | </Button> |
||
104 | |||
105 | <!-- Close Button --> |
||
106 | <Button name="SH_ButtonClose" inherits="OptionsButtonTemplate" text="SH_CLOSE"> |
||
107 | <Anchors> |
||
108 | <Anchor point="TOPRIGHT" relativeTo="SH_OptionsFrameCanvas" relativePoint="BOTTOMRIGHT"> |
||
109 | <Offset><AbsDimension x="0" y="-5"/></Offset> |
||
110 | </Anchor> |
||
111 | </Anchors> |
||
112 | <Scripts> |
||
113 | <OnClick> |
||
114 | SH_OptionsFrame:Hide() |
||
115 | SmartHeal.CurrentTab=nil |
||
116 | </OnClick> |
||
117 | </Scripts> |
||
118 | </Button> |
||
119 | |||
120 | |||
121 | </Frames> |
||
122 | <Scripts> |
||
123 | <OnShow> |
||
124 | if(not SmartHeal.CurrentTab) then |
||
125 | SmartHeal.CurrentTab="SH_OptionsFrameTab1" |
||
126 | end |
||
127 | SmartHeal:OptionTabClick(SmartHeal.CurrentTab) |
||
128 | </OnShow> |
||
129 | <OnHide> |
||
130 | this:StopMovingOrSizing(); |
||
131 | </OnHide> |
||
132 | <OnMouseDown> |
||
133 | if (arg1 == "LeftButton") then |
||
134 | this:StartMoving(); |
||
135 | end |
||
136 | </OnMouseDown> |
||
137 | <OnMouseUp> |
||
138 | if (arg1 == "LeftButton") then |
||
139 | this:StopMovingOrSizing(); |
||
140 | end |
||
141 | </OnMouseUp> |
||
142 | <OnKeyDown> |
||
143 | if (arg1 == "ESCAPE") then |
||
144 | this:Hide(); |
||
145 | end |
||
146 | </OnKeyDown> |
||
147 | </Scripts> |
||
148 | </Frame> |
||
149 | </UI> |