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

Celtic Minstrel noreply at github.com
Fri May 21 14:04:01 UTC 2021


  Branch: refs/heads/lua_reorg
  Home:   https://github.com/wesnoth/wesnoth
  Commit: eab5f43852537ae810312b081f8eb91742460c5d
      https://github.com/wesnoth/wesnoth/commit/eab5f43852537ae810312b081f8eb91742460c5d
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-21 (Fri, 21 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: b6d5ede0ebd8a9bbd44dcdf53ffab4ce5b1917cc
      https://github.com/wesnoth/wesnoth/commit/b6d5ede0ebd8a9bbd44dcdf53ffab4ce5b1917cc
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-21 (Fri, 21 May 2021)

  Changed paths:
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Add a dir() function to improve API discoverability

The purpose is to simply list everything that's available in a given module or object.

Currently, it only works for tables. The plan is to extend it to userdata objects if and when it is approved.


  Commit: be9fee8f6523c0cbf0fa558b04201ff68af7c173
      https://github.com/wesnoth/wesnoth/commit/be9fee8f6523c0cbf0fa558b04201ff68af7c173
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-21 (Fri, 21 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: 7593d1dd2779d57029c36f7d8c2399356882f2b8
      https://github.com/wesnoth/wesnoth/commit/7593d1dd2779d57029c36f7d8c2399356882f2b8
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-21 (Fri, 21 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: 4ba5d9545feaa04421ee6da2d67889940e24c895
      https://github.com/wesnoth/wesnoth/commit/4ba5d9545feaa04421ee6da2d67889940e24c895
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-21 (Fri, 21 May 2021)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp

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


  Commit: a0d5017337f36f94f52f7a779486baea7d201cfc
      https://github.com/wesnoth/wesnoth/commit/a0d5017337f36f94f52f7a779486baea7d201cfc
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-21 (Fri, 21 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: 3046e0a491a130e527b539d4cfd7f80f6d162051
      https://github.com/wesnoth/wesnoth/commit/3046e0a491a130e527b539d4cfd7f80f6d162051
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-21 (Fri, 21 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: 434013634b663b0c47d21cda47f3f1081fc3905c
      https://github.com/wesnoth/wesnoth/commit/434013634b663b0c47d21cda47f3f1081fc3905c
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-21 (Fri, 21 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: f6e71ad1f398618f61334f3d28a64717fb4d3d7a
      https://github.com/wesnoth/wesnoth/commit/f6e71ad1f398618f61334f3d28a64717fb4d3d7a
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-21 (Fri, 21 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: 56bf7047b8d0d686d5f1685ca03f7f7b008ca3f0
      https://github.com/wesnoth/wesnoth/commit/56bf7047b8d0d686d5f1685ca03f7f7b008ca3f0
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-21 (Fri, 21 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/70d8ddf0b84f...56bf7047b8d0



More information about the Commits mailing list