Author Topic: Open up a GUI popup as the user starts the game?  (Read 1050 times)

What I want to happen is to have my client addon call a messageboxok whenever it's executed, therefore making the popup start up when you get to the main menu.  When I try to make this happen, the popup has to be manually called from the console.  How can I make it appear when you start up Blockland?

Schedule the call so it happens only after the game finishes loading, or package a function called only after loading is complete and call it through that. Can reference BLG for that possibly as they have a window pop up for updates only after the game is done loading

Schedule the call so it happens only after the game finishes loading, or package a function called only after loading is complete and call it through that. Can reference BLG for that possibly as they have a window pop up for updates only after the game is done loading

How can I determine if the game has finished loading? Is it as easy as

if(gameLoaded)
{
MessageBoxOK("BLIVE" , "To open up BLIVE's client from anywhere in the game, press X.");
} else {
return;
}

?

Something like that, but if you're going to exec that it'll just not work properly.

(easier way)
Do this instead: schedule(0, 0, yourFuncHere);
function yourFuncHere()
{
    MessageBoxOK("BLIVE" , "To open up BLIVE's client from anywhere in the game, press X.");
}


This can get annoying each start up, may want to make some kind of preference

Something like that, but if you're going to exec that it'll just not work properly.

(easier way)
Do this instead: schedule(0, 0, yourFuncHere);
function yourFuncHere()
{
    MessageBoxOK("BLIVE" , "To open up BLIVE's client from anywhere in the game, press X.");
}


This can get annoying each start up, may want to make some kind of preference

What do the numbers in schedule mean?