mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-11 13:03:49 +01:00
18 lines
326 B
Plaintext
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(); |