rem: setTimeout( loadSession, 200 ); 
add:  startGame();  
context: function startLoadingScreen(){// HACK: Added to increase number of players from its default 2, until we have a session creation screen.//        g_GameAttributes.numPlayers = 9;        // Switch screens from main menu to loading screen.        GUIObjectHide("PREGAME_GUI");        GUIObjectUnhide("loading_screen");        console.write("Loading " + g_GameAttributes.mapFile + " (" + g_GameAttributes.numPlayers + " players) ...");        // Generate random number for random concept art (should be depending on the selected civ later)        randvar = getRandom(1, 6);                switch (randvar) {          case 1:            sprite = "load_concept_he";            break;          case 2:            sprite = "load_concept_ce";            break;          case 3:            sprite = "load_concept_pe";            break;          case 4:            sprite = "load_concept_ro";            break;          case 5:            sprite = "load_concept_ca";            break;          case 6:            sprite = "load_concept_ib";            break;        }                getGUIObjectByName("loading_screen_background_concept").sprite = sprite;        console.write(getGUIObjectByName("loading_screen_background_concept").sprite);        getGUIObjectByName("loading_screen_titlebar_text").caption = "Loading Scenario ...";        getGUIObjectByName("loading_screen_progress_bar_text").caption = "... Reticulating splines ...";        getGUIObjectByName("loading_screen_progress_bar").caption = 80;        getGUIObjectByName("loading_screen_text").caption = "LOADING " + g_GameAttributes.mapFile + " ...\nPlease wait ...\n(Yes, we know the progress bar doesn't do diddly squat right now)\nJust keep waiting ...\nIt'll get there ...\nAlmost done ...\nTrust me!";        getGUIObjectByName("loading_screen_tip").caption = "Wise man once say ...\nHe who thinks slow, he act in haste, be rash and quick and foolish. But he that thinks too much, acts too slowly. The stupid always win, Commandersan. Remember that. You are tiny grasshopper.";        // Begin game session.        setTimeout( loadSession, 200 );}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/0aea12dc029f7c32ded26ef531b8f8e3c0f9d757/functions_pregame_load.js/clean/binaries/data/mods/official/gui/test/functions_pregame_load.js