[closed] How to get the code of the wesnoth.interface.game_display.income function

Discussion of Lua and LuaWML support, development, and ideas.

Moderator: Forum Moderators

Post Reply
User avatar
ZombieKnight
Posts: 147
Joined: June 27th, 2022, 2:26 pm
Location: Czech Republic

[closed] How to get the code of the wesnoth.interface.game_display.income function

Post by ZombieKnight »

Hi,
How to get the code of the wesnoth.interface.game_display.income function?
Or how to modify the string coming into text and tooltip?
...
I want to modify the function, NOT entirely replace it(if I don't know the exact code).
Last edited by ZombieKnight on March 31st, 2024, 12:30 pm, edited 1 time in total.
I had saurian in profile before, but I've merged my discord profile with forum one...
User avatar
ZombieKnight
Posts: 147
Joined: June 27th, 2022, 2:26 pm
Location: Czech Republic

Re: How to get the code of the wesnoth.interface.game_display.income function

Post by ZombieKnight »

CLOSED
Thanks to Soliton
Defined at https://github.com/wesnoth/wesnoth/blob ... .cpp#L1769.
Also can be modified storing the output from original function and then editing it... Works for my puposes.
I had saurian in profile before, but I've merged my discord profile with forum one...
Post Reply