Pixel-Composer/objects/o_dialog_command_palette/Draw_64.gml

21 lines
1.0 KiB
Plaintext
Raw Normal View History

2024-08-10 09:12:20 +02:00
/// @description init
2024-09-14 07:37:19 +02:00
var _dialog_pd = 12;
// draw_sprite_stretched(THEME.textbox, 3, dialog_x, dialog_y, dialog_w, dialog_h);
draw_sprite_stretched(THEME.dialog, 0, dialog_x - _dialog_pd, dialog_y - _dialog_pd, dialog_w + _dialog_pd * 2, dialog_h + _dialog_pd * 2);
2024-08-10 09:12:20 +02:00
2024-09-10 11:48:51 +02:00
WIDGET_CURRENT = tb_search;
2024-08-10 15:32:50 +02:00
tb_search.setFocusHover(sHOVER, sFOCUS);
tb_search.draw(dialog_x + ui(32), dialog_y, dialog_w - ui(32), ui(32), search_string);
2024-08-10 09:12:20 +02:00
tb_search.sprite_index = 0;
2024-08-10 15:32:50 +02:00
draw_sprite_ext(THEME.search, 0, dialog_x + ui(20), dialog_y + ui(16), 1, 1, 0, COLORS._main_icon, 1);
2024-08-10 09:12:20 +02:00
sc_content.setFocusHover(sFOCUS, sHOVER);
sc_content.draw(dialog_x, dialog_y + ui(32));
draw_set_color(CDEF.main_dkgrey);
draw_line(dialog_x, dialog_y + ui(32), dialog_x + dialog_w - 1, dialog_y + ui(32));
2024-09-14 07:37:19 +02:00
// draw_sprite_stretched_ext(THEME.textbox, 1, dialog_x, dialog_y, dialog_w, dialog_h, c_white);
draw_sprite_stretched_ext(THEME.dialog, 1, dialog_x - _dialog_pd, dialog_y - _dialog_pd, dialog_w + _dialog_pd * 2, dialog_h + _dialog_pd * 2, COLORS._main_icon, .2);