wesnoth.show_message_dialog: Don't expose has_input flag to Lua
Adjustment of PR 841 (as PR #843)
This commit is contained in:
parent
1baaaa4bbd
commit
36ab1f9a5c
2 changed files with 1 additions and 2 deletions
|
@ -230,7 +230,6 @@ local function message_user_choice(cfg, speaker, options, text_input)
|
|||
label = text_input.label or "",
|
||||
text = text_input.text or "",
|
||||
max_length = input_max_size,
|
||||
text_input_was_specified = "yes",
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
@ -280,7 +280,7 @@ int show_message_dialog(lua_State *L, CVideo & video)
|
|||
input.caption = txt_cfg["label"].str();
|
||||
input.text = txt_cfg["text"].str();
|
||||
input.maximum_length = txt_cfg["max_length"].to_int(256);
|
||||
input.text_input_was_specified = txt_cfg["text_input_was_specified"].to_bool(false);
|
||||
input.text_input_was_specified = has_input;
|
||||
|
||||
gui2::twml_message_options options;
|
||||
if (!lua_isnoneornil(L, 2)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue