mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-19 11:29:08 -06:00
Add InteractionHandler to global property gui
Add property to interactionhandler to enable/disable rotational and zoom friction
This commit is contained in:
@@ -67,9 +67,9 @@ public:
|
||||
GuiHelpComponent _help;
|
||||
GuiOriginComponent _origin;
|
||||
GuiPerformanceComponent _performance;
|
||||
GuiPropertyComponent _globalProperty;
|
||||
GuiPropertyComponent _property;
|
||||
GuiPropertyComponent _screenSpaceProperty;
|
||||
GuiPropertyComponent _globalProperty;
|
||||
GuiTimeComponent _time;
|
||||
GuiIswaComponent _iswa;
|
||||
};
|
||||
|
||||
@@ -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