skills.otui

main 213 lines · 4.1 KB Raw
Alex Alex Commit Client Upload Part 2 19/10/2026 00:06
1SkillFirstWidget < UIWidget
2
3SkillButton < UIButton
4 height: 21
5 margin-bottom: 2
6 &onClick: onSkillButtonClick
7
8SmallSkillButton < SkillButton
9 height: 14
10
11SkillNameLabel < GameLabel
12 font: verdana-11px-monochrome
13 anchors.left: parent.left
14 anchors.top: parent.top
15 anchors.bottom: parent.bottom
16
17SkillValueLabel < GameLabel
18 id: value
19 font: verdana-11px-monochrome
20 text-align: topright
21 anchors.right: parent.right
22 anchors.top: parent.top
23 anchors.bottom: parent.bottom
24 anchors.left: prev.left
25
26SkillPercentPanel < ProgressBar
27 id: percent
28 background-color: green
29 height: 5
30 margin-top: 15
31 anchors.left: parent.left
32 anchors.right: parent.right
33 anchors.top: parent.top
34 phantom: false
35
36MiniWindow
37 id: skillWindow
38 !text: tr('Skills')
39 height: 150
40 icon: /images/topbuttons/skills
41 @onClose: modules.game_skills.onMiniWindowClose()
42 &save: true
43 &autoOpen: false
44
45 MiniWindowContents
46 padding-left: 5
47 padding-right: 5
48 layout: verticalBox
49
50 SkillButton
51 margin-top: 5
52 id: experience
53 height: 15
54 SkillNameLabel
55 !text: tr('Experience')
56 SkillValueLabel
57
58 SkillButton
59 id: level
60 SkillNameLabel
61 !text: tr('Level')
62 SkillValueLabel
63 SkillPercentPanel
64 background-color: red
65
66 SkillButton
67 id: health
68 height: 15
69 SkillNameLabel
70 !text: tr('Hit Points')
71 SkillValueLabel
72
73 SkillButton
74 id: mana
75 height: 15
76 SkillNameLabel
77 !text: tr('Mana')
78 SkillValueLabel
79
80 SkillButton
81 id: soul
82 height: 15
83 SkillNameLabel
84 !text: tr('Soul Points')
85 SkillValueLabel
86
87 SkillButton
88 id: capacity
89 height: 15
90 SkillNameLabel
91 !text: tr('Capacity')
92 SkillValueLabel
93
94 SkillButton
95 id: speed
96 height: 15
97 SkillNameLabel
98 !text: tr('Speed')
99 SkillValueLabel
100
101 SkillButton
102 id: regenerationTime
103 SkillNameLabel
104 !text: tr('Regeneration Time')
105 SkillValueLabel
106
107 SkillButton
108 id: stamina
109 SkillNameLabel
110 !text: tr('Stamina')
111 SkillValueLabel
112 SkillPercentPanel
113
114 SkillButton
115 id: offlineTraining
116 SkillNameLabel
117 !text: tr('Offline Training')
118 SkillValueLabel
119 SkillPercentPanel
120
121 SkillButton
122 id: magiclevel
123 SkillNameLabel
124 !text: tr('Magic Level')
125 SkillValueLabel
126 SkillPercentPanel
127 background-color: red
128
129 SkillButton
130 id: skillId0
131 SkillNameLabel
132 !text: tr('Fist Fighting')
133 SkillValueLabel
134 SkillPercentPanel
135
136 SkillButton
137 id: skillId1
138 SkillNameLabel
139 !text: tr('Club Fighting')
140 SkillValueLabel
141 SkillPercentPanel
142
143 SkillButton
144 id: skillId2
145 SkillNameLabel
146 !text: tr('Sword Fighting')
147 SkillValueLabel
148 SkillPercentPanel
149
150 SkillButton
151 id: skillId3
152 SkillNameLabel
153 !text: tr('Axe Fighting')
154 SkillValueLabel
155 SkillPercentPanel
156
157 SkillButton
158 id: skillId4
159 SkillNameLabel
160 !text: tr('Distance Fighting')
161 SkillValueLabel
162 SkillPercentPanel
163
164 SkillButton
165 id: skillId5
166 SkillNameLabel
167 !text: tr('Shielding')
168 SkillValueLabel
169 SkillPercentPanel
170
171 SkillButton
172 id: skillId6
173 SkillNameLabel
174 !text: tr('Fishing')
175 SkillValueLabel
176 SkillPercentPanel
177
178 SmallSkillButton
179 id: skillId7
180 SkillNameLabel
181 !text: tr('Critical Hit Chance')
182 SkillValueLabel
183
184 SmallSkillButton
185 id: skillId8
186 SkillNameLabel
187 !text: tr('Critical Hit Damage')
188 SkillValueLabel
189
190 SmallSkillButton
191 id: skillId9
192 SkillNameLabel
193 !text: tr('Life Leech Chance')
194 SkillValueLabel
195
196 SmallSkillButton
197 id: skillId10
198 SkillNameLabel
199 !text: tr('Life Leech Amount')
200 SkillValueLabel
201
202 SmallSkillButton
203 id: skillId11
204 SkillNameLabel
205 !text: tr('Mana Leech Chance')
206 SkillValueLabel
207
208 SmallSkillButton
209 id: skillId12
210 SkillNameLabel
211 !text: tr('Mana Leech Amount')
212 SkillValueLabel
213
Top