standardized gizmos and made them keyframable

This commit is contained in:
itsmattkc
2018-12-02 18:23:15 +11:00
parent cc41123106
commit 021a50477c
18 changed files with 188 additions and 139 deletions
+12
View File
@@ -1,6 +1,13 @@
#include "effectgizmo.h"
#include "ui/labelslider.h"
#include "effectfield.h"
EffectGizmo::EffectGizmo(int type) :
x_field(NULL),
x_field_multi(1.0),
y_field(NULL),
y_field_multi(1.0),
type(type),
cursor(-1)
{
@@ -11,6 +18,11 @@ EffectGizmo::EffectGizmo(int type) :
color = Qt::white;
}
void EffectGizmo::set_previous_value() {
if (x_field != NULL) static_cast<LabelSlider*>(x_field->ui_element)->set_previous_value();
if (y_field != NULL) static_cast<LabelSlider*>(y_field->ui_element)->set_previous_value();
}
int EffectGizmo::get_point_count() {
return world_pos.size();
}