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

92 lines
3.4 KiB
C++

//==============================================================================
//
// dlg_OnlineHost.hpp
//
//==============================================================================
#ifndef DLG_ONLINE_HOST_HPP
#define DLG_ONLINE_HOST_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_edit.hpp"
#include "dialogs\dlg_popup.hpp"
//==============================================================================
// dlg_online_host
//==============================================================================
extern void dlg_online_host_register ( ui_manager* pManager );
extern ui_win* dlg_online_host_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_online_host : public ui_dialog
{
public:
dlg_online_host ( void );
virtual ~dlg_online_host ( 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 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 ResetMapCycle ( void );
void InitializeMutationModes ( void );
void EnableBlackout ( void ) { m_bRenderBlackout = TRUE; }
protected:
ui_frame* m_pFrame1;
ui_text* m_pServerNameText;
ui_text* m_pPasswordText;
ui_text* m_pGameTypeText;
ui_text* m_pMutationText;
ui_text* m_pVoiceText;
ui_text* m_pPrivateText;
ui_text* m_pNavText;
ui_edit* m_pUserServerEdit;
ui_edit* m_pUserPasswordEdit;
ui_combo* m_pGameTypeSelect;
ui_combo* m_pMutationSelect;
ui_combo* m_pVoiceSelect;
ui_combo* m_pPrivateSelect;
ui_button* m_pContinueButton;
dlg_popup* m_PopUp;
s32 m_CurrHL;
s32 m_CurrGameType;
xbool m_bRenderBlackout;
};
//==============================================================================
#endif // DLG_ONLINE_HOST_HPP
//==============================================================================