Colobot
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Ui::CMainDialog Class Reference

Public Types

using DialogCallback = std::function< void()>
 

Public Member Functions

bool EventProcess (const Event &event)
 
void StartQuestion (const std::string &text, bool warningYes=false, bool warningNo=false, bool fireParticles=false, DialogCallback yes=nullptr, DialogCallback no=nullptr)
 
void StartQuestion (ResTextType text, bool warningYes=false, bool warningNo=false, bool fireParticles=false, DialogCallback yes=nullptr, DialogCallback no=nullptr)
 
void StartInformation (const std::string &title, const std::string &text, const std::string &details, bool warning=false, bool fireParticles=false, DialogCallback ok=nullptr)
 
void StartPauseMenu ()
 
void StopDialog ()
 
bool IsDialog ()
 

Protected Types

enum  DialogType { Question, PauseMenu }
 

Protected Member Functions

void StartDialog (Math::Point dim, bool fireParticles)
 
void FrameDialog (float rTime)
 

Protected Attributes

CRobotMainm_main
 
Gfx::CEnginem_engine
 
Gfx::CParticlem_particle
 
CInterfacem_interface
 
CSoundInterfacem_sound
 
CSettingsm_settings
 
bool m_dialogOpen
 
DialogType m_dialogType
 
bool m_dialogFireParticles
 
Math::Point m_dialogPos
 
Math::Point m_dialogDim
 
float m_dialogTime
 
float m_dialogParti
 
DialogCallback m_callbackYes
 
DialogCallback m_callbackNo
 

The documentation for this class was generated from the following files: