-
Notifications
You must be signed in to change notification settings - Fork 1
/
bot.otui
39 lines (31 loc) · 862 Bytes
/
bot.otui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
BotOptionLineEdit < TextEdit
@onTextChange: Events.changeOption(self:getId(), self:getText())
BotOptionCheckBox < CheckBox
@onCheckChange: Events.changeOption(self:getId(), self:isChecked())
BotOptionTextList < TextList
@onCheckChange: Events.changeOption(self:getId(), self:isChecked())
MainWindow
id: botWindow
!text: tr('Kilouco\'s Bot')
size: 300 500
@onEnter: Bot.hide()
@onEscape: Bot.hide()
&save: true
TabBar
id: botTabBar
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
Panel
id: botTabContent
anchors.top: botTabBar.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
margin-top: 10
Button
text: Hide
width: 64
anchors.right: parent.right
anchors.bottom: parent.bottom
@onClick: Bot.hide()