mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
41 lines
882 B
C++
41 lines
882 B
C++
/*
|
|
This Source Code Form is subject to the
|
|
terms of the Mozilla Public License, v.
|
|
2.0. If a copy of the MPL was not
|
|
distributed with this file, You can
|
|
obtain one at
|
|
http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "uilayer.h"
|
|
#include "editoruipanels.h"
|
|
|
|
namespace scene {
|
|
|
|
class basic_node;
|
|
|
|
}
|
|
|
|
class editor_ui : public ui_layer {
|
|
|
|
public:
|
|
// constructors
|
|
editor_ui();
|
|
// methods
|
|
// potentially processes provided input key. returns: true if the input was processed, false otherwise
|
|
bool
|
|
on_key( int const Key, int const Action ) override;
|
|
// updates state of UI elements
|
|
void
|
|
update() override;
|
|
void
|
|
set_node( scene::basic_node * Node );
|
|
|
|
private:
|
|
// members
|
|
itemproperties_panel m_itempropertiespanel { "Node Properties", true };
|
|
scene::basic_node * m_node { nullptr }; // currently bound scene node, if any
|
|
};
|