Pixel-Composer/objects/o_dialog_animation/Create_0.gml

25 lines
552 B
Plaintext
Raw Normal View History

2022-01-13 05:24:03 +01:00
/// @description init
event_inherited();
#region data
anchor = ANCHOR.right | ANCHOR.bottom;
2022-11-03 11:44:49 +01:00
dialog_w = ui(368);
dialog_h = ui(188);
2022-01-13 05:24:03 +01:00
destroy_on_click_out = true;
#endregion
#region data
tb_length = new textBox(TEXTBOX_INPUT.number, function(str) {
2023-07-06 19:49:16 +02:00
PROJECT.animator.frames_total = real(str);
2022-01-13 05:24:03 +01:00
})
tb_framerate = new textBox(TEXTBOX_INPUT.number, function(str) {
2023-07-06 19:49:16 +02:00
PROJECT.animator.framerate = real(str);
2022-01-13 05:24:03 +01:00
})
2023-07-30 13:56:22 +02:00
eb_playback = new buttonGroup([__txt("Loop"), __txt("Stop")], function(b) {
2023-07-06 19:49:16 +02:00
PROJECT.animator.playback = b;
2022-01-13 05:24:03 +01:00
});
#endregion