rem: GUIObjectHide("PREGAME_GUI"); 
add: GUIObjectHide("pregame_gui"); console.write("Pre Game User Interface is now Hidden"); 
context: function startLoadingScreen(){        // 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);        // janwas: main loop now sets progress / description, but that won't        // happen until the first timeslice completes, so set initial values.        getGUIObjectByName("loading_screen_titlebar_text").caption = "Loading Scenario ...";        getGUIObjectByName("loading_screen_progress_bar_text").caption = "";        getGUIObjectByName("loading_screen_progress_bar").caption = 0;        getGUIObjectByName("loading_screen_text").caption = "LOADING " + g_GameAttributes.mapFile + " ...\nPlease wait ...";	// Pick a random tip of the day (each line is a separate tip).	tipArray  = readFileLines("gui/text/tips.txt");	// Set tip string.        getGUIObjectByName("loading_screen_tip").caption = tipArray[getRandom(0, tipArray.length-1)];        // Begin game session.        if (! startGame())        {                // Failed to start the game; go back to the main menu.                GUIObjectHide("loading_screen");                GUIObjectUnhide("PREGAME_GUI");                // Show an error message                btCaptions = new Array("OK");                btCode = new Array("");                messageBox(400, 200, "The game could not be started with the given parameters. You probably have entered an invalid map name.", "Error", 0, btCaptions, btCode);        }}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/803e8115ddffda16ccd4c7a009693ec8c983d562/functions_pregame_load.js/clean/binaries/data/mods/official/gui/test/functions_pregame_load.js