[wesnoth-commits] [wesnoth/wesnoth] 56157c: Lua API: Some clean-up of the mp_settings API

Celtic Minstrel noreply at github.com
Tue Jul 13 18:10:03 UTC 2021


  Branch: refs/heads/celmin
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 56157cc446034fd928a3a74a6359563259d1f2ec
      https://github.com/wesnoth/wesnoth/commit/56157cc446034fd928a3a74a6359563259d1f2ec
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-13 (Tue, 13 Jul 2021)

  Changed paths:
    M src/scripting/game_lua_kernel.cpp

  Log Message:
  -----------
  Lua API: Some clean-up of the mp_settings API

This basically adds more reasonable representations of some of the fields, or in some cases just gives them a new, less confusing name.

This also adds wesnoth.scenario.name, which is basically the same as wesnoth.scenario.mp_settings.mp_scenario_name except for the fact that it retains its translatable property


  Commit: f6d962ac67b1288e84a982f0659f1a1493dca219
      https://github.com/wesnoth/wesnoth/commit/f6d962ac67b1288e84a982f0659f1a1493dca219
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2021-07-13 (Tue, 13 Jul 2021)

  Changed paths:
    M data/lua/wml-tags.lua

  Log Message:
  -----------
  WML API: [story]title= is now optional even in ActionWML

Make it default to the scenario name, as it would for scenario-level [story].


Compare: https://github.com/wesnoth/wesnoth/compare/bd783addf011...f6d962ac67b1



More information about the Commits mailing list