Rename the label field to message.
This commit is contained in:
parent
fe5d7d84c4
commit
8626347798
2 changed files with 11 additions and 12 deletions
|
@ -359,8 +359,8 @@
|
|||
border = "all"
|
||||
border_size = 5
|
||||
|
||||
[scroll_label] # NOTE maybe change the code to use message instead of label as id
|
||||
id = "label"
|
||||
[scroll_label]
|
||||
id = "message"
|
||||
definition = "wml_message"
|
||||
[/scroll_label]
|
||||
|
||||
|
@ -420,7 +420,6 @@
|
|||
|
||||
{_GUI_INPUT_LIST}
|
||||
|
||||
|
||||
[/column]
|
||||
|
||||
[/row]
|
||||
|
@ -566,8 +565,8 @@ if(gamemap_width - ({__GUI_IMAGE_WIDTH}) > 675
|
|||
border = "all"
|
||||
border_size = 5
|
||||
|
||||
[scroll_label] # NOTE maybe change the code to use message instead of label as id
|
||||
id = "label"
|
||||
[scroll_label]
|
||||
id = "message"
|
||||
definition = "default"
|
||||
[/scroll_label]
|
||||
|
||||
|
|
|
@ -64,14 +64,14 @@ void twml_message_::pre_show(CVideo& /*video*/, twindow& window)
|
|||
title->set_label(title_);
|
||||
title->set_markup_mode(tcontrol::WML_MARKUP);
|
||||
|
||||
tcontrol* label =
|
||||
dynamic_cast<tcontrol*>(window.find_widget("label", false));
|
||||
assert(label);
|
||||
label->set_label(message_);
|
||||
label->set_markup_mode(tcontrol::PANGO_MARKUP);
|
||||
// The label might not always be a scroll_label but the capturing
|
||||
tcontrol* message =
|
||||
dynamic_cast<tcontrol*>(window.find_widget("message", false));
|
||||
assert(message);
|
||||
message->set_label(message_);
|
||||
message->set_markup_mode(tcontrol::PANGO_MARKUP);
|
||||
// The message label might not always be a scroll_label but the capturing
|
||||
// shouldn't hurt.
|
||||
window.keyboard_capture(label);
|
||||
window.keyboard_capture(message);
|
||||
|
||||
// Find the input box related fields.
|
||||
tlabel* caption = dynamic_cast<tlabel*>(
|
||||
|
|
Loading…
Add table
Reference in a new issue