Files
CodenameEngine/source/funkin/desktop/windows/WindowGroup.hx
T
2022-10-20 22:53:11 +02:00

20 lines
532 B
Haxe

package funkin.desktop.windows;
import flixel.group.FlxGroup.FlxTypedGroup;
class WindowGroup extends FlxTypedGroup<Window> {
public override function update(elapsed:Float) {
// update them backwards, so that the top most window gets the priority
var i = length-1;
while(i >= 0) {
var window = members[i];
if (window == null || !window.exists) {
i--;
continue;
}
window.update(elapsed);
i--;
}
}
}