vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <Ui xmlns="http://www.blizzard.com/wow/ui/"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">
4  
5 <!-- <Script file="LootTrackerSettingsUI.lua"/> -->
6  
7 <!-- OptionsButtonTemplate, UIPanelButtonTemplate2, UIPanelButtonGrayTemplate, -->
8  
9 <Button name="LT_SessionButtonTemplate" inherits="UIPanelButtonTemplate2" virtual="true">
10 <Size x="170" y="20"/>
11 <Scripts>
12 <OnClick>
13 LT_SessionButtonClicked(this);
14 </OnClick>
15 </Scripts>
16 </Button>
17  
18  
19 <Frame name="LT_SessionChangeTemplate" virtual="true" inherits="OptionFrameBoxTemplate">
20 <Size x="210" y="235"/>
21 <Frames>
22  
23 <!-- Change Session EditBox -->
24 <EditBox name="LT_ChangeSessionEditBox" letters="40" autoFocus="false" inherits="InputBoxTemplate">
25 <Size x="190" y="20"/>
26 <Anchors>
27 <Anchor point="TopLEFT" relativePoint="TopLEFT" relativeTo="$parent">
28 <Offset x="15" y="-10"/>
29 </Anchor>
30 </Anchors>
31 <FontString inherits="ChatFontHighlight" font="Fonts\ARIALN.TTF">
32 <Color r="1" g="1" b="0"/>
33 <FontHeight>
34 <AbsValue val="12"/>
35 </FontHeight>
36 </FontString>
37 <Scripts>
38 <OnShow>
39 -- Initialize
40 local settings = LT_GetSettings();
41 this:SetText(settings.CurrentSession);
42 LT_OnSessionEditValueChanged(this:GetText());
43 </OnShow>
44 <OnTextChanged>
45 LT_OnSessionEditValueChanged(this:GetText());
46 </OnTextChanged>
47 </Scripts>
48 </EditBox>
49  
50 <!-- Set Session Button -->
51 <Button name="LT_SetSessionButton" inherits="OptionsButtonTemplate">
52 <Anchors>
53 <Anchor point="TopLEFT" relativePoint="BottomLEFT" relativeTo="LT_ChangeSessionEditBox">
54 <Offset x="-5" y="-4"/>
55 </Anchor>
56 </Anchors>
57 <Scripts>
58 <OnClick>
59 local value = LT_ChangeSessionEditBox:GetText();
60 LT_SetSession(value);
61 LT_UpdateCurrentSessionText();
62 </OnClick>
63 </Scripts>
64 </Button>
65  
66 <!-- Export Session Button -->
67 <Button name="LT_ExportSessionButton" inherits="OptionsButtonTemplate">
68 <Anchors>
69 <Anchor point="TopLEFT" relativePoint="TopRIGHT" relativeTo="LT_SetSessionButton">
70 <Offset x="5" y="0"/>
71 </Anchor>
72 </Anchors>
73 <Scripts>
74 <OnClick>
75 local value = LT_ChangeSessionEditBox:GetText();
76 LT_ExportSession(value);
77 LT_UpdateCurrentSessionText();
78 LT_UpdateSessionScroll();
79 </OnClick>
80 <OnShow>
81 this:SetText(LT_BUTTON_EXPORT);
82 </OnShow>
83 </Scripts>
84 </Button>
85  
86 <!-- Reset Button -->
87 <Button name="LT_ResetButton" inherits="OptionsButtonTemplate">
88 <Anchors>
89 <Anchor point="TopLEFT" relativePoint="BottomLeft" relativeTo="LT_SetSessionButton">
90 <Offset x="0" y="-4"/>
91 </Anchor>
92 </Anchors>
93 <Scripts>
94 <OnClick>
95 LT_ResetSession(LT_ChangeSessionEditBox:GetText());
96 </OnClick>
97 </Scripts>
98 </Button>
99  
100  
101 <!-- Existing sessions -->
102  
103 <Frame name="LT_SessionButtonsLabel" inherits="LT_SubLabelTemplate">
104 <Anchors>
105 <Anchor point="TopLEFT" relativePoint="BottomLEFT" relativeTo="LT_ResetButton">
106 <Offset x="0" y="-5"/>
107 </Anchor>
108 </Anchors>
109 <Scripts>
110 <OnShow>
111 LT_SessionButtonsLabelText:SetText(LT_LABEL_SESSIONS);
112 </OnShow>
113 </Scripts>
114 </Frame>
115  
116 <Frame name="LT_SessionButtonsFrame" inherits="OptionFrameBoxTemplate">
117 <Size x="190" y="100"/>
118 <Anchors>
119 <Anchor point="TopLEFT" relativeTo="LT_SessionButtonsLabel" relativePoint="BottomLEFT">
120 <Offset x="0" y="-2"/>
121 </Anchor>
122 </Anchors>
123 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
124 <EdgeSize>
125 <AbsValue val="8"/>
126 </EdgeSize>
127 <TileSize>
128 <AbsValue val="8"/>
129 </TileSize>
130 <BackgroundInsets>
131 <AbsInset left="2" right="2" top="2" bottom="2"/>
132 </BackgroundInsets>
133 </Backdrop>
134 <Scripts>
135 <OnLoad>
136 this:SetBackdropBorderColor(0.4, 0.4, 0.4);
137 this:SetBackdropColor(0.15, 0.15, 0.15);
138 </OnLoad>
139 </Scripts>
140 <Frames>
141  
142 <ScrollFrame name="LT_SessionScrollFrame" inherits="FauxScrollFrameTemplate">
143 <Size x="165" y="100"/>
144 <Anchors>
145 <Anchor point="TopLEFT" relativePoint="TopLEFT" relativeTo="LT_SessionButtonsFrame">
146 <Offset x="0" y="0"/>
147 </Anchor>
148 </Anchors>
149 <Scripts>
150 <OnVerticalScroll>
151 FauxScrollFrame_OnVerticalScroll(LT_SCROLL_SESSIONITEMHEIGHT, LT_UpdateSessionScroll);
152 </OnVerticalScroll>
153 <OnShow>
154 LT_AddListener(LT_UpdateSessionScroll);
155 LT_UpdateSessionScroll();
156 </OnShow>
157 <OnHide>
158 LT_RemoveListener(LT_UpdateSessionScroll);
159 </OnHide>
160 </Scripts>
161 </ScrollFrame>
162  
163 <Button name="LT_SessionButton1" inherits="LT_SessionButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_SessionScrollFrame" relativePoint="TopLEFT"/></Anchors></Button>
164 <Button name="LT_SessionButton2" inherits="LT_SessionButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_SessionButton1" relativePoint="BottomLEFT"/></Anchors></Button>
165 <Button name="LT_SessionButton3" inherits="LT_SessionButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_SessionButton2" relativePoint="BottomLEFT"/></Anchors></Button>
166 <Button name="LT_SessionButton4" inherits="LT_SessionButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_SessionButton3" relativePoint="BottomLEFT"/></Anchors></Button>
167 <Button name="LT_SessionButton5" inherits="LT_SessionButtonTemplate"><Anchors><Anchor point="TopLEFT" relativeTo="LT_SessionButton4" relativePoint="BottomLEFT"/></Anchors></Button>
168  
169 </Frames>
170 </Frame>
171  
172 </Frames>
173 <Scripts>
174 <OnShow>
175 --LT_AddListener(LT_UpdateUI);
176 --LT_UpdateUI();
177 </OnShow>
178 <OnHide>
179 --LT_RemoveListener(LT_UpdateUI);
180 </OnHide>
181 </Scripts>
182 </Frame>
183 </Ui>