Pixel-Composer/objects/o_dialog_scrollbox/Alarm_0.gml
2023-02-17 17:31:33 +07:00

18 lines
326 B
Plaintext

/// @description init
#region pos
var hght = line_height(f_p0, 8);
var hh = 0;
for( var i = 0; i < array_length(scrollbox.data); i++ ) {
if(scrollbox.data[i] == -1) {
hh += ui(8);
continue;
}
hh += hght;
}
dialog_h = min(max_h, hh);
sc_content.resize(dialog_w, dialog_h);
#endregion
event_inherited();