Pixel-Composer/objects/o_dialog_scrollbox_horizontal/Draw_64.gml

21 lines
786 B
Text
Raw Normal View History

2024-07-15 10:43:30 +02:00
/// @description init
#region draw
draw_sprite_stretched(THEME.textbox, 3, dialog_x, dialog_y, dialog_w, dialog_h);
2024-07-16 02:19:28 +02:00
var _tpad = horizon? text_pad : ui(8);
2024-07-15 10:43:30 +02:00
WIDGET_CURRENT = tb_search;
tb_search.setFocusHover(true, true);
tb_search.draw(dialog_x + ui(8), dialog_y + ui(8), dialog_w - ui(16) - ui(24 + 4), ui(24), search_string);
2024-07-15 10:43:30 +02:00
tb_search.sprite_index = 0;
sc_content.setFocusHover(sFOCUS, sHOVER);
2024-07-16 02:19:28 +02:00
sc_content.draw(dialog_x + _tpad, dialog_y + ui(40));
2024-07-15 10:43:30 +02:00
draw_sprite_stretched(THEME.textbox, 1, dialog_x, dialog_y, dialog_w, dialog_h);
2024-12-16 12:03:02 +01:00
if(buttonInstant(THEME.button_hide, dialog_x + dialog_w - ui(8) - ui(24), dialog_y + ui(8), ui(24), ui(24), mouse_ui, sHOVER, sFOCUS, "", THEME.scrollbox_direction, horizon) == 2) {
horizon = !horizon;
setSize();
}
2024-07-15 10:43:30 +02:00
#endregion