wesnoth/data
Charles Dang 55dc0a8215
GUI2: harden theme definition parsing (#9974)
- Ensure current_gui is a valid iterator after calling init(). It should match default_gui
- Ensure current_gui is always set to guis.end() if the requested theme isn't found in switch_theme().
  It's initialized as such in gui_definition.cpp, but we shouldn't rely on that always being the case,
  especially in a function that changes it.
- Only create one schema validator for all themes. Previously, it would have been created anew for
   each addon with a custom theme.
- Add explicit exception handling for an invalid schema path or invalid gui2 entry point
- Add explicit warning for addon themes with the id "default"
- Catch `wml_exception` when creating gui_definition objects for all themes (previously, this was only
   caught for add-on themes)
- Adjust error messages
- Fix duplicate theme errors when reloading cache (addresses one part of #9781). GUI2 definition
  changes now take effect without the need to restart the entire game. A cache reload is sufficient.
- Use `_main.cfg` for core theme entry points
- Include macros at global core GUI2 score instead of only in the default theme (they were always
  available to both themes, this just makes that clearer)
2025-03-02 00:12:32 -05:00
..
ai Remove instance of 4 repeated exclamation marks 2025-02-21 12:20:51 -05:00
campaigns Typo fix 2025-03-01 11:18:59 +01:00
core Update Firebomb Ant and Grand Dragonfly XP (#9963) 2025-02-27 08:30:26 -06:00
gui GUI2: harden theme definition parsing (#9974) 2025-03-02 00:12:32 -05:00
hardwired
internal
languages pot-update and regenerate doc files 2025-02-17 15:55:48 -06:00
lua
modifications/pick_advance
multiplayer
schema Fix schema whitespace 2025-03-01 11:41:21 -05:00
test add 'invulnerable' status for prevent unit die during tests 2025-02-24 10:44:41 -05:00
themes
tools 1.19.9+dev 2025-02-17 16:14:03 -06:00
_main.cfg
achievements.cfg DM -> TDG translations cleanup (#9779) 2025-02-09 07:48:36 -06:00
advanced_preferences.cfg Implement Reachmap Color and Opacity Options (#9877) 2025-02-14 23:39:49 -05:00
COPYING.txt
cores.cfg
english.cfg
game_config.cfg Implement Reachmap Color and Opacity Options (#9877) 2025-02-14 23:39:49 -05:00
lan_server.cfg
modifications.cfg
tips.cfg