Pixel-Composer/objects/o_dialog_warning/Alarm_0.gml

15 lines
351 B
Plaintext
Raw Permalink Normal View History

2022-01-13 05:24:03 +01:00
/// @description init
#region size
2023-02-14 07:37:13 +01:00
draw_set_font(f_p2);
2022-01-13 05:24:03 +01:00
2023-02-14 07:37:13 +01:00
var ww = string_width_ext(warning_text, -1, 1000);
var hh = string_height_ext(warning_text, -1, ww);
2022-01-13 05:24:03 +01:00
2023-02-14 07:37:13 +01:00
dialog_w = ww + padding * 2 + ui(32);
dialog_h = hh + padding * 2;
dialog_x = clamp(x, 0, WIN_W - dialog_w);
dialog_y = clamp(y, 0, WIN_H - dialog_h);
2022-01-13 05:24:03 +01:00
#endregion
2023-03-30 07:54:25 +02:00
event_inherited();