Pixel-Composer/objects/o_dialog_about/Draw_64.gml

26 lines
831 B
Plaintext
Raw Normal View History

2022-01-13 05:24:03 +01:00
/// @description init
if !ready exit;
#region base UI
draw_sprite_stretched(s_dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
2022-11-03 11:44:49 +01:00
if(sFOCUS)
2022-01-13 05:24:03 +01:00
draw_sprite_stretched(s_dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h);
#endregion
#region about
var cx = dialog_x + dialog_w / 2;
2022-11-03 11:44:49 +01:00
var ly = dialog_y + ui(96);
2022-01-13 05:24:03 +01:00
2022-11-03 11:44:49 +01:00
draw_sprite_ui_uniform(icon_64, 0, cx, dialog_y + ui(56));
2022-01-13 05:24:03 +01:00
draw_set_text(f_h3, fa_center, fa_top, c_ui_orange);
2022-11-03 11:44:49 +01:00
draw_text(cx, ly, "Pixel Composer");
2022-01-13 05:24:03 +01:00
2022-11-03 11:44:49 +01:00
ly += line_height();
2022-01-13 05:24:03 +01:00
draw_set_text(f_p0, fa_center, fa_top, c_ui_blue_ltgrey);
2022-11-03 11:44:49 +01:00
draw_text(cx, ly, "2021, MakhamDev");
2022-01-13 05:24:03 +01:00
2022-11-03 11:44:49 +01:00
var thank_y = dialog_y + ui(188);
draw_sprite_stretched(s_ui_panel_bg, 0, dialog_x + ui(24), thank_y - ui(8), dialog_w - ui(48), thank_h + ui(16));
sc_thank.active = sFOCUS;
sc_thank.draw(dialog_x + ui(32), thank_y);
2022-01-13 05:24:03 +01:00
#endregion