[wesnoth-commits] [wesnoth/wesnoth] 4b17d6: Add wesnoth.interface.add_floating_label as a repl...

Celtic Minstrel noreply at github.com
Sat May 29 15:26:06 UTC 2021


  Branch: refs/heads/lua_reorg
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 4b17d6b0d4c9a45737b99beacf21e6243ad0c48b
      https://github.com/wesnoth/wesnoth/commit/4b17d6b0d4c9a45737b99beacf21e6243ad0c48b
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-29 (Sat, 29 May 2021)

  Changed paths:
    M data/campaigns/Under_the_Burning_Suns/scenarios/09_Blood_is_Thicker_Than_Water.cfg
    M data/campaigns/tutorial/utils/utils.cfg
    M data/core/macros/ai_controller.cfg
    M data/lua/core/interface.lua
    M data/lua/wml-tags.lua
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp

  Log Message:
  -----------
  Add wesnoth.interface.add_floating_label as a replacement for wesnoth.print

This returns a label handle which allows you to remove, reposition, or replace the label later.

In addition to all the features of wesnoth.print, you can now specify where the label appears onscreen,
as well as a fadeout time separate from the duration.


  Commit: 03057f4faa1b95332efda9fab6c62c8cf7a9284f
      https://github.com/wesnoth/wesnoth/commit/03057f4faa1b95332efda9fab6c62c8cf7a9284f
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-29 (Sat, 29 May 2021)

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

  Log Message:
  -----------
  There were some old functions that are now covered by the wesnoth.scenario module, so deprecate them


  Commit: 8c14e36ada628a3fb27ac01f780fc2f25ff1bec7
      https://github.com/wesnoth/wesnoth/commit/8c14e36ada628a3fb27ac01f780fc2f25ff1bec7
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-29 (Sat, 29 May 2021)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Add addons to wesnoth.game_config

This adds:
- wesnoth.game_config.eras
- wesnoth.game_config.campaigns
- wesnoth.game_config.modifications
- wesnoth.game_config.resources

Each is an ID to config mapping of the particular addon type.

wesnoth.game_config.eras previously existed as just an array of all era IDs, so this is an incompatible change. However, the old API was never documented, and the comment said it was specifically for @sigurdfd who approved this change.


  Commit: 22250d5db7a545072afc72ca5c0dfaf1922603ef
      https://github.com/wesnoth/wesnoth/commit/22250d5db7a545072afc72ca5c0dfaf1922603ef
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-29 (Sat, 29 May 2021)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Make repeats argument optional in wesnoth.audio.play


  Commit: c6db614005ec6b1328dcdb1d22273d0d310a6a29
      https://github.com/wesnoth/wesnoth/commit/c6db614005ec6b1328dcdb1d22273d0d310a6a29
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-29 (Sat, 29 May 2021)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp
    M src/scripting/lua_terrainmap.cpp
    M src/scripting/mapgen_lua_kernel.cpp

  Log Message:
  -----------
  wesnoth.unit_types and wesnoth.terrain_types are now available in map generation scripts


  Commit: cfe83559f402afb0625bc2deffca434433d294ec
      https://github.com/wesnoth/wesnoth/commit/cfe83559f402afb0625bc2deffca434433d294ec
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-29 (Sat, 29 May 2021)

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

  Log Message:
  -----------
  Move path-related functions into a new wesnoth.paths module


  Commit: ba6525e2f45abd813705f597b87ead3bfe9a9a7e
      https://github.com/wesnoth/wesnoth/commit/ba6525e2f45abd813705f597b87ead3bfe9a9a7e
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-29 (Sat, 29 May 2021)

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

  Log Message:
  -----------
  Move several functions to the wesnoth.interface module


  Commit: 9ffd6bf6cddc083e26a6f7a53d2acc8261d886d8
      https://github.com/wesnoth/wesnoth/commit/9ffd6bf6cddc083e26a6f7a53d2acc8261d886d8
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-29 (Sat, 29 May 2021)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp
    M src/scripting/game_lua_kernel.hpp

  Log Message:
  -----------
  Remove the deprecated wesnoth.select_hex


  Commit: 15ec76dad86cff97789e091730ba50483cc73857
      https://github.com/wesnoth/wesnoth/commit/15ec76dad86cff97789e091730ba50483cc73857
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-29 (Sat, 29 May 2021)

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

  Log Message:
  -----------
  Move wesnoth.teleport into wesnoth.units


Compare: https://github.com/wesnoth/wesnoth/compare/56bf7047b8d0...15ec76dad86c



More information about the Commits mailing list