-
-
Notifications
You must be signed in to change notification settings - Fork 991
/
lua_interpreter.cfg
144 lines (130 loc) · 5.08 KB
/
lua_interpreter.cfg
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#textdomain wesnoth-lib
###
### Definition of the window to show the lua console.
###
[window]
id = "lua_interpreter"
description = "Lua interpreter console dialog."
[resolution]
definition = "default"
automatic_placement = "true"
vertical_placement = "center"
horizontal_placement = "center"
#maximum_width = 800
#maximum_height = 600
[tooltip]
id = "tooltip"
[/tooltip]
[helptip]
id = "tooltip"
[/helptip]
[grid]
[row] #header
grow_factor = 0
[column]
horizontal_grow = "true"
[grid]
[row]
[column]
grow_factor = 7
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "title"
label = _ "Lua Console"
[/label]
[/column]
[column]
grow_factor = 7
border = "all"
border_size = 5
horizontal_alignment = "right"
[label]
id = "kernel_type"
definition = "default"
[/label]
[/column]
[/row]
[/grid]
[/column]
[/row]
[row] #choice
grow_factor="7"
[column]
grow_factor = 7
border = "all"
border_size = 5
horizontal_grow = "true"
#
# HACK:
# In order to reserve a minimum screen space for the
# central widget and avoid sudden window size changes when
# switching pages or entering text in the search box, we
# use two spacer widgets within a subgrid to restrict this
# cell's minimum size. It's important to keep the spacers'
# dimensions within certain limits so as to not cause
# dialog-spanning scrollbars to appear on 800x480.
#
{GUI_FORCE_WIDGET_MINIMUM_SIZE 760 400 (
[scroll_label]
id = "msg"
definition = "verbatim"
[/scroll_label]
)}
[/column]
[/row]
[row]
grow_factor=0
[column]
grow_factor = 7
border = "all"
border_size = 5
horizontal_grow = "true"
[text_box]
id = "text_entry"
definition = "default"
history = "lua_text_entry"
[/text_box]
[/column]
[/row]
[row] #status
grow_factor = 0
[column]
horizontal_grow = "true"
[grid]
[row]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[button]
id = "copy"
definition = "action_copy"
label = _ "clipboard^Copy"
# FIXME: tooltips cause weird interactions with map
# labels while running a GUI2 dialog, so let's
# not use a tooltip yet.
#tooltip = _ "Copy this log to clipboard"
[/button]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "right"
[button]
id = "cancel"
definition = "default"
label = _ "Close"
[/button]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/resolution]
[/window]
# kate: indent-mode normal; encoding utf-8; space-indent on;