mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-13 08:58:54 -05:00
Cleanup of distance and time conversion classes, Modifies GuiSpaceTimeComponent
Changed previous slider into text field + dropbox Added acceleration slider Added shuffle slider (closes #479)
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <modules/imgui/include/guicomponent.h>
|
||||
|
||||
#include <openspace/properties/scalar/floatproperty.h>
|
||||
#include <openspace/util/timeconversion.h>
|
||||
|
||||
namespace openspace::gui {
|
||||
|
||||
@@ -37,8 +38,21 @@ public:
|
||||
void render() override;
|
||||
|
||||
private:
|
||||
properties::FloatProperty _minMaxDeltaTime;
|
||||
float _localMinMaxDeltatime; // We don't want the default display inside the component
|
||||
float _deltaTime;
|
||||
int _deltaTimeUnit; // aka static_cast<int>(TimeUnit)
|
||||
|
||||
float _accelerationDelta;
|
||||
|
||||
double _oldDeltaTime;
|
||||
float _slidingDelta;
|
||||
|
||||
bool _firstFrame;
|
||||
|
||||
std::string _timeUnits;
|
||||
|
||||
|
||||
//properties::FloatProperty _minMaxDeltaTime;
|
||||
//float _localMinMaxDeltatime; // We don't want the default display inside the component
|
||||
};
|
||||
|
||||
} // namespace openspace::gui
|
||||
|
||||
Reference in New Issue
Block a user