42 lines
697 B
C++
42 lines
697 B
C++
#pragma once
|
|
|
|
#include "core/core.hpp"
|
|
#include "engine/content/content.hpp"
|
|
|
|
namespace tr::layers::gui
|
|
{
|
|
class navigation : public core::layer
|
|
{
|
|
BASE_TYPE_DEFINE(time, event_manager);
|
|
|
|
public:
|
|
CONSTRUCT_IMPL(navigation);
|
|
|
|
public:
|
|
BASE_OVERIDE_IMPL();
|
|
|
|
public:
|
|
SET_EVENT_MANAGER_IMPL();
|
|
|
|
public:
|
|
void set_content(content* c) { cnt = c; };
|
|
|
|
private:
|
|
FLAGS_STRUCT_DEFINED();
|
|
|
|
bool show = true;
|
|
event_manager* em;
|
|
content* cnt;
|
|
files* data;
|
|
|
|
float width = 0.f;
|
|
float height = 0.f;
|
|
float pos_x = 0.f;
|
|
float pos_y = 0.f;
|
|
float padding_between_window = 2.f;
|
|
|
|
int selected = 0;
|
|
};
|
|
}
|
|
|