tpreferences: cleaned up layout of Hotkeys panel
This commit is contained in:
parent
cff3f4afd9
commit
65fe7ddea6
2 changed files with 201 additions and 177 deletions
|
@ -107,7 +107,7 @@
|
|||
horizontal_placement = "center"
|
||||
|
||||
maximum_width = 900
|
||||
maximum_height = 510
|
||||
maximum_height = 590
|
||||
|
||||
[linked_group]
|
||||
id = "page_icon"
|
||||
|
|
|
@ -4,193 +4,217 @@
|
|||
###
|
||||
|
||||
[layer]
|
||||
|
||||
[row]
|
||||
grow_factor = 1
|
||||
|
||||
[column]
|
||||
horizontal_grow = "true"
|
||||
vertical_alignment = "top"
|
||||
border = "all"
|
||||
border_size = 5
|
||||
|
||||
[listbox]
|
||||
id = "list_hotkeys"
|
||||
definition = "default"
|
||||
[header]
|
||||
[row]
|
||||
## The Icon column
|
||||
[column]
|
||||
grow_factor = 0
|
||||
horizontal_grow = true
|
||||
[spacer]
|
||||
linked_group = "hotkeys_col_icon"
|
||||
[/spacer]
|
||||
[/column]
|
||||
|
||||
## The description column
|
||||
[column]
|
||||
grow_factor = 1
|
||||
horizontal_grow = "true"
|
||||
[toggle_button]
|
||||
id = "sort_0"
|
||||
definition = "listbox_header"
|
||||
linked_group = "hotkeys_col_desc"
|
||||
label = _ "Action"
|
||||
[/toggle_button]
|
||||
[/column]
|
||||
|
||||
## The hotkey column
|
||||
[column]
|
||||
grow_factor = 1
|
||||
horizontal_grow = "true"
|
||||
[toggle_button]
|
||||
id = "sort_1"
|
||||
definition = "listbox_header"
|
||||
linked_group = "hotkeys_col_hotkey"
|
||||
label = _ "Hotkey"
|
||||
[/toggle_button]
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
grow_factor = 1
|
||||
horizontal_grow = "true"
|
||||
[toggle_button]
|
||||
id = "sort_2"
|
||||
definition = "listbox_header"
|
||||
linked_group = "hotkeys_col_type"
|
||||
label = _ "G"
|
||||
tooltip = _ "Available in game"
|
||||
[/toggle_button]
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
grow_factor = 1
|
||||
horizontal_grow = "true"
|
||||
[toggle_button]
|
||||
id = "sort_3"
|
||||
definition = "listbox_header"
|
||||
linked_group = "hotkeys_col_type"
|
||||
label = _ "E"
|
||||
tooltip = _ "Available in editor"
|
||||
[/toggle_button]
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
grow_factor = 1
|
||||
horizontal_grow = "true"
|
||||
[toggle_button]
|
||||
id = "sort_4"
|
||||
definition = "listbox_header"
|
||||
linked_group = "hotkeys_col_type"
|
||||
label = _ "T"
|
||||
tooltip = _ "Available in titlescreen"
|
||||
[/toggle_button]
|
||||
[/column]
|
||||
[/row]
|
||||
[/header]
|
||||
|
||||
[list_definition]
|
||||
[row]
|
||||
[column]
|
||||
horizontal_grow = true
|
||||
[toggle_panel]
|
||||
definition = "default"
|
||||
[grid]
|
||||
[row]
|
||||
[column]
|
||||
grow_factor = 0
|
||||
horizontal_grow = true
|
||||
[spacer]
|
||||
id = "img_icon"
|
||||
linked_group = "hotkeys_col_icon"
|
||||
[/spacer]
|
||||
[/column]
|
||||
|
||||
## The description column
|
||||
[column]
|
||||
grow_factor = 1
|
||||
horizontal_grow = true
|
||||
border = "all"
|
||||
border_size = 5
|
||||
## work around 'empty lines have height 0'
|
||||
vertical_grow = true
|
||||
[label]
|
||||
id = "lbl_desc"
|
||||
definition = "gold_small"
|
||||
linked_group = "hotkeys_col_desc"
|
||||
characters_per_line = 30
|
||||
[/label]
|
||||
[/column]
|
||||
|
||||
## The hotkey column
|
||||
[column]
|
||||
grow_factor = 1
|
||||
horizontal_grow = true
|
||||
border = "all"
|
||||
border_size = 5
|
||||
## work around 'empty lines have height 0'
|
||||
vertical_grow = true
|
||||
[label]
|
||||
id = "lbl_hotkey"
|
||||
definition = "default"
|
||||
linked_group = "hotkeys_col_hotkey"
|
||||
[/label]
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
[label]
|
||||
id = "lbl_is_game"
|
||||
definition = "default"
|
||||
linked_group = "hotkeys_col_type"
|
||||
[/label]
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
[label]
|
||||
id = "lbl_is_editor"
|
||||
definition = "default"
|
||||
linked_group = "hotkeys_col_type"
|
||||
[/label]
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
[label]
|
||||
id = "lbl_is_titlescreen"
|
||||
definition = "default"
|
||||
linked_group = "hotkeys_col_type"
|
||||
[/label]
|
||||
[/column]
|
||||
[/row]
|
||||
[/grid]
|
||||
[/toggle_panel]
|
||||
[/column]
|
||||
[/row]
|
||||
[/list_definition]
|
||||
[/listbox]
|
||||
[/column]
|
||||
[/row]
|
||||
|
||||
[row]
|
||||
grow_factor = 0
|
||||
[column]
|
||||
horizontal_grow = true
|
||||
vertical_grow = true
|
||||
|
||||
vertical_alignment = "top"
|
||||
[grid]
|
||||
[row]
|
||||
grow_factor = 1
|
||||
[column]
|
||||
horizontal_grow = "true"
|
||||
vertical_alignment = "top"
|
||||
[listbox]
|
||||
id = "list_hotkeys"
|
||||
definition = "default"
|
||||
[header]
|
||||
[row]
|
||||
## The Icon column
|
||||
[column]
|
||||
grow_factor = 0
|
||||
[spacer]
|
||||
linked_group = "hotkeys_col_icon"
|
||||
[/spacer]
|
||||
[/column]
|
||||
## The description column
|
||||
[column]
|
||||
grow_factor = 1
|
||||
horizontal_grow = "true"
|
||||
[toggle_button]
|
||||
id = "sort_0"
|
||||
definition = "listbox_header"
|
||||
linked_group = "hotkeys_col_desc"
|
||||
label = _ "Action"
|
||||
[/toggle_button]
|
||||
[/column]
|
||||
## The hotkey column
|
||||
[column]
|
||||
grow_factor = 1
|
||||
horizontal_grow = "true"
|
||||
[toggle_button]
|
||||
id = "sort_1"
|
||||
definition = "listbox_header"
|
||||
linked_group = "hotkeys_col_hotkey"
|
||||
label = _ "Hotkey"
|
||||
[/toggle_button]
|
||||
[/column]
|
||||
[column]
|
||||
grow_factor = 0
|
||||
horizontal_grow = "true"
|
||||
[toggle_button]
|
||||
id = "sort_2"
|
||||
definition = "listbox_header"
|
||||
linked_group = "hotkeys_col_type"
|
||||
label = _ "G"
|
||||
tooltip = _ "Available in game"
|
||||
[/toggle_button]
|
||||
[/column]
|
||||
[column]
|
||||
grow_factor = 0
|
||||
horizontal_grow = "true"
|
||||
[toggle_button]
|
||||
id = "sort_3"
|
||||
definition = "listbox_header"
|
||||
linked_group = "hotkeys_col_type"
|
||||
label = _ "E"
|
||||
tooltip = _ "Available in editor"
|
||||
[/toggle_button]
|
||||
[/column]
|
||||
[column]
|
||||
grow_factor = 0
|
||||
horizontal_grow = "true"
|
||||
[toggle_button]
|
||||
id = "sort_4"
|
||||
definition = "listbox_header"
|
||||
linked_group = "hotkeys_col_type"
|
||||
label = _ "T"
|
||||
tooltip = _ "Available in titlescreen"
|
||||
[/toggle_button]
|
||||
[/column]
|
||||
[/row]
|
||||
[/header]
|
||||
[list_definition]
|
||||
[row]
|
||||
[column]
|
||||
horizontal_grow = true
|
||||
[toggle_panel]
|
||||
definition = "default"
|
||||
[grid]
|
||||
[row]
|
||||
[column]
|
||||
grow_factor = 0
|
||||
[spacer]
|
||||
id = "img_icon"
|
||||
linked_group = "hotkeys_col_icon"
|
||||
[/spacer]
|
||||
[/column]
|
||||
## The description column
|
||||
[column]
|
||||
grow_factor = 1
|
||||
horizontal_grow = true
|
||||
## work around 'empty lines have height 0'
|
||||
vertical_grow = true
|
||||
[label]
|
||||
id = "lbl_desc"
|
||||
definition = "default"
|
||||
linked_group = "hotkeys_col_desc"
|
||||
characters_per_line = 30
|
||||
[/label]
|
||||
[/column]
|
||||
## The hotkey column
|
||||
[column]
|
||||
grow_factor = 1
|
||||
horizontal_grow = true
|
||||
## work around 'empty lines have height 0'
|
||||
vertical_grow = true
|
||||
[label]
|
||||
id = "lbl_hotkey"
|
||||
definition = "default"
|
||||
linked_group = "hotkeys_col_hotkey"
|
||||
[/label]
|
||||
[/column]
|
||||
[column]
|
||||
grow_factor = 0
|
||||
[label]
|
||||
id = "lbl_is_game"
|
||||
definition = "default"
|
||||
linked_group = "hotkeys_col_type"
|
||||
text_alignment = "center"
|
||||
[/label]
|
||||
[/column]
|
||||
[column]
|
||||
grow_factor = 0
|
||||
[label]
|
||||
id = "lbl_is_editor"
|
||||
definition = "default"
|
||||
linked_group = "hotkeys_col_type"
|
||||
text_alignment = "center"
|
||||
[/label]
|
||||
[/column]
|
||||
[column]
|
||||
grow_factor = 0
|
||||
[label]
|
||||
id = "lbl_is_titlescreen"
|
||||
definition = "default"
|
||||
linked_group = "hotkeys_col_type"
|
||||
text_alignment = "center"
|
||||
[/label]
|
||||
[/column]
|
||||
[/row]
|
||||
[/grid]
|
||||
[/toggle_panel]
|
||||
[/column]
|
||||
[/row]
|
||||
[/list_definition]
|
||||
[/listbox]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
[button]
|
||||
label = _"Add Hotkey"
|
||||
id = "btn_add_hotkey"
|
||||
[/button]
|
||||
[/column]
|
||||
[/row]
|
||||
[row]
|
||||
grow_factor = 0
|
||||
|
||||
[column]
|
||||
horizontal_grow = true
|
||||
vertical_alignment = "top"
|
||||
[grid]
|
||||
[row]
|
||||
[column]
|
||||
grow_factor = 0
|
||||
[button]
|
||||
label = _"Add hotkey"
|
||||
id = "btn_add_hotkey"
|
||||
[/button]
|
||||
[/column]
|
||||
[column]
|
||||
grow_factor = 0
|
||||
[button]
|
||||
label = _"Clear hotkey"
|
||||
id = "btn_clear_hotkey"
|
||||
[/button]
|
||||
[/column]
|
||||
[column]
|
||||
grow_factor = 1
|
||||
[spacer]
|
||||
[/spacer]
|
||||
[/column]
|
||||
[/row]
|
||||
[/grid]
|
||||
grow_factor = 0
|
||||
border = "all"
|
||||
border_size = 5
|
||||
[button]
|
||||
label = _"Clear Hotkey"
|
||||
id = "btn_clear_hotkey"
|
||||
[/button]
|
||||
[/column]
|
||||
|
||||
[column]
|
||||
grow_factor = 1
|
||||
[spacer]
|
||||
[/spacer]
|
||||
[/column]
|
||||
[/row]
|
||||
[/grid]
|
||||
[/column]
|
||||
[/row]
|
||||
|
||||
[/layer]
|
Loading…
Add table
Reference in a new issue