mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-14 06:23:55 +01:00
cc527b55a6
- Add reset button for most config dialog.
27 lines
913 B
Plaintext
27 lines
913 B
Plaintext
function Panel_Animation_Setting() : Panel_Linear_Setting() constructor {
|
|
title = __txtx("animation_settings", "Animation Settings");
|
|
|
|
w = ui(380);
|
|
|
|
#region data
|
|
properties = [
|
|
new __Panel_Linear_Setting_Item(
|
|
__txtx("anim_length", "Animation length"),
|
|
new textBox(TEXTBOX_INPUT.number, function(str) { TOTAL_FRAMES = real(str); }),
|
|
function() { return TOTAL_FRAMES; }
|
|
),
|
|
new __Panel_Linear_Setting_Item(
|
|
__txtx("anim_frame_rate", "Preview frame rate"),
|
|
new textBox(TEXTBOX_INPUT.number, function(str) { PROJECT.animator.framerate = real(str); }),
|
|
function() { return PROJECT.animator.framerate; }
|
|
),
|
|
new __Panel_Linear_Setting_Item(
|
|
__txtx("anim_on_end", "On end"),
|
|
new buttonGroup([__txt("Loop"), __txt("Stop")], function(b) { PROJECT.animator.playback = b; }),
|
|
function() { return PROJECT.animator.playback; }
|
|
),
|
|
];
|
|
|
|
setHeight();
|
|
#endregion
|
|
} |