imbuing.otui

main 347 lines · 7 KB Raw
Alex Alex Commit Client Upload Part 2 19/10/2026 00:06
1Slot < Button
2 width: 70
3 height: 66
4 anchors.verticalCenter: parent.verticalCenter
5 enabled: false
6 text-wrap: true
7 !tooltip: tr('Items can have up to three imbuements slots. This slot is not available for this item.')
8
9RequiredItem < Panel
10 width: 66
11 height: 90
12
13 UIItem
14 id: item
15 height: 66
16 width: 66
17 anchors.left: parent.left
18 anchors.top: parent.top
19
20 FlatLabel
21 id: count
22 margin-top: 5
23 text-align: center
24 anchors.left: prev.left
25 anchors.right: prev.right
26 anchors.top: prev.bottom
27
28ItemInformation < Panel
29 height: 100
30 border: 1 black
31 padding: 5
32
33 Label
34 id: title
35 anchors.top: parent.top
36 anchors.left: parent.left
37 anchors.right: parent.right
38 text-align: center
39 !text: tr("Item Information")
40
41 UIItem
42 id: item
43 anchors.top: parent.top
44 anchors.left: parent.left
45 anchors.VerticalCenter: parent.VerticalCenter
46 margin-left: 10
47 margin-top: 5
48 height: 64
49 width: 64
50
51 Panel
52 id: slots
53 width: 240
54 height: 66
55 margin-top: 5
56 anchors.VerticalCenter: parent.VerticalCenter
57 anchors.top: prev.top
58 anchors.right: parent.right
59
60 Slot
61 id: slot0
62 !text: tr("Slot 1")
63 text-align: center
64 anchors.left: parent.left
65
66 Slot
67 id: slot1
68 !text: tr("Slot 2")
69 text-align: center
70 margin-left: 10
71 anchors.left: prev.right
72
73 Slot
74 id: slot2
75 !text: tr("Slot 3")
76 text-align: center
77 margin-left: 10
78 anchors.left: prev.right
79
80 Label
81 id: selectSlot
82 margin-right: 15
83 anchors.right: slots.left
84 anchors.VerticalCenter: parent.VerticalCenter
85 !text: tr("Select Slot:")
86
87EmptyImbue < Panel
88 height: 240
89 border: 1 black
90 padding: 5
91
92 Label
93 id: title
94 anchors.top: parent.top
95 anchors.left: parent.left
96 anchors.right: parent.right
97 text-align: center
98 !text: tr("Imbue Empty Slot")
99
100 ComboBox
101 id: groups
102 anchors.top: title.bottom
103 anchors.left: parent.left
104 anchors.right: parent.HorizontalCenter
105 margin-right: 3
106 margin-top: 5
107 isdisabled: true
108
109 ComboBox
110 id: imbuement
111 anchors.top: prev.top
112 anchors.left: groups.right
113 anchors.right: parent.right
114 margin-left: 3
115
116 Label
117 id: description
118 anchors.top: prev.bottom
119 anchors.left: parent.left
120 anchors.right: parent.right
121 margin-top: 10
122 height: 85
123
124 Label
125 id: info
126 anchors.bottom: prev.bottom
127 anchors.left: parent.left
128 !text: tr('Requires the following astral sources:')
129
130 Label
131 id: successRate
132 anchors.top: info.top
133 anchors.right: parent.right
134 width: 35
135 text-align: right
136
137 Label
138 id: successRateTitle
139 anchors.top: info.top
140 anchors.right: successRate.left
141 margin-right: 15
142 !text: tr('Success Rate:')
143
144 Panel
145 id: requiredItems
146 width: 210
147 height: 90
148 anchors.left: parent.left
149 anchors.bottom: parent.bottom
150
151 RequiredItem
152 id: item1
153 anchors.left: parent.left
154
155 RequiredItem
156 id: item2
157 margin-left: 10
158 anchors.left: prev.right
159
160 RequiredItem
161 id: item3
162 margin-left: 10
163 anchors.left: prev.right
164
165 UIButton
166 id: protection
167 width: 66
168 height: 66
169 anchors.top: prev.top
170 anchors.left: prev.right
171 image-source: /images/game/imbuing/100percent
172 image-clip: 0 0 66 66
173 margin-left: 15
174 !tooltip: ("Bribe the fates! Click here to raise your chance to 100%. For guaranteed success use gold.")
175
176 FlatLabel
177 id: protectionCost
178 margin-top: 5
179 text-align: center
180 anchors.left: prev.left
181 anchors.right: prev.right
182 anchors.top: prev.bottom
183
184 UIWidget
185 id: horizontalArrow
186 anchors.left: prev.right
187 anchors.verticalCenter: requiredItems.verticalCenter
188 margin-left: 45
189 width: 12
190 height: 21
191 image-source: /images/ui/arrow_horizontal
192 image-rect: 0 0 12 21
193 image-clip: 12 0 12 21
194 phantom: false
195
196 UIButton
197 id: imbue
198 width: 128
199 height: 66
200 anchors.top: requiredItems.top
201 anchors.right: parent.right
202 image-source: /images/game/imbuing/imbue_empty
203 image-clip: 0 0 128 66
204 margin-left: 15
205 !tooltip: tr("Click here to carry out the selected imbuement. This will consume the required astral sources and gold.")
206
207 $pressed:
208 image-clip: 0 66 128 66
209
210 FlatLabel
211 id: cost
212 margin-top: 5
213 text-align: center
214 anchors.left: prev.left
215 anchors.right: prev.right
216 anchors.top: prev.bottom
217
218ClearImbue < Panel
219 height: 240
220 border: 1 black
221 padding: 5
222
223 Label
224 id: title
225 anchors.top: parent.top
226 anchors.left: parent.left
227 anchors.right: parent.right
228 text-align: center
229 !text: tr("Clear Imbuement")
230
231 ComboBox
232 id: groups
233 anchors.top: title.bottom
234 anchors.left: parent.left
235 anchors.right: parent.HorizontalCenter
236 margin-right: 3
237 margin-top: 5
238 enabled: false
239
240 ComboBox
241 id: imbuement
242 anchors.top: prev.top
243 anchors.left: groups.right
244 anchors.right: parent.right
245 margin-left: 3
246 enabled: false
247
248 Label
249 id: description
250 anchors.top: prev.bottom
251 anchors.left: parent.left
252 anchors.right: parent.right
253 margin-top: 10
254 height: 85
255
256 Label
257 id: info
258 anchors.bottom: prev.bottom
259 anchors.left: parent.left
260 !text: tr('Time remaining:')
261
262 Label
263 id: clearImbuementTitle
264 anchors.top: info.top
265 anchors.right: parent.right
266 !text: tr('Clear imbuement:')
267
268 Panel
269 id: time
270 width: 210
271 height: 90
272 anchors.left: parent.left
273 anchors.bottom: parent.bottom
274
275 FlatLabel
276 id: timeRemaining
277 size: 86 25
278 margin-bottom: 20
279 text-align: center
280 anchors.left: parent.left
281 anchors.right: parent.right
282 anchors.verticalCenter: parent.verticalCenter
283
284 UIButton
285 id: clear
286 width: 128
287 height: 66
288 anchors.top: time.top
289 anchors.right: parent.right
290 image-source: /images/game/imbuing/clear
291 image-clip: 0 0 128 66
292 margin-left: 15
293 !tooltip: tr("Your needs have changed? Click here to clear the imbuement from your item for a fee.")
294
295 $pressed:
296 image-clip: 0 66 128 66
297
298 FlatLabel
299 id: cost
300 margin-top: 5
301 text-align: center
302 anchors.left: prev.left
303 anchors.right: prev.right
304 anchors.top: prev.bottom
305
306
307MainWindow
308 id: imbuingWindow
309 !text: tr('Imbue Item')
310 size: 550 430
311 background-color: #AAAAAA
312 @onEscape: modules.game_imbuing.hide()
313
314 ItemInformation
315 id: itemInfo
316 anchors.left: parent.left
317 anchors.top: parent.top
318 anchors.right: parent.right
319
320 EmptyImbue
321 id: emptyImbue
322 anchors.left: parent.left
323 anchors.top: prev.bottom
324 anchors.right: parent.right
325 margin-top: 5
326
327 ClearImbue
328 id: clearImbue
329 anchors.left: parent.left
330 anchors.top: emptyImbue.top
331 anchors.right: parent.right
332
333 Button
334 id: close
335 !text: tr('Close')
336 width: 50
337 anchors.right: parent.right
338 anchors.bottom: parent.bottom
339 @onClick: modules.game_imbuing.hide()
340
341 Label
342 id: balance
343 height: 25
344 anchors.right: prev.left
345 anchors.left: parent.left
346 anchors.bottom: parent.bottom
347
Top