standardized gizmos and made them keyframable
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user