49 lines
880 B
C++
49 lines
880 B
C++
#pragma once
|
|
|
|
#include "try_engine/try_engine.hpp"
|
|
#include "rrr/content/content.hpp"
|
|
|
|
namespace rrr::layers::gui
|
|
{
|
|
class dialogs : public try_engine::layer
|
|
{
|
|
BASE_TYPE_DEFINE();
|
|
|
|
public:
|
|
CONSTRUCT_IMPL(dialogs);
|
|
|
|
public:
|
|
BASE_OVERIDE_IMPL();
|
|
|
|
public:
|
|
SET_EVENT_MANAGER_IMPL();
|
|
|
|
void set_content(content* c) { };
|
|
|
|
private:
|
|
FLAGS_STRUCT_DEFINED();
|
|
|
|
bool show = false;
|
|
event_manager* em;
|
|
|
|
float width = 0.f;
|
|
float height = 0.f;
|
|
bool delete_dialog = false;
|
|
bool create_dialog = false;
|
|
file current_file;
|
|
bool shift = false;
|
|
std::string title;
|
|
|
|
private:
|
|
void resize();
|
|
void cancel();
|
|
void draw_delete_dialog();
|
|
void draw_create_dialog();
|
|
void create_file();
|
|
void pressed(system_event& e);
|
|
void released(system_event& e);
|
|
};
|
|
}
|
|
|
|
|