basic.otui

main 89 lines · 1.7 KB Raw
Alex Alex Commit Client Upload Part 2 19/10/2026 00:06
1BotButton < Button
2 height: 17
3 margin-top: 2
4
5BotSwitch < Button
6 margin-top: 2
7 height: 17
8 image-color: green
9 $!on:
10 image-color: red
11
12SmallBotSwitch < Button
13 margin-top: 2
14 height: 15
15 image-color: green
16 $!on:
17 image-color: red
18
19BotLabel < Label
20 margin-top: 2
21 height: 15
22 text-auto-resize: true
23 text-align: center
24 text-wrap: true
25
26BotItem < Item
27 virtual: true
28 &selectable: true
29 &editable: true
30
31BotTextEdit < TextEdit
32 @onClick: modules.client_textedit.show(self)
33 text-align: center
34 multiline: false
35 focusable: false
36 height: 20
37
38BotSeparator < HorizontalSeparator
39 margin-top: 5
40 margin-bottom: 3
41
42BotSmallScrollBar < SmallScrollBar
43
44BotPanel < Panel
45 margin-top: 1
46 ScrollablePanel
47 id: content
48 anchors.fill: parent
49 margin-right: 8
50 margin-left: 1
51 margin-bottom: 5
52 vertical-scrollbar: botPanelScroll
53 layout:
54 type: verticalBox
55 $mobile:
56 margin-right: 16
57
58 BotSmallScrollBar
59 id: botPanelScroll
60 anchors.top: parent.top
61 anchors.bottom: parent.bottom
62 anchors.right: parent.right
63
64CaveBotLabel < Label
65 background-color: alpha
66 text-offset: 2 0
67 focusable: true
68
69 $focus:
70 background-color: #00000055
71
72SlotComboBoxPopupMenu < ComboBoxPopupMenu
73SlotComboBoxPopupMenuButton < ComboBoxPopupMenuButton
74SlotComboBox < ComboBox
75 @onSetup: |
76 self:addOption("Head")
77 self:addOption("Neck")
78 self:addOption("Back")
79 self:addOption("Body")
80 self:addOption("Right")
81 self:addOption("Left")
82 self:addOption("Leg")
83 self:addOption("Feet")
84 self:addOption("Finger")
85 self:addOption("Ammo")
86 self:addOption("Purse")
87
88
89
Top