[Commits] [wesnoth/wesnoth] 339587: Properly port [kill] to Lua

GitHub noreply at github.com
Thu Apr 27 21:49:33 UTC 2017


  Branch: refs/heads/wml_tag_porting
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 339587ee2b644ad700851379835700de480e18b6
      https://github.com/wesnoth/wesnoth/commit/339587ee2b644ad700851379835700de480e18b6
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-04-27 (Thu, 27 Apr 2017)

  Changed paths:
    M changelog
    M data/lua/wml-tags.lua
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp

  Log Message:
  -----------
  Properly port [kill] to Lua


  Commit: 0a591cd4242e148f68bf6e734ad834b84e0f3ad9
      https://github.com/wesnoth/wesnoth/commit/0a591cd4242e148f68bf6e734ad834b84e0f3ad9
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-04-27 (Thu, 27 Apr 2017)

  Changed paths:
    M changelog
    M data/lua/wml-tags.lua
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_team.cpp

  Log Message:
  -----------
  Properly port [scroll] to Lua


  Commit: 6906ced4e7321758c219cca50faaa2fd6bc38b13
      https://github.com/wesnoth/wesnoth/commit/6906ced4e7321758c219cca50faaa2fd6bc38b13
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-04-27 (Thu, 27 Apr 2017)

  Changed paths:
    M changelog
    M data/lua/backwards-compatibility.lua
    M data/lua/wml-tags.lua
    M data/lua/wml-utils.lua
    M projectfiles/VC12/wesnoth.vcxproj
    M projectfiles/VC12/wesnoth.vcxproj.filters
    M source_lists/wesnoth
    M src/playsingle_controller.cpp
    M src/scripting/game_lua_kernel.cpp
    A src/scripting/lua_audio.cpp
    A src/scripting/lua_audio.hpp
    M src/scripting/lua_team.cpp
    M src/sound.cpp
    M src/sound.hpp
    M src/sound_music_track.hpp

  Log Message:
  -----------
  Properly port [music] to Lua


  Commit: 5b4dbe1c61086af398eb1e20f66a082c7b702614
      https://github.com/wesnoth/wesnoth/commit/5b4dbe1c61086af398eb1e20f66a082c7b702614
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-04-27 (Thu, 27 Apr 2017)

  Changed paths:
    M changelog
    M data/lua/wml-tags.lua
    M src/game_events/action_wml.cpp
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_audio.cpp
    M src/sound.cpp
    M src/sound.hpp

  Log Message:
  -----------
  Port [volume] to Lua

This also fixes [volume] considering 100% to be an invalid volume.


  Commit: eb0947c863b08a33667f204f0885b4818101988f
      https://github.com/wesnoth/wesnoth/commit/eb0947c863b08a33667f204f0885b4818101988f
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-04-27 (Thu, 27 Apr 2017)

  Changed paths:
    M data/lua/wml-utils.lua
    M src/actions/undo_action.cpp
    M src/game_events/handlers.cpp
    M src/scripting/lua_audio.cpp
    M src/sound.cpp
    M src/sound.hpp

  Log Message:
  -----------
  Some improvements to the new Lua music API
- Allow removing a track by index and fixup the "set track" interface
- Commit music changes only after event completes, not after any control=flow tag is executed
- Allow inserting a track into the middle of the playlist
- Allow assigning a config to an existing track to overwrite it
- Use std::find when checking for duplicate tracks


  Commit: c04456dec151d907de58493b9abb0494c8fc91be
      https://github.com/wesnoth/wesnoth/commit/c04456dec151d907de58493b9abb0494c8fc91be
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-04-27 (Thu, 27 Apr 2017)

  Changed paths:
    M src/scripting/lua_audio.cpp
    M src/sound.cpp
    M src/sound_music_track.hpp

  Log Message:
  -----------
  Store music tracks as shared_ptrs


  Commit: c892b602573564c397d6618f3c2f69b509e47d77
      https://github.com/wesnoth/wesnoth/commit/c892b602573564c397d6618f3c2f69b509e47d77
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2017-04-27 (Thu, 27 Apr 2017)

  Changed paths:
    M changelog
    M src/scripting/lua_audio.cpp
    M src/sound.cpp
    M src/sound.hpp

  Log Message:
  -----------
  A few more improvements to the music API
- Handle all plausible cases of assigning into the playlist
- Allow changing the current track to an existing one on the playlist


Compare: https://github.com/wesnoth/wesnoth/compare/1cb3eb476528...c892b6025735


More information about the Commits mailing list