On forum: 06/19/2012
I'm using the CoP style loading screen mod that gives you the "Press any key to enter the zone" etc prompt. I understand that this checks for the presence of a level and gives you that prompt if it finds one (so it doesn't work on the initial loadscreen that starts the game).
Given this idea, I'm assuming that it checks for a level that you leave, and not the one you enter.
This is a section of the code it adds to the ui_main_menu.script
if level.present() and not press_any_key_on_start then
self.start_btn:SetText("Press any key to enter the Zone")
self.alpha = 0
self.tmr = profile_timer() -- создаем таймер
self.tmr:start() -- запускаем его
My question is, is there a function that determines the level name (I've looked in lua_help.script and found
function level_name(const alife_simulator*, number);
but this is completely alien to me as to how it works and how I would even use it if it is indeed what I need), and if I were to use it, would it determine the level name from the level I've left or the level I'm about to enter?