mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 14:36:13 +01:00
18 lines
No EOL
326 B
Text
18 lines
No EOL
326 B
Text
/// @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(); |