Pixel-Composer/objects/o_dialog_about/Draw_64.gml
2023-02-28 15:43:01 +07:00

26 lines
No EOL
910 B
Text

/// @description init
if !ready exit;
#region base UI
draw_sprite_stretched(THEME.dialog_bg, 0, dialog_x, dialog_y, dialog_w, dialog_h);
if(sFOCUS)
draw_sprite_stretched_ext(THEME.dialog_active, 0, dialog_x, dialog_y, dialog_w, dialog_h, COLORS._main_accent, 1);
#endregion
#region about
var cx = dialog_x + dialog_w / 2;
var ly = dialog_y + ui(96);
draw_sprite_ui_uniform(THEME.icon_64, 0, cx, dialog_y + ui(56));
draw_set_text(f_h3, fa_center, fa_top, COLORS._main_text_accent);
draw_text(cx, ly, "Pixel Composer");
ly += line_height();
draw_set_text(f_p0, fa_center, fa_top, COLORS._main_text_sub);
draw_text(cx, ly, "2021, MakhamDev");
var thank_y = dialog_y + ui(188);
draw_sprite_stretched(THEME.ui_panel_bg, 0, dialog_x + ui(24), thank_y - ui(8), dialog_w - ui(48), thank_h + ui(16));
sc_thank.setActiveFocus(sFOCUS, sHOVER);
sc_thank.draw(dialog_x + ui(32), thank_y);
#endregion