Lua: Support notifications with featured text #2473
Labels
enhancement
New feature or request
port-from-freeciv
This was implemented in Freeciv
server
This issue requires changes to the server
Is your feature request related to a problem? Please describe.
I want to be able to send notifications to players including tile, unit, and city links in them using lua.
Describe the solution you'd like
As documented in the Lua Reference Manual:
link_text
method to City typetile_link_text
method to City typelink_text
method to Unit typetile_link_text
method to Unit typelink_text
method to Tile typeDescribe alternatives you've considered
It might technically be possible to manually duplicate the format for featured text in message strings but that would be ugly and messy.
Additional context
This was already been done in: https://github.com/freeciv/freeciv/blob/64f64a14ea220185058d8b57de2bf5c809169a18/common/scriptcore/api_game_methods.h#L220
The text was updated successfully, but these errors were encountered: