wesnoth.theme_items.report_countdown

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

Moderator: Forum Moderators

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

wesnoth.theme_items.report_countdown

Post by Choicerer »

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
Inactive Developer
Posts: 503
Joined: April 24th, 2016, 4:18 pm

Re: wesnoth.theme_items.report_countdown

Post by Tad_Carlucci »

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 »

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