[Commits] [wesnoth/wesnoth] 8459bf: add lua function "fire_wml_menu_item" and unit tes...

GitHub noreply at github.com
Wed Jan 7 19:03:41 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 8459bf7104e6f13bdbea073879bf07862d843b26
      https://github.com/wesnoth/wesnoth/commit/8459bf7104e6f13bdbea073879bf07862d843b26
  Author: Chris Beck <render787 at gmail.com>
  Date:   2015-01-06 (Tue, 06 Jan 2015)

  Changed paths:
    A data/test/scenarios/test_menu_items.cfg
    M src/game_events/menu_item.cpp
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp
    M wml_test_schedule

  Log Message:
  -----------
  add lua function "fire_wml_menu_item" and unit tests for menu items

this commit also changed slightly the way that wml menu events
are synced. previously they were run via "run_in_synced_context",
now they are run via "run_in_synced_context_if_not_already", which
makes it safe to fire them from lua (a synced context).


  Commit: 2c6d4dacf72b24c118c4fdf05d0f89f0aa4fb327
      https://github.com/wesnoth/wesnoth/commit/2c6d4dacf72b24c118c4fdf05d0f89f0aa4fb327
  Author: Chris Beck <beck.ct at gmail.com>
  Date:   2015-01-07 (Wed, 07 Jan 2015)

  Changed paths:
    A data/test/scenarios/test_menu_items.cfg
    M src/game_events/menu_item.cpp
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp
    M wml_test_schedule

  Log Message:
  -----------
  Merge pull request #360 from cbeck88/menu_item_tests

add lua function "fire_wml_menu_item" and unit tests for menu items


Compare: https://github.com/wesnoth/wesnoth/compare/a3e2b0e5e49a...2c6d4dacf72b


More information about the Commits mailing list