mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-15 16:31:06 -06:00
Add InteractionHandler to global property gui
Add property to interactionhandler to enable/disable rotational and zoom friction
This commit is contained in:
@@ -164,9 +164,9 @@ namespace gui {
|
||||
|
||||
GUI::GUI()
|
||||
: GuiComponent()
|
||||
, _globalProperty("Global")
|
||||
, _property("Properties")
|
||||
, _screenSpaceProperty("ScreenSpace Properties")
|
||||
, _globalProperty("Global")
|
||||
{}
|
||||
|
||||
GUI::~GUI() {
|
||||
@@ -369,12 +369,12 @@ void GUI::startFrame(float deltaTime, const glm::vec2& windowSize,
|
||||
void GUI::endFrame() {
|
||||
render();
|
||||
|
||||
if (_globalProperty.isEnabled())
|
||||
_globalProperty.render();
|
||||
if (_property.isEnabled())
|
||||
_property.render();
|
||||
if (_screenSpaceProperty.isEnabled())
|
||||
_screenSpaceProperty.render();
|
||||
if (_globalProperty.isEnabled())
|
||||
_globalProperty.render();
|
||||
if (_performance.isEnabled())
|
||||
_performance.render();
|
||||
if (_help.isEnabled())
|
||||
|
||||
Reference in New Issue
Block a user