File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,8 @@ class FlxInputText extends FlxText
288288 drawSprite (fieldBorderSprite );
289289 drawSprite (backgroundSprite );
290290
291- for (camera in getCamerasLegacy ())
291+ final defaultCameras = #if (flixel < version("5.7.0")) cameras #else getCamerasLegacy () #end;
292+ for (camera in defaultCameras )
292293 {
293294 if (! camera .visible || ! camera .exists || ! isOnScreen (camera ))
294295 continue ;
Original file line number Diff line number Diff line change @@ -326,7 +326,11 @@ class FlxUITypedButton<T:FlxSprite> extends FlxTypedButton<T> implements IFlxUIB
326326 {
327327 if (has_toggle && toggled )
328328 {
329+ #if (flixel < version("5.7.0"))
330+ animation .play (getToggleStatusAnimation ((cast status : FlxButtonState )));
331+ #else
329332 animation .play (getToggleStatusAnimation (status ));
333+ #end
330334 }
331335 else
332336 {
You can’t perform that action at this time.
0 commit comments