mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 14:49:19 +02:00
refactoring: application mode code split
This commit is contained in:
39
editoruilayer.h
Normal file
39
editoruilayer.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
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"
|
||||
|
||||
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
|
||||
ui_panel UIHeader { 20, 20 }; // header ui panel
|
||||
scene::basic_node * m_node { nullptr }; // currently bound scene node, if any
|
||||
};
|
||||
Reference in New Issue
Block a user