mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-09 20:26:24 +00:00
250 lines
4.8 KiB
INI
250 lines
4.8 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of the lobby screen
|
|
###
|
|
|
|
#define HORIZONTAL_BEGIN
|
|
[grid][row]
|
|
[column]
|
|
#enddef
|
|
#define HORIZONTAL_SEP
|
|
[/column]
|
|
[column]
|
|
#enddef
|
|
#define HORIZONTAL_END
|
|
[/column]
|
|
[/row][/grid]
|
|
#enddef
|
|
|
|
#define VERTICAL_BEGIN
|
|
[grid]
|
|
[row][column]
|
|
#enddef
|
|
#define VERTICAL_SEP
|
|
[/column][/row]
|
|
[row][column]
|
|
#enddef
|
|
#define VERTICAL_END
|
|
[/column][/row]
|
|
[/grid]
|
|
#enddef
|
|
|
|
#define GAMELISTBOX_HEADER_LABEL ID LABEL
|
|
[column]
|
|
grow_factor = 1
|
|
horizontal_grow = "true"
|
|
border = "all"
|
|
border_size = 5
|
|
[label]
|
|
id = {ID}
|
|
definition = "default"
|
|
label = {LABEL}
|
|
[/label]
|
|
[/column]
|
|
#enddef
|
|
|
|
#define GAMELISTBOX_BODY_LABEL ID LABEL
|
|
{GAMELISTBOX_HEADER_LABEL {ID} {LABEL}}
|
|
#enddef
|
|
|
|
#define GAMELISTBOX_BODY_BUTTON ID LABEL
|
|
[column]
|
|
grow_factor = 1
|
|
horizontal_grow = "true"
|
|
border = "all"
|
|
border_size = 5
|
|
[button]
|
|
id = {ID}
|
|
definition = "default"
|
|
label = {LABEL}
|
|
[/button]
|
|
[/column]
|
|
#enddef
|
|
|
|
#define GAMELISTBOX
|
|
[listbox]
|
|
id = "game_list"
|
|
definition = "default"
|
|
[header]
|
|
[row]
|
|
{GAMELISTBOX_HEADER_LABEL "name" "Name"}
|
|
{GAMELISTBOX_HEADER_LABEL "map" "Map"}
|
|
{GAMELISTBOX_HEADER_LABEL "era" "Era"}
|
|
{GAMELISTBOX_HEADER_LABEL "slots" "Slots"}
|
|
{GAMELISTBOX_HEADER_LABEL "options" "Options"}
|
|
{GAMELISTBOX_HEADER_LABEL "join" "Join"}
|
|
{GAMELISTBOX_HEADER_LABEL "observe" "Observe"}
|
|
[/row]
|
|
[/header]
|
|
[list_definition]
|
|
[row]
|
|
[column]
|
|
vertical_grow = "true"
|
|
horizontal_grow = "true"
|
|
[toggle_panel]
|
|
definition = "default"
|
|
[grid]
|
|
[row]
|
|
{GAMELISTBOX_BODY_LABEL "name" "Name"}
|
|
{GAMELISTBOX_BODY_LABEL "map" "Map"}
|
|
{GAMELISTBOX_BODY_LABEL "era" "Era"}
|
|
{GAMELISTBOX_BODY_LABEL "slots" "Slots"}
|
|
{GAMELISTBOX_BODY_LABEL "options" "Options"}
|
|
{GAMELISTBOX_BODY_BUTTON "join" "Join"}
|
|
{GAMELISTBOX_BODY_BUTTON "observe" "Observe"}
|
|
[/row]
|
|
[/grid]
|
|
[/toggle_panel]
|
|
[/column]
|
|
[/row]
|
|
[/list_definition]
|
|
[/listbox]
|
|
#enddef
|
|
|
|
#define PLAYERLISTBOX
|
|
[listbox]
|
|
id = "player_list"
|
|
definition = "default"
|
|
[header]
|
|
[row]
|
|
[column]
|
|
grow_factor = 1
|
|
horizontal_grow = "true"
|
|
border = "all"
|
|
border_size = 5
|
|
[label]
|
|
id = "player"
|
|
definition = "default"
|
|
label = "Player"
|
|
[/label]
|
|
[/column]
|
|
[/row]
|
|
[/header]
|
|
[list_definition]
|
|
[row]
|
|
[column]
|
|
vertical_grow = "true"
|
|
horizontal_grow = "true"
|
|
[toggle_panel]
|
|
definition = "default"
|
|
[grid]
|
|
[row]
|
|
[column]
|
|
grow_factor = 1
|
|
horizontal_grow = "true"
|
|
border = "all"
|
|
border_size = 5
|
|
[label]
|
|
id = "player"
|
|
definition = "default"
|
|
[/label]
|
|
[/column]
|
|
[/row]
|
|
[/grid]
|
|
[/toggle_panel]
|
|
[/column]
|
|
[/row]
|
|
[/list_definition]
|
|
[/listbox]
|
|
#enddef
|
|
|
|
[window]
|
|
id = "lobby_main"
|
|
description = "Lobby screen."
|
|
[resolution]
|
|
definition = "default"
|
|
automatic_placement = "false"
|
|
x = 0
|
|
y = 0
|
|
width = "(screen_width)"
|
|
height = "(screen_height)"
|
|
[grid]
|
|
[row]
|
|
grow_factor = 0
|
|
[column]
|
|
grow_factor = 1
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_alignment = "left"
|
|
[label]
|
|
definition = "title"
|
|
label = _ "Multiplayer Lobby"
|
|
[/label]
|
|
[/column]
|
|
[/row]
|
|
[row]
|
|
grow_factor = 0
|
|
[column]
|
|
grow_factor = 1
|
|
horizontal_grow = "true"
|
|
{HORIZONTAL_BEGIN}
|
|
{VERTICAL_BEGIN}
|
|
grow_factor = 1
|
|
{GAMELISTBOX}
|
|
{VERTICAL_SEP}
|
|
{VERTICAL_BEGIN}
|
|
[label]
|
|
id = "chat_log"
|
|
definition = "default"
|
|
label = ""
|
|
height = 200
|
|
[/label]
|
|
{VERTICAL_SEP}
|
|
{HORIZONTAL_BEGIN}
|
|
[text_box]
|
|
id = "chat_input"
|
|
definition = "default"
|
|
label = ""
|
|
[/text_box]
|
|
{HORIZONTAL_SEP}
|
|
[button]
|
|
id = "send_message"
|
|
definition = "default"
|
|
label = _ "Send"
|
|
[/button]
|
|
{HORIZONTAL_END}
|
|
{VERTICAL_END}
|
|
{VERTICAL_END}
|
|
{HORIZONTAL_SEP}
|
|
{VERTICAL_BEGIN}
|
|
[button]
|
|
id = "quit"
|
|
definition = "default"
|
|
label = _ "Quit"
|
|
[/button]
|
|
{VERTICAL_SEP}
|
|
[button]
|
|
id = "settings"
|
|
definition = "default"
|
|
label = _ "Settings"
|
|
[/button]
|
|
{VERTICAL_SEP}
|
|
[button]
|
|
id = "refresh"
|
|
definition = "default"
|
|
label = _ "Refresh"
|
|
[/button]
|
|
{VERTICAL_SEP}
|
|
[button]
|
|
id = "create"
|
|
definition = "default"
|
|
label = _ "Create Game"
|
|
[/button]
|
|
{VERTICAL_SEP}
|
|
[button]
|
|
id = "show_help"
|
|
definition = "default"
|
|
label = _ "Help"
|
|
[/button]
|
|
{VERTICAL_SEP}
|
|
{PLAYERLISTBOX}
|
|
{VERTICAL_END}
|
|
{HORIZONTAL_END}
|
|
[/column]
|
|
[/row]
|
|
[/grid]
|
|
[/resolution]
|
|
[/window]
|
|
|
|
#undef GAMELISTBOX
|
|
#undef PLAYERLISTBOX |