Pixel-Composer/objects/o_dialog_scrollbox/Alarm_0.gml

18 lines
326 B
Plaintext
Raw Normal View History

2022-01-13 05:24:03 +01:00
/// @description init
#region pos
2022-11-03 11:44:49 +01:00
var hght = line_height(f_p0, 8);
2023-02-17 11:31:33 +01:00
var hh = 0;
for( var i = 0; i < array_length(scrollbox.data); i++ ) {
if(scrollbox.data[i] == -1) {
hh += ui(8);
continue;
}
hh += hght;
}
2022-01-13 05:24:03 +01:00
2022-12-16 09:18:09 +01:00
dialog_h = min(max_h, hh);
sc_content.resize(dialog_w, dialog_h);
2022-01-13 05:24:03 +01:00
#endregion
2022-11-03 11:44:49 +01:00
event_inherited();