00001 /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 00002 || NoX-Wizard UO Server Emulator (NXW) [http://noxwizard.sourceforge.net] || 00003 || || 00004 || This software is free software released under GPL2 license. || 00005 || You can find detailed license information in nox-wizard.cpp file. || 00006 || || 00007 || For any question post to NoX-Wizard forums. || 00008 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/ 00009 00015 #ifndef _OLDMENU_H_ 00016 #define _OLDMENU_H_ 00017 00018 00019 #include "nxwcommn.h" 00020 #include "packets.h" 00021 #include "menu.h" 00022 00023 00027 class cOldMenu : public cBasicMenu 00028 { 00029 00030 friend class cMakeMenu; 00031 friend class cPartyMenu; 00032 00033 protected: 00034 00035 std::map< UI08, std::map< UI32, std::wstring > > allPages; 00036 00037 virtual cServerPacket* build(); 00038 void buildClassic(); 00039 void buildIconList(); 00040 00041 public: 00042 00043 P_MENU type; 00044 00045 wstring title; 00046 UI32 style; 00047 UI32 color; 00048 UI32 width; 00049 UI32 rowForPage; 00050 00051 cOldMenu(); 00052 ~cOldMenu(); 00053 00054 void setParameters( int rowForPage, int pageCount ); 00055 virtual void addMenuItem( int page, int idx, std::wstring desc ); 00056 00057 virtual void handleButton( NXWCLIENT ps, cClientPacket* pkg ); 00058 00059 }; 00060 00061 typedef cOldMenu* P_OLDMENU; 00062 00063 00064 00065 #endif