[wesnoth-commits] [wesnoth/wesnoth] f016ac: Lua: Flip functions moved to the interface module, ...

Celtic Minstrel noreply at github.com
Sat Nov 16 18:11:56 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: f016ac7183739aa4798be94aa4364034b3079f3f
      https://github.com/wesnoth/wesnoth/commit/f016ac7183739aa4798be94aa4364034b3079f3f
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2019-11-16 (Sat, 16 Nov 2019)

  Changed paths:
    M changelog.md
    M data/lua/core.lua
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Lua: Flip functions moved to the interface module, as well as the theme_items table

This means that they are now added to the interface  module by default in C++, and only duplicated to the Wesnoth module in Lua.

Some additional functions were moved:
- wesnoth.scroll -> wesnoth.interface.scroll
- wesnoth.zoom -> wesnoth.interface.zoom
- wesnoth.get_mouseover_tile -> wesnoth.interface.get_hovered_hex
- wesnoth.color_adjust -> wesnoth.interface.color_adjust
- wesnoth.set_menu_item -> wesnoth.interface.set_menu_item
- wesnoth.clear_menu_item -> wesnoth.interface.clear_menu_item

Added wesnoth.units.get_hovered as an alias of wesnoth.interface.get_displayed_unit


  Commit: 0ee05637d907cbcda03a32046cf1c3f22d8caec8
      https://github.com/wesnoth/wesnoth/commit/0ee05637d907cbcda03a32046cf1c3f22d8caec8
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2019-11-16 (Sat, 16 Nov 2019)

  Changed paths:
    M data/campaigns/Dead_Water/_main.cfg
    M data/campaigns/Descent_Into_Darkness/lua/skip_animations.lua
    M data/campaigns/Under_the_Burning_Suns/lua/theme.lua
    M data/campaigns/Under_the_Burning_Suns/utils/garak-abilities.cfg
    M data/lua/feeding.lua
    M data/lua/wml-tags.lua
    M data/lua/wml/animate_unit.lua
    M data/lua/wml/harm_unit.lua
    M data/lua/wml/items.lua
    M data/lua/wml/kill.lua
    M data/lua/wml/message.lua
    M data/lua/wml/object.lua
    M data/scenario-test.cfg
    M simulate-lobby-activity.lua
    M src/gui/dialogs/lua_interpreter.cpp
    M src/synced_context.hpp

  Log Message:
  -----------
  Lua: Replace uses of deprecated (moved) interface functions


  Commit: 498a3e98c406208d3724f421d7c0dd22b3a0fdad
      https://github.com/wesnoth/wesnoth/commit/498a3e98c406208d3724f421d7c0dd22b3a0fdad
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2019-11-16 (Sat, 16 Nov 2019)

  Changed paths:
    M data/lua/core.lua
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Lua: Flip functions moved to the gui module

This means that they are now added to the gui module by default in C++, and only duplicated to the Wesnoth module in Lua.


  Commit: 3cadac11241bb81c1624948cd7bd73ca02f93a57
      https://github.com/wesnoth/wesnoth/commit/3cadac11241bb81c1624948cd7bd73ca02f93a57
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2019-11-16 (Sat, 16 Nov 2019)

  Changed paths:
    M data/campaigns/Secrets_of_the_Ancients/utils/zombie_recruit_dialog.lua

  Log Message:
  -----------
  Replace a use of deprecated gui functions


  Commit: 24b11221cfacea87f832831d1a69a04f746c96a0
      https://github.com/wesnoth/wesnoth/commit/24b11221cfacea87f832831d1a69a04f746c96a0
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2019-11-16 (Sat, 16 Nov 2019)

  Changed paths:
    M data/ai/micro_ais/cas/ca_forest_animals_move.lua
    M data/ai/micro_ais/cas/ca_forest_animals_new_rabbit.lua
    M data/ai/micro_ais/engines/priority_target_engine.lua
    M data/campaigns/Eastern_Invasion/lua/bandits.lua
    M data/campaigns/tutorial/scenarios/01_Tutorial_part_1.cfg
    M data/lua/wml-flow.lua
    M data/lua/wml-utils.lua
    M data/lua/wml/set_variable.lua
    M data/test/scenarios/ai/_main.cfg

  Log Message:
  -----------
  Use wml.array_variables instead of wml.array_access.get/set


  Commit: 597ed24170f4cbe47d68358e478cc65066bebbcd
      https://github.com/wesnoth/wesnoth/commit/597ed24170f4cbe47d68358e478cc65066bebbcd
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2019-11-16 (Sat, 16 Nov 2019)

  Changed paths:
    M data/lua/helper.lua

  Log Message:
  -----------
  Remove the helper.deprecate function, which isn't used anywhere


Compare: https://github.com/wesnoth/wesnoth/compare/abe117b08ff2...597ed24170f4



More information about the Commits mailing list