2022-01-13 05:24:03 +01:00
|
|
|
/// @description init
|
|
|
|
if !ready exit;
|
|
|
|
|
|
|
|
#region base UI
|
2022-11-18 03:20:31 +01:00
|
|
|
draw_sprite_stretched(THEME.dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
|
2022-11-03 11:44:49 +01:00
|
|
|
if(sFOCUS)
|
2022-11-18 03:20:31 +01:00
|
|
|
draw_sprite_stretched_ext(THEME.dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h, COLORS._main_accent, 1);
|
2022-01-13 05:24:03 +01:00
|
|
|
|
2022-11-18 03:20:31 +01:00
|
|
|
draw_set_text(f_p0, fa_left, fa_top, COLORS._main_text_title);
|
2022-11-03 11:44:49 +01:00
|
|
|
draw_text(dialog_x + ui(24), dialog_y + ui(16), "Animation scaler");
|
2022-01-13 05:24:03 +01:00
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region scaler
|
2022-11-03 11:44:49 +01:00
|
|
|
var yy = dialog_y + ui(44);
|
2022-01-13 05:24:03 +01:00
|
|
|
|
2023-01-25 06:49:00 +01:00
|
|
|
tb_scale_frame.register();
|
2023-02-28 09:43:01 +01:00
|
|
|
tb_scale_frame.setActiveFocus(sFOCUS, sHOVER);
|
2022-11-18 03:20:31 +01:00
|
|
|
draw_set_text(f_p1, fa_left, fa_center, COLORS._main_text);
|
2022-11-03 11:44:49 +01:00
|
|
|
draw_text(dialog_x + ui(32), yy + ui(17), "Target frame length");
|
|
|
|
var tb_x = dialog_x + ui(200);
|
|
|
|
tb_scale_frame.draw(tb_x, yy, ui(96), TEXTBOX_HEIGHT, scale_to, mouse_ui);
|
2022-01-13 05:24:03 +01:00
|
|
|
|
2022-11-03 11:44:49 +01:00
|
|
|
var sx1 = tb_x + ui(96);
|
2022-11-18 03:20:31 +01:00
|
|
|
draw_set_text(f_p1, fa_right, fa_top, COLORS._main_text_sub);
|
2022-11-03 11:44:49 +01:00
|
|
|
draw_text(sx1, yy + ui(38), "Scaling factor: " + string(scale_to / ANIMATOR.frames_total));
|
2022-01-13 05:24:03 +01:00
|
|
|
|
2022-11-03 11:44:49 +01:00
|
|
|
var bx = sx1 + ui(16);
|
2022-09-21 06:09:40 +02:00
|
|
|
var by = yy;
|
2023-01-25 06:49:00 +01:00
|
|
|
|
|
|
|
b_apply.register();
|
2023-02-28 09:43:01 +01:00
|
|
|
b_apply.setActiveFocus(sFOCUS, sHOVER);
|
2023-01-25 06:49:00 +01:00
|
|
|
b_apply.draw(bx, by, ui(36), ui(36), mouse_ui, THEME.button_lime);
|
2022-01-13 05:24:03 +01:00
|
|
|
#endregion
|