1 // Construo - A wire-frame construction gamee 2 // Copyright (C) 2002 Ingo Ruhnke <grumbel@gmx.de> 3 // 4 // This program is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // This program is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 // You should have received a copy of the GNU General Public License 15 // along with this program. If not, see <http://www.gnu.org/licenses/>. 16 17 #include "gui_file_manager.hpp" 18 #include "construo.hpp" 19 #include "system_context.hpp" 20 #include "root_graphic_context.hpp" 21 #include "load_gui_manager.hpp" 22 LoadGUIManager()23LoadGUIManager::LoadGUIManager () 24 { 25 file_manager = new GUIFileManager (GUIFileManager::LOAD_MANAGER); 26 add (file_manager); 27 } 28 29 void draw_overlay()30LoadGUIManager::draw_overlay () 31 { 32 graphic_context->draw_string(10, graphic_context->get_height() - 10, 33 "Load Dialog"); 34 } 35 36 void run_once()37LoadGUIManager::run_once () 38 { 39 GUIFileManager::set_instance(file_manager); 40 GUIManager::run_once(); 41 system_context->sleep (1000); 42 } 43 44 /* EOF */ 45