wesnoth.theme_items.report_countdown

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

Moderators: Forum Moderators, Developers

Post Reply
Choicerer
Posts: 238
Joined: April 29th, 2017, 11:37 pm

wesnoth.theme_items.report_countdown

Post by Choicerer » February 23rd, 2018, 8:35 pm

I need to add some code to this function, but I can't find the original code for it and I don't feel like re-writing it from scratch... Is there something I'm missing? I can make it return time, but that variable is simply miliseconds since the SDL library was initialised... so is there any variable that returns the remaining time a user has in-game? Or is the original code for the function available anywhere? (I can't find it in the source code)

Tad_Carlucci
Developer
Posts: 298
Joined: April 24th, 2016, 4:18 pm

Re: wesnoth.theme_items.report_countdown

Post by Tad_Carlucci » February 23rd, 2018, 9:01 pm

src/reports.cpp line 1541 in current master

I think this is what you're looking for.
I forked real life and now I'm getting merge conflicts.

Choicerer
Posts: 238
Joined: April 29th, 2017, 11:37 pm

Re: wesnoth.theme_items.report_countdown

Post by Choicerer » February 23rd, 2018, 9:45 pm

Thanks, Tad! I've finally managed to get it to work.

Post Reply