audio.otui

main 87 lines · 2 KB Raw
Alex Alex Commit Client Upload Part 2 19/10/2026 00:06
1OptionPanel
2 OptionCheckBox
3 id: enableAudio
4 margin: 0 0 0 8
5
6 UILabel
7 id: label
8 anchors.left: parent.left
9 anchors.verticalCenter: parent.verticalCenter
10 size: 275 30
11 !text: tr('Enable audio')
12 text-offset: 0 5
13 font: poppins-14-px
14
15 OptionCheckBox
16 id: enableMusicSound
17 margin: 27 0 0 8
18
19 UILabel
20 id: label
21 anchors.left: parent.left
22 anchors.verticalCenter: parent.verticalCenter
23 size: 275 30
24 !text: tr('Enable music sound')
25 text-offset: 0 5
26 font: poppins-14-px
27
28 UIWidget
29 id: musicSoundVolumeBG
30 margin: 27 0 0 2
31 height: 15
32 font: poppins-14-px
33 text: Music volume
34 text-align: left
35 text-offset: 2 -2
36
37 OptionScrollbar
38 id: musicSoundVolume
39 anchors.verticalCenter: parent.verticalCenter
40 anchors.horizontalCenter: parent.horizontalCenter
41 margin: 0 0 0 105
42 width: 220
43 minimum: 0
44 maximum: 100
45
46 Label
47 id: musicSoundVolumeLabelBG
48 anchors.top: parent.top
49 anchors.right: parent.right
50 width: 35
51 margin: 0 29 0 0
52 font: poppins-14-px
53 color: #77f558
54 @onSetup: |
55 local value = modules.client_options.getOption('musicSoundVolume')
56 self:setText(tr('%d', value))
57
58 UIWidget
59 id: botSoundVolumeBG
60 margin: 27 0 0 2
61 height: 15
62 font: poppins-14-px
63 text: Bot sound volume
64 text-align: left
65 text-offset: 2 -2
66
67 OptionScrollbar
68 id: botSoundVolume
69 anchors.verticalCenter: parent.verticalCenter
70 anchors.horizontalCenter: parent.horizontalCenter
71 margin: 0 0 0 105
72 width: 220
73 minimum: 0
74 maximum: 100
75
76 Label
77 id: botSoundVolumeLabelBG
78 anchors.top: parent.top
79 anchors.right: parent.right
80 width: 35
81 margin: 0 29 0 0
82 font: poppins-14-px
83 color: #77f558
84 @onSetup: |
85 local value = modules.client_options.getOption('botSoundVolume')
86 self:setText(tr('%d', value))
87
Top