communicationwindow.otui

main 259 lines · 5.2 KB Raw
Alex Alex Commit Client Upload Part 2 19/10/2026 00:06
1IgnoreListLabel < Label
2 font: verdana-11px-monochrome
3 background-color: alpha
4 text-offset: 2 0
5 focusable: true
6 phantom: false
7 color: #ffffff
8
9 $focus:
10 background-color: #ffffff22
11 color: #ffffff
12
13WhiteListLabel < Label
14 font: verdana-11px-monochrome
15 background-color: alpha
16 text-offset: 2 0
17 focusable: true
18 phantom: false
19 color: #ffffff
20
21 $focus:
22 background-color: #ffffff22
23 color: #ffffff
24
25MainWindow
26 id: communicationWindow
27 !text: tr('Ignore List')
28 size: 315 310
29 @onEscape: self:destroy()
30 background-color: #2e2e2e
31 border-width: 2
32 border-color: #1e1e1e
33 padding: 10
34
35 CheckBox
36 id: checkboxUseIgnoreList
37 !text: tr('Activate ignorelist')
38 anchors.left: parent.left
39 anchors.top: parent.top
40 width: 180
41 color: #ffffff
42
43 Label
44 !text: tr('Ignored Players:')
45 anchors.left: parent.left
46 anchors.top: prev.bottom
47 margin-top: 10
48 color: #ffffff
49
50 TextList
51 id: ignoreList
52 vertical-scrollbar: ignoreListScrollBar
53 anchors.left: parent.left
54 anchors.top: prev.bottom
55 height: 150
56 width: 230
57 margin-bottom: 10
58 margin-top: 3
59 padding: 1
60 focusable: false
61 background-color: #3e3e3e
62 border-width: 1
63 border-color: #1e1e1e
64
65 TextEdit
66 id: ignoreNameEdit
67 anchors.top: prev.bottom
68 anchors.left: parent.left
69 width: 110
70 margin-top: 5
71 background-color: #3e3e3e
72 border-width: 1
73 border-color: #1e1e1e
74 color: #ffffff
75
76 Button
77 id: buttonIgnoreAdd
78 !text: tr('Add')
79 width: 48
80 height: 20
81 margin-left: 5
82 anchors.top: prev.top
83 anchors.left: prev.right
84 background-color: #4e4e4e
85 border-width: 1
86 border-color: #1e1e1e
87 color: #ffffff
88
89 Button
90 id: buttonIgnoreRemove
91 !text: tr('Remove')
92 width: 64
93 height: 20
94 margin-left: 5
95 anchors.top: prev.top
96 anchors.left: prev.right
97 background-color: #4e4e4e
98 border-width: 1
99 border-color: #1e1e1e
100 color: #ffffff
101
102 Label
103 !text: tr('Global ignore settings')
104 anchors.left: parent.left
105 anchors.top: prev.bottom
106 margin-top: 20
107 color: #ffffff
108
109 CheckBox
110 id: checkboxIgnorePrivateMessages
111 !text: tr('Ignore Private Messages')
112 anchors.left: parent.left
113 anchors.top: prev.bottom
114 width: 180
115 margin-top: 5
116 color: #ffffff
117
118 CheckBox
119 id: checkboxIgnoreYelling
120 !text: tr('Ignore Yelling')
121 anchors.left: parent.left
122 anchors.top: prev.bottom
123 width: 180
124 margin-top: 5
125 color: #ffffff
126
127 CheckBox
128 id: checkboxUseWhiteList
129 !text: tr('Activate whitelist')
130 anchors.top: parent.top
131 anchors.left: ignoreList.right
132 margin-left: 20
133 width: 180
134 color: #ffffff
135
136 Label
137 !text: tr('Allowed Players:')
138 anchors.top: prev.bottom
139 anchors.left: prev.left
140 margin-top: 10
141 color: #ffffff
142
143 TextList
144 id: whiteList
145 vertical-scrollbar: whiteListScrollBar
146 anchors.left: prev.left
147 anchors.top: prev.bottom
148 height: 150
149 width: 230
150 margin-bottom: 10
151 margin-top: 3
152 padding: 1
153 focusable: false
154 background-color: #3e3e3e
155 border-width: 1
156 border-color: #1e1e1e
157
158 TextEdit
159 id: whitelistNameEdit
160 anchors.top: prev.bottom
161 anchors.left: prev.left
162 width: 110
163 margin-top: 5
164 background-color: #3e3e3e
165 border-width: 1
166 border-color: #1e1e1e
167 color: #ffffff
168
169 Button
170 id: buttonWhitelistAdd
171 !text: tr('Add')
172 width: 48
173 height: 20
174 margin-left: 5
175 anchors.top: prev.top
176 anchors.left: prev.right
177 background-color: #4e4e4e
178 border-width: 1
179 border-color: #1e1e1e
180 color: #ffffff
181
182 Button
183 id: buttonWhitelistRemove
184 !text: tr('Remove')
185 width: 64
186 height: 20
187 margin-left: 5
188 anchors.top: prev.top
189 anchors.left: prev.right
190 background-color: #4e4e4e
191 border-width: 1
192 border-color: #1e1e1e
193 color: #ffffff
194
195 Label
196 !text: tr('Global whitelist settings')
197 anchors.left: whiteList.left
198 anchors.top: prev.bottom
199 margin-top: 20
200 color: #ffffff
201
202 CheckBox
203 id: checkboxAllowVIPs
204 !text: tr('Allow VIPs to message you')
205 anchors.left: prev.left
206 anchors.top: prev.bottom
207 width: 180
208 margin-top: 5
209 color: #ffffff
210
211 Panel
212 anchors.bottom: parent.bottom
213 anchors.left: parent.left
214 anchors.right: parent.right
215 height: 30
216
217 Panel
218 size: 160 30
219 anchors.horizontalCenter: parent.horizontalCenter
220
221 Button
222 id: buttonSave
223 !text: tr('Save')
224 width: 75
225 anchors.top: parent.top
226 anchors.left: parent.left
227 background-color: #4e4e4e
228 border-width: 1
229 border-color: #1e1e1e
230 color: #ffffff
231
232 Button
233 id: buttonCancel
234 !text: tr('Cancel')
235 width: 75
236 anchors.top: parent.top
237 anchors.left: prev.right
238 margin-left: 10
239 background-color: #4e4e4e
240 border-width: 1
241 border-color: #1e1e1e
242 color: #ffffff
243
244 VerticalScrollBar
245 id: ignoreListScrollBar
246 anchors.top: ignoreList.top
247 anchors.bottom: ignoreList.bottom
248 anchors.right: ignoreList.right
249 step: 14
250 pixels-scroll: true
251
252 VerticalScrollBar
253 id: whiteListScrollBar
254 anchors.top: whiteList.top
255 anchors.bottom: whiteList.bottom
256 anchors.right: whiteList.right
257 step: 14
258 pixels-scroll: true
259
Top