Refactor chat area in new lobby.
This commit is contained in:
parent
ded83f7642
commit
a2e9242556
1 changed files with 46 additions and 38 deletions
|
@ -272,7 +272,6 @@
|
|||
[list_definition]
|
||||
[row]
|
||||
[column]
|
||||
vertical_grow = "true"
|
||||
horizontal_grow = "true"
|
||||
[toggle_panel]
|
||||
definition = "default"
|
||||
|
@ -393,6 +392,48 @@
|
|||
{HORIZONTAL_END}
|
||||
#enddef
|
||||
|
||||
#define _GUI_CHAT_AREA
|
||||
{HORIZONTAL_BEGIN}
|
||||
vertical_alignment = "top"
|
||||
{ROOMLISTBOX}
|
||||
{HORIZONTAL_SEP}
|
||||
grow_factor = 1
|
||||
horizontal_alignment = "left"
|
||||
{VERTICAL_BEGIN}
|
||||
horizontal_alignment = "left"
|
||||
{CHATLOG}
|
||||
{VERTICAL_SEP}
|
||||
horizontal_alignment = "left"
|
||||
{HORIZONTAL_BEGIN}
|
||||
[text_box]
|
||||
id = "chat_input"
|
||||
definition = "default"
|
||||
history = "mp_chat_input_history"
|
||||
label = ""
|
||||
[/text_box]
|
||||
{HORIZONTAL_SEP}
|
||||
[button]
|
||||
id = "send_message"
|
||||
definition = "default"
|
||||
label = _ "Send"
|
||||
[/button]
|
||||
{HORIZONTAL_SEP}
|
||||
[button]
|
||||
id = "next_window"
|
||||
definition = "default"
|
||||
label = _ "Next"
|
||||
[/button]
|
||||
{HORIZONTAL_SEP}
|
||||
[button]
|
||||
id = "close_window"
|
||||
definition = "default"
|
||||
label = _ "Close"
|
||||
[/button]
|
||||
{HORIZONTAL_END}
|
||||
{VERTICAL_END}
|
||||
{HORIZONTAL_END}
|
||||
#enddef
|
||||
|
||||
#define _GUI_CONTROL_AREA
|
||||
{HORIZONTAL_BEGIN}
|
||||
[button]
|
||||
|
@ -494,11 +535,8 @@
|
|||
[/row]
|
||||
[row]
|
||||
[column]
|
||||
vertical_grow = "true"
|
||||
horizontal_grow = "true"
|
||||
[spacer]
|
||||
id = "chat_area"
|
||||
[/spacer]
|
||||
{_GUI_CHAT_AREA}
|
||||
[/column]
|
||||
[/row]
|
||||
[/grid]
|
||||
|
@ -530,39 +568,8 @@
|
|||
{HORIZONTAL_END}
|
||||
{VERTICAL_SEP}
|
||||
{HORIZONTAL_BEGIN}
|
||||
vertical_alignment = "top"
|
||||
{ROOMLISTBOX}
|
||||
{HORIZONTAL_SEP}
|
||||
{VERTICAL_BEGIN}
|
||||
{CHATLOG}
|
||||
{VERTICAL_SEP}
|
||||
{HORIZONTAL_BEGIN}
|
||||
[text_box]
|
||||
id = "chat_input"
|
||||
definition = "default"
|
||||
history = "mp_chat_input_history"
|
||||
label = ""
|
||||
[/text_box]
|
||||
{HORIZONTAL_SEP}
|
||||
[button]
|
||||
id = "send_message"
|
||||
definition = "default"
|
||||
label = _ "Send"
|
||||
[/button]
|
||||
{HORIZONTAL_SEP}
|
||||
[button]
|
||||
id = "next_window"
|
||||
definition = "default"
|
||||
label = _ "Next"
|
||||
[/button]
|
||||
{HORIZONTAL_SEP}
|
||||
[button]
|
||||
id = "close_window"
|
||||
definition = "default"
|
||||
label = _ "Close"
|
||||
[/button]
|
||||
{HORIZONTAL_END}
|
||||
{VERTICAL_END}
|
||||
[spacer]
|
||||
[/spacer]
|
||||
{HORIZONTAL_END}
|
||||
{VERTICAL_END}
|
||||
{HORIZONTAL_SEP}
|
||||
|
@ -578,6 +585,7 @@
|
|||
[/window]
|
||||
|
||||
#undef _GUI_CONTROL_AREA
|
||||
#undef _GUI_CHAT_AREA
|
||||
#undef _GUI_FILTER_AREA
|
||||
#undef _GUI_TITLE
|
||||
#undef GAMELISTBOX
|
||||
|
|
Loading…
Add table
Reference in a new issue