00001 00008 /* Copyright, 2004 Werewolf 00009 * 00010 * This file is part of Werewolf. 00011 * Werewolf is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2, or (at your option) 00014 * any later version. 00015 00016 * Werewolf is distributed in the hope that it will be useful, but 00017 * WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00019 * General Public License for more details. 00020 00021 * You should have received a copy of the GNU General Public License 00022 * along with Werewolf; see the file COPYING. If not, write to the 00023 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, 00024 * MA 02111-1307, USA. 00025 */ 00026 00027 #ifndef __CINTROTASK_H__ 00028 #define __CINTROTASK_H__ 00029 00030 // 00031 // System Includes 00032 // 00033 #include "CEGUI.h" 00034 00035 // 00036 // NeL Includes 00037 // 00038 00039 // 00040 // Werewolf Includes 00041 // 00042 #include "wwcommon/ITask.h" 00043 #include "wwcommon/ISingleton.h" 00044 00045 // 00046 // Namespaces 00047 // 00048 using namespace NLMISC; 00049 00050 namespace WWCLIENT { 00051 00052 // 00053 // Class 00054 // 00055 00059 class IntroListItem : public CEGUI::ListboxTextItem { 00060 public: 00061 IntroListItem(const CEGUI::String &text) : CEGUI::ListboxTextItem(text) { 00062 setSelectionBrushImage((CEGUI::utf8*)"TaharezLook", (CEGUI::utf8*)"MultiListSelectionBrush"); 00063 } 00064 }; 00065 00066 class CIntroTask : public WWCOMMON::ISingleton<CIntroTask>, public WWCOMMON::ITask { 00067 public: 00068 00069 virtual void init(); 00070 virtual void update(); 00071 virtual void render(); 00072 virtual void release(); 00074 void error(std::string &reason); 00075 00081 void reset(); 00082 00086 void initWindows(); 00087 00088 // Main Menu event handlers. 00089 void handlePlayOffline(); 00090 void handlePlayOnline(); 00091 void handleMainMenuOptions(); 00092 00093 // Network LS Connection event handlers. 00094 void handleConnect(); 00095 void handleUserAccept(); 00096 00097 // Shard Connection event handlers. 00098 void handleConnectShard(); 00099 00100 // Options Menu event handlers 00101 void handleOptionsCancel(); 00102 void handleOptionsSave(); 00103 00104 00105 virtual std::string name() { return "CIntroTask"; } 00106 private: 00107 uint32 ServerId; 00108 00109 bool m_InitializedOptionsDlg; 00110 void initializeOptionsDlg(); 00111 }; 00112 00113 }; // END NAMESPACE WWCLIENT 00114 00115 #endif // __CINTROTASK_H__
1.6.1