prey.otui

main 199 lines · 3.8 KB Raw
Alex Alex Commit Client Upload Part 2 19/10/2026 00:06
1PreySelectionLabel < Label
2 font: verdana-11px-monochrome
3 background-color: alpha
4 text-offset: 34 0
5 margin-right: 5
6 text-align: center
7 text-wrap: true
8 focusable: true
9 height: 34
10
11 $focus:
12 background-color: #00000055
13 color: #ffffff
14
15 UICreature
16 id: creature
17 size: 32 32
18 anchors.top: parent.top
19 anchors.left: parent.left
20 margin-top: 1
21
22PreySlot < Panel
23 width: 190
24 height: 280
25 border: 1 black
26 padding: 5
27
28 Label
29 id: title
30 anchors.top: parent.top
31 anchors.left: parent.left
32 anchors.right: parent.right
33 text-align: center
34 !text: tr("Prey Inactive")
35
36 TextList
37 id: list
38 anchors.top: parent.top
39 anchors.left: parent.left
40 anchors.right: parent.right
41 margin-top: 15
42 margin-right: 10
43 vertical-scrollbar: listScrollbar
44 height: 150
45 visible: false
46 focusable: false
47
48 VerticalScrollBar
49 id: listScrollbar
50 anchors.top: prev.top
51 anchors.bottom: prev.bottom
52 anchors.right: parent.right
53 pixels-scroll: true
54 visible: false
55 step: 10
56
57 UICreature
58 id: creature
59 anchors.top: parent.top
60 anchors.horizontalCenter: parent.horizontalCenter
61 margin-top: 40
62 height: 64
63 width: 64
64 visible: false
65
66 Label
67 id: description
68 margin-top: 30
69 margin-left: 5
70 margin-right: 5
71 anchors.top: prev.bottom
72 anchors.left: parent.left
73 anchors.right: parent.right
74 text-auto-resize: true
75 text-align: center
76 text-wrap: true
77 visible: false
78
79 Label
80 id: bonuses
81 margin-top: 5
82 margin-left: 5
83 margin-right: 5
84 anchors.top: prev.bottom
85 anchors.left: parent.left
86 anchors.right: parent.right
87 text-auto-resize: true
88 text-align: center
89 text-wrap: true
90 visible: false
91
92 Button
93 id: button
94 margin-top: 5
95 anchors.top: prev.bottom
96 anchors.left: parent.left
97 anchors.right: parent.right
98 margin-left: 10
99 margin-right: 10
100 visible: false
101
102 Label
103 id: bottomLabel
104 margin-left: 5
105 margin-right: 5
106 margin-bottom: 5
107 anchors.bottom: next.top
108 anchors.left: parent.left
109 anchors.right: parent.right
110 text-auto-resize: true
111 text-align: center
112 text-wrap: true
113 visible: false
114
115 Button
116 id: bottomButton
117 anchors.bottom: parent.bottom
118 anchors.left: parent.left
119 anchors.right: parent.right
120 margin-left: 10
121 margin-right: 10
122 text: 11
123 visible: false
124
125 $hidden:
126 height: 0
127
128 $!hidden:
129 height: 22
130
131MainWindow
132 id: preyWindow
133 !text: tr('Preys')
134 size: 600 405
135 background-color: #AAAAAA
136 @onEscape: modules.game_prey.hide()
137
138 PreySlot
139 id: slot1
140 anchors.left: parent.left
141 anchors.top: parent.top
142
143 PreySlot
144 id: slot2
145 anchors.left: prev.right
146 anchors.top: prev.top
147
148 PreySlot
149 id: slot3
150 anchors.left: prev.right
151 anchors.top: prev.top
152
153 HorizontalSeparator
154 id: mainSeparator
155 anchors.top: slot3.bottom
156 anchors.left: parent.left
157 anchors.right: parent.right
158 margin-top: 5
159
160 Label
161 id: rerollPrice
162 anchors.top: mainSeparator.bottom
163 anchors.left: parent.left
164 margin-top: 5
165 width: 190
166 height: 30
167 text-align: center
168
169 Label
170 id: balance
171 anchors.top: mainSeparator.bottom
172 anchors.left: prev.right
173 margin-top: 5
174 width: 190
175 height: 30
176 text-align: center
177
178 Label
179 id: bonusRerolls
180 anchors.top: mainSeparator.bottom
181 anchors.left: prev.right
182 margin-top: 5
183 width: 190
184 height: 30
185 text-align: center
186
187 HorizontalSeparator
188 anchors.bottom: buttonCancel.top
189 anchors.left: parent.left
190 anchors.right: parent.right
191 margin-bottom: 5
192
193 Button
194 id: buttonCancel
195 !text: tr('Close')
196 width: 64
197 anchors.right: parent.right
198 anchors.bottom: parent.bottom
199 @onClick: modules.game_prey.hide()
Top