Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
prism/tools/editor/include/uieditor.hpp

28 lines
610 B
C++
Raw Normal View History

2020-08-11 12:07:21 -04:00
#pragma once
#include "prismeditor.hpp"
#include "screen.hpp"
class UIEditor : public Editor {
public:
UIEditor();
ui::Screen* screen = nullptr;
UIElement* current_element = nullptr;
bool has_menubar() const override;
std::string get_title() const override;
Scene* get_scene() const override;
void setup_windows(ImGuiID dockspace) override;
void edit_metric(const char* label, UIElement::Metrics::Metric* metric);
std::string save_metric(UIElement::Metrics::Metric metric);
void save(std::string path);
void draw(CommonEditor* editor) override;
};