Celtic Minstrel
91c7536789
Add --plugin option to the Xcode scheme
2024-10-07 08:42:59 -04:00
Celtic Minstrel
7d77acaccc
Lua API: Delete the --script command-line option
...
This is basically superceded by --plugin
Though it's supposed to be a script that can control the client, that capability doesn't actually exist in the implementation.
2024-10-07 08:42:59 -04:00
Celtic Minstrel
4ce8e19697
Add a sample Lua plugin that starts TSG, plays one turn, and then exits.
2024-10-07 08:42:43 -04:00
Celtic Minstrel
c746e38cc9
Lua API: Add synced_command and end_turn actions to the Game plugin context
2024-10-07 08:42:42 -04:00
Celtic Minstrel
f793d8ef7e
Lua API: Plugin execute functionality now supports named tuples in the closure
2024-10-07 08:42:42 -04:00
Celtic Minstrel
15062976ca
Lua API: Some enhancements/fixes to named tuples.
...
* Make named tuples comparable with == and ~=
* Fix the possibility of the numeric and string keys becoming out-of-syn on assignment
* Fix non-existent numeric keys being treated like a string key
2024-10-07 08:42:42 -04:00
Celtic Minstrel
ca301e1745
Lua API: ai.get_suitable_keep now returns integers instead of real numbers
2024-10-07 08:42:42 -04:00
Celtic Minstrel
40625ab26f
Lua API: Make wesnoth.game_config.debug writable in plugins
2024-10-07 08:42:42 -04:00
Celtic Minstrel
3387eb2c26
Lua API: Plugins can now execute gamestate code once they are in the game context.
2024-10-07 08:42:42 -04:00
Celtic Minstrel
cc1069734c
Add a debugging function that prints out the contents of the Lua stack
2024-10-07 08:42:41 -04:00
Celtic Minstrel
744cdb2085
Lua API: Correct __metatable for wesnoth.preferences
2024-10-07 08:42:41 -04:00
Celtic Minstrel
802869bf23
Lua API: Fix some places that weren't handling strings correctly.
...
Lua strings can contain nulls. The affected places would truncate such strings.
2024-10-07 08:42:41 -04:00
Celtic Minstrel
7e912d532f
Lua API: Add a valid key to the plugin context and info tables
...
Previously the only way to tell they were valid would be a protected call on an existing member.
2024-10-07 08:42:41 -04:00
Celtic Minstrel
87b6cf80e8
mp_join_game should not be skippable
2024-10-07 08:42:40 -04:00
Celtic Minstrel
083c49f916
WIP
2024-10-07 08:42:40 -04:00
Celtic Minstrel
e20d054f7b
WIP: Output the ID of the dialog being skipped (maybe it's not actually a leader select dialog?)
2024-10-07 08:42:40 -04:00
Celtic Minstrel
42991138d9
Make enable_lua_ptr movable and non-copyable
2024-10-07 08:42:40 -04:00
Celtic Minstrel
1b4fe1b61b
Update host.lua and join.lua in light of recent changes
...
* Use the wesnoth.plugin module
* Use .tag and .contents instead of [1] and [2]
* Remove superfluous parentheses on function calls
2024-10-07 08:42:40 -04:00
Celtic Minstrel
68105ed4cc
Lua API: Add a new plugin module with some useful functions for plugins
2024-10-07 08:42:40 -04:00
Celtic Minstrel
f971705548
Lua API: The plugin events list is now a proper WML table, with the tags being named tuples
2024-10-07 08:42:40 -04:00
Celtic Minstrel
b9d8851338
Lua API: Avoid looking up the requested scenario twice
2024-10-07 08:42:39 -04:00
Celtic Minstrel
a1c78edda5
Lua API: Enable plugins to play a campaign
...
This also fixes some issues that can prevent a plugin from working with the GUI (that is, only working in headless mode). Plugins should work in both headless and GUI mode.
2024-10-07 08:42:39 -04:00
Gunter Labes
b1eb871df7
Schema: Add missing location filter attribute
2024-10-07 14:05:16 +02:00
doofus-01
422425f772
Update changelog.md
2024-10-06 18:00:41 -07:00
doofus-01
78c8ed24fb
1.19 Better mountains/elevation interactions ( #9400 )
...
* address bluffs-mountains transitions
* revise visual indicator of flood-filled elevation regions in editor
* small border versions of dry and basic mountain
* fix some frozen/elevated transitions
* address mini-map concerns in #8924
2024-10-06 17:51:54 -07:00
Tóth Kornél
9ca1c53b22
Fix in-game team names not reflecting game setup changes
...
Resolves #9407 .
2024-10-06 21:57:34 +02:00
Yoruma
0e13a7e30f
Treat negative number of strikes as 0 instead of the unmodified amount
...
Fixes #9366 .
2024-10-06 20:43:59 +02:00
doofus-01
a9637de7e7
various orc animations ( #9289 )
...
* touch-up to orcish warrior combat anims
* some pillager animations
* fix direwolf-rider shadow
* alternate orc warlord attack anim
* orc warlord victory anim
2024-10-05 18:25:06 -07:00
Wedge009
98aba787c4
Completed the update started in #9057 .
2024-10-06 09:13:10 +11:00
Wedge009
558650bd14
Typography update for source code (in addition to .cfg data files previously reviewed).
2024-10-06 09:13:10 +11:00
Wedge009
5ec94b5904
Adding requested po hint.
...
[ci skip]
2024-10-06 09:13:10 +11:00
Wedge009
ca8a0aede8
Typography update. Closes #8000 .
...
[ci skip]
2024-10-06 09:13:10 +11:00
Charles Dang
32e1bdb2e6
Help/Editor: shorten very long topic title
2024-10-05 15:19:52 -04:00
Charles Dang
ad736266c1
GUI2/Widget: add const overload of get_parent_grid
2024-10-05 15:19:20 -04:00
Charles Dang
2931816979
GUI2/Tree View Node: make use of emplace_back returning a reference
2024-10-05 15:18:48 -04:00
Charles Dang
9dc4a94533
Pango Text: avoid max short constant
2024-10-05 15:17:10 -04:00
Charles Dang
0fa0019127
Hide Load Turn button in MP ( resolves #9308 , closes #9428 )
2024-10-05 15:12:30 -04:00
Nils Kneuper
d84669c8a8
updated Japanese translation
2024-10-05 15:07:31 +02:00
Nils Kneuper
58bc7ba4af
updated Bengali translation
2024-10-05 15:06:48 +02:00
Subhraman Sarkar
ea3698665f
rich label: fix wrong text splitting for pixel scale > 1
2024-10-05 15:57:06 +05:30
Charles Dang
736e45a197
Remove all occurrences of box=yes in editor help markup
...
Was non-functional anyway
2024-10-05 00:57:26 -04:00
Charles Dang
8079807146
Fixed broken table markup in Editor Palette topic
2024-10-05 00:55:23 -04:00
Charles Dang
2dd27fcf8e
Help: fix unit type pages not showing up due to overscaling
2024-10-04 20:26:58 -04:00
Charles Dang
eccce783a9
GUI2/Help Browser: layout improvements
2024-10-04 20:26:23 -04:00
Charles Dang
57bd39d4a5
GUI2/Rich Label: minor cleanup ( #9426 )
2024-10-04 19:53:28 -04:00
OrekOrek
d9bb46ce37
Units are defined without [base_unit] tag ( #9413 )
...
Dark Horse, White Horse, Sand Scamperer, and Sand Scuttler are now defined without [base_unit] tag.
2024-10-04 17:30:19 -05:00
Gothyoba
1597fd0248
Typo fixes in EI _main.cfg
2024-10-04 08:57:54 -04:00
Gothyoba
fa3d421a85
Remove unused lua in THoT
2024-10-04 15:59:29 +10:00
Charles Dang
b1105e2c2f
Config: add range-based access over child tags
...
This is meant as a lightweight replacement for all_children_range in cases where the iterator doesn't need to be stored (most cases). It has several advantages:
First, it avoids the custom iterator classes, making the code easier to read. It also means it should be composable with STL ranges in C++20. Further, you no longer get a mutable reference on a const config. Finally, it means intellisense can properly display the key/cfg types in a structured binding. When unpacking `config::any_child`, for some reason it shows up as a key/value copy instead of reference...
2024-10-03 23:40:41 -04:00
Charles Dang
61ac2e3f3f
Config: fix value ctor not compiling with const config references
2024-10-03 23:40:41 -04:00