area51/Support/Dialogs/dlg_LevelSelect.hpp
Andrew Sampson 431f72b93a source
2021-08-27 19:22:41 -07:00

64 lines
2.7 KiB
C++

//==============================================================================
//
// dlg_LevelSelect.hpp
//
//==============================================================================
#ifndef DLG_LEVEL_SELECT_HPP
#define DLG_LEVEL_SELECT_HPP
//==============================================================================
// INCLUDES
//==============================================================================
#include "ui\ui_dialog.hpp"
#include "ui\ui_frame.hpp"
#include "ui\ui_text.hpp"
#include "ui\ui_combo.hpp"
#include "ui\ui_listbox.hpp"
//==============================================================================
// dlg_level_select
//==============================================================================
extern void dlg_level_select_register ( ui_manager* pManager );
extern ui_win* dlg_level_select_factory ( s32 UserID, ui_manager* pManager, ui_manager::dialog_tem* pDialogTem, const irect& Position, ui_win* pParent, s32 Flags, void* pUserData );
class ui_button;
class dlg_level_select : public ui_dialog
{
public:
dlg_level_select ( void );
virtual ~dlg_level_select ( void );
xbool Create ( s32 UserID,
ui_manager* pManager,
ui_manager::dialog_tem* pDialogTem,
const irect& Position,
ui_win* pParent,
s32 Flags,
void* pUserData);
virtual void Destroy ( void );
virtual void Render ( s32 ox=0, s32 oy=0 );
virtual void OnNotify ( ui_win* pWin, ui_win* pSender, s32 Command, void* pData );
virtual void OnPadNavigate ( ui_win* pWin, s32 Code, s32 Presses, s32 Repeats, xbool WrapX = FALSE, xbool WrapY = FALSE );
virtual void OnPadSelect ( ui_win* pWin );
virtual void OnPadBack ( ui_win* pWin );
virtual void OnUpdate ( ui_win* pWin, f32 DeltaTime );
void FillLevelList ( void );
protected:
ui_frame* m_pFrame1;
ui_listbox* m_pLevelList;
ui_text* m_pNavText;
s32 m_CurrHL;
};
//==============================================================================
#endif // DLG_LEVEL_SELECT_HPP
//==============================================================================