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

Celtic Minstrel noreply at github.com
Thu May 13 23:38:15 UTC 2021


  Branch: refs/heads/lua_reorg
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 2861b6f7f6cc93a0c0393b6743c15dd645c8289e
      https://github.com/wesnoth/wesnoth/commit/2861b6f7f6cc93a0c0393b6743c15dd645c8289e
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-13 (Thu, 13 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: 25b4477085a9c5f455b483e4e82f423e127dae97
      https://github.com/wesnoth/wesnoth/commit/25b4477085a9c5f455b483e4e82f423e127dae97
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-05-13 (Thu, 13 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.


Compare: https://github.com/wesnoth/wesnoth/compare/db02d99fc9aa...25b4477085a9



More information about the Commits mailing list