forked from Dolgubon/DolgubonsLazyWritCreator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WritCreater.xml
288 lines (279 loc) · 14.9 KB
/
WritCreater.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<!--- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Addon Name: Dolgubon's Lazy Writ Crafter
Creator: Dolgubon (Joseph Heinzle)
Addon Ideal: Simplifies Crafting Writs as much as possible
Addon Creation Date: March 14, 2016
File Name: WritCreater.xml
File Description: Contains all the XML GUI information for the addon
Load Order Requirements: Before WritCreater.lua
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<GuiXml>
<Controls>
<TopLevelControl name="DolgubonsLazyWritResetWarner" clampedToScreen="true" mouseEnabled="true" movable="true" hidden="true">
<Dimensions x="700" y="150" />
<Anchor point="CENTER" relativeTo="GuiRoot" relativePoint="TOP" offsetX="0" offsetY="200" />
<Controls>
<Backdrop name="$(parent)Backdrop" centerColor="FFFFFF" edgeColor="00000000" inherits="ZO_InsetBackdrop">
<Anchor point="CENTER" relativeTo="$(parent)" relativePoint="CENTER" offsetX="0" offsetY="0" />
<Dimensions x="700" y="150" />
<Edge edgeSize="1" />
<Controls>
<Label name="$(parent)Title" font="ZoFontGame" color="FFAA33" horizontalAlignment="CENTER" text="Dolgubons Lazy Writ Creator">
<Anchor point="TOP" relativePoint="TOP" relativeTo="$(parent)" offsetY="15" offsetX="-5" />
</Label>
<Label name="$(parent)Output" font="ZoFontHeader2" color="FFFF33" wrapMode="TRUNCATE" horizontalAlignment="CENTER"
verticalAlignment="CENTER" text="The daily reset for writs will be in 1 hour" mouseEnabled="true">
<Anchor point="CENTER" relativeTo="$(parent)" relativePoint="CENTER" offsetX="0" offsetY="-5" />
</Label>
<Button name="$(parent)Close" alpha="1" inherits="ZO_DefaultButton" text="Close" clickSound="Book_Acquired">
<Anchor point="BOTTOM" relativeTo="$(parent)" relativePoint="BOTTOM" offsetX="0" offsetY="-15" />
<FontColors normalColor="FFFFFF" mouseOverColor="d9d9d9" pressedColor="b3b3b3" />
<Dimensions x="130" />
<OnClicked>
self:GetOwningWindow():SetHidden(true)
if WritCreater.resetWindowClose then
WritCreater.resetWindowClose(true)
WritCreater.resetWindowClose = nil
end
</OnClicked>
</Button>
<Button name="$(parent)Button2" alpha="1" inherits="ZO_DefaultButton" text="Off" clickSound="Book_Acquired" hidden="true">
<Anchor point="BOTTOM" relativeTo="$(parent)" relativePoint="BOTTOM" offsetX="100" offsetY="-15" />
<FontColors normalColor="FFFFFF" mouseOverColor="d9d9d9" pressedColor="b3b3b3" />
<Dimensions x="130" />
<OnClicked>
self:GetOwningWindow():SetHidden(true)
if WritCreater.resetWindowClose then
WritCreater.resetWindowClose(false)
WritCreater.resetWindowClose = nil
end
</OnClicked>
</Button>
</Controls>
</Backdrop>
</Controls>
</TopLevelControl>
<Control name="WritCrafterScrollTemplate" alpha="1" mouseEnabled="false" inheritAlpha="false" virtual="true">
<Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="0" offsetY="135" />
<Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" relativePoint="BOTTOMRIGHT" offsetX="3" offsetY="-50" />
<Controls>
<Control name="$(parent)List" inherits="ZO_ScrollList" mouseEnabled="true">
<Anchor point="TOPLEFT" relativeTo="$(parent)" offsetY="0" offsetX="6" relativePoint="TOPLEFT" />
<Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" offsetY="0" offsetX="-7" relativePoint="BOTTOMRIGHT" />
</Control>
</Controls>
</Control>
<Control name="SingleCraftRewardTemplate" virtual="true">
<Dimensions x="216" y="30" />
<Controls>
<Backdrop name="$(parent)BG" mouseEnabled="false" inherits="ZO_InsetBackdrop" />
<Label name="$(parent)Name" color="76BCC3" mouseEnabled="false" font="ZoFontGame" wrapMode="TEXT_WRAP_MODE_TRUNCATE" horizontalAlignment="LEFT">
<Anchor point="LEFT" relativeTo="$(parent)" relativePoint="LEFT" offsetX="0" />
<Anchor point="RIGHT" relativeTo="$(parent)Amount" relativePoint="LEFT" offsetX="0" />
</Label>
<Label name="$(parent)Amount" color="76BCC3" font="ZoFontGame" horizontalAlignment="RIGHT" mouseEnabled="false">
<Anchor point="RIGHT" relativeTo="$(parent)" offsetX="-5" />
</Label>
</Controls>
</Control>
<Button name="WritCrafterRewardTemplate" virtual="true" mouseEnabled="true">
<OnMouseEnter>
if not self.data or self.data.header then
return
end
WritCreater.rewardsScroll:Row_OnMouseEnter(self)
<!-- ItemTooltip:SetLink(self.data.Name) -->
d(self.data)
</OnMouseEnter>
<OnMouseExit>
if not self.data or self.data.header then
return
end
local name = GetControl(self, "Name")
WritCreater.rewardsScroll:Row_OnMouseExit(self)
ClearTooltip(ItemTooltip)
</OnMouseExit>
<Dimensions x="1540" y="30" />
<Controls>
<Control name="$(parent)Craft1" inherits="SingleCraftRewardTemplate">
<Anchor point="LEFT" relativePoint="LEFT" relativeTo="$(parent)" offsetX="10" />
</Control>
<Control name="$(parent)Craft2" inherits="SingleCraftRewardTemplate">
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$(parent)Craft1" offsetX="0" />
</Control>
<Control name="$(parent)Craft3" inherits="SingleCraftRewardTemplate">
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$(parent)Craft2" offsetX="0" />
</Control>
<Control name="$(parent)Craft4" inherits="SingleCraftRewardTemplate">
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$(parent)Craft3" offsetX="0" />
</Control>
<Control name="$(parent)Craft5" inherits="SingleCraftRewardTemplate">
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$(parent)Craft4" offsetX="0" />
</Control>
<Control name="$(parent)Craft6" inherits="SingleCraftRewardTemplate">
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$(parent)Craft5" offsetX="0" />
</Control>
<Control name="$(parent)Craft7" inherits="SingleCraftRewardTemplate">
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$(parent)Craft6" offsetX="0" />
</Control>
</Controls>
</Button>
<TopLevelControl name="DolgubonsLazyWritStatsWindow" clampedToScreen="true" mouseEnabled="true" movable="true" hidden="true">
<Dimensions x="1550" y="700" />
<Anchor point="TOP" relativeTo="GuiRoot" relativePoint="TOP" offsetX="0" offsetY="250" />
<Controls>
<Backdrop name="$(parent)Backdrop" centerColor="FFFFFF" edgeColor="00000000" inherits="ZO_InsetBackdrop">
<AnchorFill />
<Edge edgeSize="1" />
<Controls>
<Label name="$(parent)Title" font="ZoFontGame" color="FFAA33" horizontalAlignment="CENTER" text="Dolgubons Lazy Writ Creator">
<Anchor point="TOP" relativePoint="TOP" relativeTo="$(parent)" offsetY="15" offsetX="0" />
</Label>
<Label name="$(parent)SubTitle" font="ZoFontGame" color="FFAA33" horizontalAlignment="CENTER" text="Writ Reward Stats">
<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$(parent)Title" offsetY="0" offsetX="0" />
</Label>
<Label name="$(parent)WritCounter" font="ZoFontGame" color="FFAA33" horizontalAlignment="CENTER" text="Writs Done: ">
<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$(parent)SubTitle" offsetY="0" offsetX="0" />
</Label>
<Button name="$(parent)CraftHeader" inherits="WritCrafterRewardTemplate">
<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$(parent)WritCounter" offsetY="0" offsetX="0" />
</Button>
<Button name="$(parent)ToggleDisplay" alpha="1" inherits="ZO_DefaultButton" text="Change View" clickSound="Skill_Added">
<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" relativeTo="$(grandparent)" offsetY="20" offsetX="-20" />
<FontColors normalColor="FFFFFF" mouseOverColor="d9d9d9" pressedColor="b3b3b3" />
<Dimensions x="130" />
<OnClicked>
WritCreater.changeStatView()
</OnClicked>
</Button>
<Label name="$(parent)QuestGold" font="ZoFontGame" color="FFAA33" horizontalAlignment="CENTER" text="Quest Gold:">
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$(parent)Title" offsetY="0" offsetX="70" />
</Label>
<Label name="$(parent)ItemGold" font="ZoFontGame" color="FFAA33" horizontalAlignment="CENTER" text="Total Item Value: ">
<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$(parent)QuestGold" offsetY="0" offsetX="0" />
</Label>
<Label name="$(parent)TotalGold" font="ZoFontGame" color="FFAA33" horizontalAlignment="CENTER" text="Total Value: ">
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$(parent)QuestGold" offsetY="0" offsetX="70" />
</Label>
<Label name="$(parent)EstimateWarning" font="ZoFontGame" color="FFAA33" horizontalAlignment="CENTER" text="Note: Values are estimates only!">
<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$(parent)TotalGold" offsetY="10" offsetX="0" />
</Label>
<Control name="$(grandparent)RewardScroll" inherits="WritCrafterScrollTemplate" alpha="1" mouseEnabled="false" inheritAlpha="false">
</Control>
<Button name="$(parent)Close" alpha="1" inherits="ZO_DefaultButton" text="Close" clickSound="Book_Acquired">
<Anchor point="BOTTOM" relativeTo="$(parent)" relativePoint="BOTTOM" offsetX="0" offsetY="-15" />
<FontColors normalColor="FFFFFF" mouseOverColor="d9d9d9" pressedColor="b3b3b3" />
<Dimensions x="130" />
<OnClicked>
self:GetOwningWindow():SetHidden(true)
</OnClicked>
</Button>
</Controls>
</Backdrop>
</Controls>
</TopLevelControl>
<!-- <Button name="WritCrafterRewardHeaderTemplate" virtual="true" mouseEnabled="true">
<Dimensions x="280" y="30" />
<Controls>
<Backdrop name="$(parent)BG" mouseEnabled="false"/>
<Label name="$(parent)Name" inherits="QueueRowLabelTemplate" color="76BCC3" mouseEnabled="false" wrapMode="TEXT_WRAP_MODE_TRUNCATE">
<Anchor point="LEFT" relativeTo="$(parent)" relativePoint="LEFT" offsetX="0" color="000000" />
<Anchor point="RIGHT" relativeTo="$(parent)Amount" relativePoint="LEFT" offsetX="0" color="000000" />
</Label>
</Controls>
</Button> -->
<TopLevelControl name="DolgubonsWrits" clampedToScreen="true" mouseEnabled="true" movable="true" hidden="true">
<Dimensions x="470" y="200" />
<Anchor point="CENTER" relativeTo="GuiRoot" relativePoint="TOP" offsetX="0" offsetY="50" />
<Controls>
<Backdrop name="$(parent)Backdrop" centerColor="FFFFFF" edgeColor="00000000">
<Anchor point="CENTER" relativeTo="$(parent)" relativePoint="CENTER" offsetX="0" offsetY="80" />
<Dimensions x="500" y="400" />
<Edge edgeSize="1" />
<Center file="/esoui/art/icons/heraldrycrests_misc_blank_01.dds" />
<Controls>
<Backdrop name="$(parent)Backdrop" centerColor="FFFFFF" edgeColor="00000000">
<Anchor point="CENTER" relativeTo="$(parent)" relativePoint="CENTER" offsetX="0" offsetY="0" />
<Dimensions x="500" y="400" />
<Edge edgeSize="1" />
<Center file="esoui/art/crafting/crafting_alchemy_slottingbg.dds" />
</Backdrop>
<Label name="$(parent)Head" font="ZoFontGame" color="FFAA33" horizontalAlignment="CENTER" text="Dolgubons Lazy Writ Creator">
<Anchor relativePoint="TOP" relativeTo="$(parent)" offsetY="55" offsetX="-85" />
</Label>
<Label name="$(parent)Output" font="ZoFontGame" color="FFFFFF" wrapMode="TRUNCATE" horizontalAlignment="CENTER" verticalAlignment="TOP" text="" mouseEnabled="false">
<Anchor point="TOP" relativeTo="$(parent)" relativePoint="TOP" offsetY="80" offsetX="10" />
<Dimensions x="450" />
</Label>
<Label name="$(parent)QuestOutput" font="ZoFontGame" text="" color="FFFFFF" wrapMode="TRUNCATE" horizontalAlignment="CENTER" verticalAlignment="TOP">
<Anchor point="TOP" relativeTo="$(parent)" relativePoint="TOP" offsetY="130" offsetX="10" />
<Dimensions x="450" />
</Label>
<Button name="$(parent)Craft" alpha="1" inherits="ZO_DefaultButton" text="Craft" clickSound="Book_Acquired" hidden="true">
<Anchor point="BOTTOM" relativeTo="$(parent)" relativePoint="BOTTOM" offsetX="0" offsetY="-205" />
<FontColors normalColor="FFFFFF" mouseOverColor="d9d9d9" pressedColor="b3b3b3" />
<Dimensions x="130" />
<OnClicked>
if WritCreater.autoFix then
WritCreater.autoFix()
return
end
if WritCreater.dismissable then
DolgubonsWrits:SetHidden(true)
WritCreater.dismissable = false
self:SetText("Craft")
end
WritCreater.craft()
</OnClicked>
</Button>
<Button name="$(parent)SettingOn" alpha="1" inherits="ZO_DefaultButton" text="On" clickSound="Book_Acquired" hidden="true">
<Anchor point="BOTTOM" relativeTo="$(parent)" relativePoint="BOTTOM" offsetX="0" offsetY="-20" />
<FontColors normalColor="FFFFFF" mouseOverColor="d9d9d9" pressedColor="b3b3b3" />
<Dimensions x="150" />
<OnClicked>
WritCreater.on()
</OnClicked>
</Button>
<Button name="$(parent)SettingOff" alpha="1" inherits="ZO_DefaultButton" text="Off" clickSound="Book_Acquired" hidden="true">
<Anchor point="BOTTOM" relativeTo="$(parent)" relativePoint="BOTTOM" offsetX="0" offsetY="-20" />
<FontColors normalColor="FFFFFF" mouseOverColor="d9d9d9" pressedColor="b3b3b3" />
<Dimensions x="150" />
<OnClicked>
WritCreater.off()
</OnClicked>
</Button>
</Controls>
</Backdrop>
<Button name="$(parent)Stats" alpha="1" inherits="ZO_DefaultButton" text="Stats" clickSound="Book_Acquired" hidden="false">
<Anchor point="RIGHT" relativeTo="$(parent)" relativePoint="RIGHT" offsetX="-10" offsetY="10" />
<FontColors normalColor="FFFFFF" mouseOverColor="d9d9d9" pressedColor="b3b3b3" />
<Dimensions x="90" />
<OnClicked>
WritCreater.updateList()
DolgubonsLazyWritStatsWindow:SetHidden(not DolgubonsLazyWritStatsWindow:IsHidden())
</OnClicked>
</Button>
</Controls>
</TopLevelControl>
<TopLevelControl name="DolgubonsLazyWritStatus" clampedToScreen="true" mouseEnabled="true" movable="true" hidden="false">
<Dimensions x="120" y="37" />
<Anchor point="CENTER" relativeTo="GuiRoot" relativePoint="TOP" offsetX="0" offsetY="850" />
<OnMoveStop>
WritCreater:GetSettings().statusBarY = self:GetTop()
WritCreater:GetSettings().statusBarX = self:GetRight()
</OnMoveStop>
<Controls>
<Backdrop name="$(parent)Backdrop" centerColor="FFFFFF" edgeColor="00000000" inherits="ZO_InsetBackdrop" mouseEnabled="false">
<AnchorFill />
<Edge edgeSize="1" />
<Controls>
<Label name="$(parent)Output" font="ZoFontHeader2" color="FFFF33" wrapMode="TRUNCATE" horizontalAlignment="CENTER"
verticalAlignment="CENTER" text="BCWJ AEP" mouseEnabled="false">
<Anchor point="CENTER" relativeTo="$(parent)" relativePoint="CENTER" offsetX="0" offsetY="0" />
</Label>
</Controls>
</Backdrop>
</Controls>
</TopLevelControl>
</Controls>
</GuiXml>