Pixel-Composer/objects/o_video_banner/Draw_75.gml

27 lines
748 B
Text
Raw Normal View History

2023-12-24 12:06:44 +01:00
/// @description Insert description here
if(mouse_press(mb_middle)) anim = 0;
prog = lerp_linear(prog, anim, 0.05);
if(prog == 0) instance_destroy();
surface = surface_verify(surface, w, h);
surface_set_target(surface);
DRAW_CLEAR
2023-12-25 12:51:12 +01:00
draw_sprite_stretched(s_dialog_bg_l, 0, 0, 0, w, h);
2023-12-24 12:06:44 +01:00
draw_sprite(s_icon_64, 0, h / 2, h / 2);
draw_set_text(f_h2, fa_left, fa_bottom, c_white);
draw_text(210, h / 2 + 12, "Pixel Composer");
draw_set_text(f_h3, fa_left, fa_top, c_white);
draw_set_alpha(0.7);
2023-12-29 14:30:54 +01:00
draw_text(210, h / 2 + 10, title);
2023-12-24 12:06:44 +01:00
draw_set_alpha(1);
surface_reset_target();
x0 = WIN_W / 2 - w / 2;
y0 = WIN_H / 2 - h / 2 - (1 - prog) * 128;
draw_surface_ext(surface, x0, y0, 1, 1, 0, c_white, animation_curve_eval(ac_disappear, prog));