mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-23 12:53:17 +00:00
34 lines
712 B
C++
34 lines
712 B
C++
#pragma once
|
|
|
|
#include "application.hpp"
|
|
|
|
enum DialogSelectionType {
|
|
DialogSelectionType_Ok,
|
|
DialogSelectionType_Cancel
|
|
};
|
|
|
|
namespace mc::ui {
|
|
|
|
class Dialog {
|
|
|
|
public:
|
|
Dialog(const char *message) : m_message(message), m_visible(false) {};
|
|
virtual ~Dialog() {};
|
|
|
|
bool isVisible(void);
|
|
void show(void);
|
|
void hide(void);
|
|
|
|
virtual void accept(void) {};
|
|
virtual void cancel(void) {};
|
|
|
|
virtual void draw(void) {};
|
|
virtual void handleInput(const mc::app::UserInput *input) {};
|
|
|
|
protected:
|
|
const char *m_message;
|
|
bool m_visible;
|
|
|
|
};
|
|
|
|
}
|