2023-08-29 14:33:44 +02:00
|
|
|
function Panel_Animation_Setting() : Panel_Linear_Setting() constructor {
|
|
|
|
title = __txtx("animation_settings", "Animation Settings");
|
|
|
|
|
|
|
|
w = ui(380);
|
|
|
|
|
|
|
|
#region data
|
|
|
|
properties = [
|
|
|
|
[
|
|
|
|
new textBox(TEXTBOX_INPUT.number, function(str) {
|
2023-10-09 16:07:33 +02:00
|
|
|
TOTAL_FRAMES = real(str);
|
2023-08-29 14:33:44 +02:00
|
|
|
}),
|
|
|
|
__txtx("anim_length", "Animation length"),
|
2023-10-09 16:07:33 +02:00
|
|
|
function() { return TOTAL_FRAMES; }
|
2023-08-29 14:33:44 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
new textBox(TEXTBOX_INPUT.number, function(str) {
|
|
|
|
PROJECT.animator.framerate = real(str);
|
|
|
|
}),
|
|
|
|
__txtx("anim_frame_rate", "Preview frame rate"),
|
|
|
|
function() { return PROJECT.animator.framerate; }
|
|
|
|
],
|
|
|
|
[
|
|
|
|
new buttonGroup([__txt("Loop"), __txt("Stop")], function(b) {
|
|
|
|
PROJECT.animator.playback = b;
|
|
|
|
}),
|
|
|
|
__txtx("anim_on_end", "On end"),
|
|
|
|
function() { return PROJECT.animator.playback; }
|
|
|
|
]
|
|
|
|
];
|
|
|
|
|
|
|
|
setHeight();
|
|
|
|
#endregion
|
|
|
|
}
|