Lua API: Add read-write support to wesnoth.sides[n].hidden
This commit is contained in:
parent
b73c9092ca
commit
89a881778a
2 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,7 @@ Version 1.11.7+dev:
|
|||
* Lua API:
|
||||
* Added flag, flag_icon, and village_support fields to wesnoth.sides table
|
||||
elements.
|
||||
* Made wesnoth.sides[n].hidden a read-write field.
|
||||
* Multiplayer:
|
||||
* Unit names and genders are synced in MP games.
|
||||
* Replays:
|
||||
|
|
|
@ -1212,6 +1212,7 @@ static int impl_side_set(lua_State *L)
|
|||
modify_int_attrib("recall_cost", t.set_recall_cost(value));
|
||||
modify_int_attrib("base_income", t.set_base_income(value));
|
||||
modify_bool_attrib("objectives_changed", t.set_objectives_changed(value));
|
||||
modify_bool_attrib("hidden", t.set_hidden(value));
|
||||
modify_bool_attrib("scroll_to_leader", t.set_scroll_to_leader(value));
|
||||
modify_tstring_attrib("user_team_name", t.change_team(t.team_name(), value));
|
||||
modify_string_attrib("team_name", t.change_team(value, t.user_team_name()));
|
||||
|
|
Loading…
Add table
Reference in a new issue