2022-01-13 05:24:03 +01:00
|
|
|
/// @description tooltip filedrop
|
|
|
|
#region tooltip
|
|
|
|
if(TOOLTIP != "") {
|
|
|
|
draw_set_text(f_p0, fa_left, fa_top, c_white);
|
2022-01-16 05:17:35 +01:00
|
|
|
|
2022-01-13 05:24:03 +01:00
|
|
|
var mx = mouse_mx + 16;
|
|
|
|
var my = mouse_my + 16;
|
|
|
|
|
2022-01-23 04:08:16 +01:00
|
|
|
var tw = string_width(TOOLTIP);
|
|
|
|
var th = string_height(TOOLTIP);
|
2022-01-13 05:24:03 +01:00
|
|
|
|
2022-01-16 05:17:35 +01:00
|
|
|
if(mouse_mx + tw > WIN_W - 32)
|
|
|
|
mx = mouse_mx - 16 - tw;
|
|
|
|
if(mouse_my + th > WIN_H - 32)
|
2022-01-13 05:24:03 +01:00
|
|
|
my = mouse_my - 16 - th;
|
|
|
|
|
|
|
|
draw_sprite_stretched(s_textbox, 0, mx - 8, my - 8, tw + 16, th + 16);
|
2022-01-23 04:08:16 +01:00
|
|
|
draw_text(mx, my, TOOLTIP);
|
2022-01-13 05:24:03 +01:00
|
|
|
}
|
|
|
|
TOOLTIP = "";
|
|
|
|
#endregion
|