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 = [
|
2023-10-31 15:24:54 +01:00
|
|
|
new __Panel_Linear_Setting_Item(
|
2023-08-29 14:33:44 +02:00
|
|
|
__txtx("anim_length", "Animation length"),
|
2023-10-31 15:24:54 +01:00
|
|
|
new textBox(TEXTBOX_INPUT.number, function(str) { TOTAL_FRAMES = real(str); }),
|
2023-10-09 16:07:33 +02:00
|
|
|
function() { return TOTAL_FRAMES; }
|
2023-10-31 15:24:54 +01:00
|
|
|
),
|
|
|
|
new __Panel_Linear_Setting_Item(
|
2023-08-29 14:33:44 +02:00
|
|
|
__txtx("anim_frame_rate", "Preview frame rate"),
|
2023-10-31 15:24:54 +01:00
|
|
|
new textBox(TEXTBOX_INPUT.number, function(str) { PROJECT.animator.framerate = real(str); }),
|
2023-08-29 14:33:44 +02:00
|
|
|
function() { return PROJECT.animator.framerate; }
|
2023-10-31 15:24:54 +01:00
|
|
|
),
|
|
|
|
new __Panel_Linear_Setting_Item(
|
2023-08-29 14:33:44 +02:00
|
|
|
__txtx("anim_on_end", "On end"),
|
2024-07-29 06:58:47 +02:00
|
|
|
new buttonGroup([ __txt("Loop"), __txt("Stop"), __txt("Ping Pong")], function(b) { PROJECT.animator.playback = b; }),
|
2023-08-29 14:33:44 +02:00
|
|
|
function() { return PROJECT.animator.playback; }
|
2023-10-31 15:24:54 +01:00
|
|
|
),
|
2023-08-29 14:33:44 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
setHeight();
|
|
|
|
#endregion
|
|
|
|
}
|