mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
New functions in scene editor
This commit is contained in:
@@ -21,6 +21,7 @@ editor_ui::editor_ui() {
|
||||
|
||||
add_external_panel( &m_itempropertiespanel );
|
||||
add_external_panel( &m_nodebankpanel );
|
||||
add_external_panel( &m_functionspanel );
|
||||
}
|
||||
|
||||
// updates state of UI elements
|
||||
@@ -41,6 +42,7 @@ editor_ui::update() {
|
||||
|
||||
ui_layer::update();
|
||||
m_itempropertiespanel.update( m_node );
|
||||
m_functionspanel.update( m_node );
|
||||
}
|
||||
|
||||
void
|
||||
@@ -63,3 +65,17 @@ nodebank_panel::edit_mode
|
||||
editor_ui::mode() {
|
||||
return m_nodebankpanel.mode;
|
||||
}
|
||||
|
||||
functions_panel::rotation_mode
|
||||
editor_ui::rot_mode() {
|
||||
return m_functionspanel.rot_mode;
|
||||
}
|
||||
float
|
||||
editor_ui::rot_val() {
|
||||
return m_functionspanel.rot_value;
|
||||
}
|
||||
bool
|
||||
editor_ui::rot_from_last()
|
||||
{
|
||||
return m_functionspanel.rot_from_last;
|
||||
}
|
||||
Reference in New Issue
Block a user