Pixel-Composer/objects/o_dialog_file_name/Draw_64.gml

15 lines
459 B
Text
Raw Normal View History

2022-01-13 11:24:03 +07:00
/// @description init
#region base UI
2022-11-18 09:20:31 +07:00
draw_sprite_stretched(THEME.textbox, 1, dialog_x, dialog_y, dialog_w, dialog_h);
2022-01-13 11:24:03 +07:00
#endregion
#region draw TB
2022-11-18 09:20:31 +07:00
draw_set_text(f_p0, fa_left, fa_center, COLORS._main_text_title);
draw_text(dialog_x + ui(8), dialog_y + dialog_h / 2, "Name");
2022-01-13 11:24:03 +07:00
2022-11-03 17:44:49 +07:00
tb_name.active = sFOCUS;
tb_name.hover = sHOVER;
2022-01-13 11:24:03 +07:00
2022-11-03 17:44:49 +07:00
tb_name.draw(dialog_x + ui(64), dialog_y + ui(8), dialog_w - ui(72), dialog_h - ui(16),
"New file", mouse_ui);
2022-01-13 11:24:03 +07:00
#endregion