diff --git a/src/gui/ControllerBindingsGui.hx b/src/gui/ControllerBindingsGui.hx index 3848b6c2..2143631a 100644 --- a/src/gui/ControllerBindingsGui.hx +++ b/src/gui/ControllerBindingsGui.hx @@ -90,7 +90,7 @@ class ControllerBindingsGui extends GuiImage { #if hl var scene2d = hxd.Window.getInstance(); #end - #if js + #if (js || uwp) var scene2d = MarbleGame.instance.scene2d; #end diff --git a/src/gui/InputSelectGui.hx b/src/gui/InputSelectGui.hx index 00c5ca93..694d417c 100644 --- a/src/gui/InputSelectGui.hx +++ b/src/gui/InputSelectGui.hx @@ -28,7 +28,7 @@ class InputSelectGui extends GuiImage { #if hl var scene2d = hxd.Window.getInstance(); #end - #if js + #if (js || uwp) var scene2d = MarbleGame.instance.scene2d; #end diff --git a/src/gui/LeaderboardsSelectGui.hx b/src/gui/LeaderboardsSelectGui.hx index 7a7b2d5f..01ddf4eb 100644 --- a/src/gui/LeaderboardsSelectGui.hx +++ b/src/gui/LeaderboardsSelectGui.hx @@ -28,7 +28,7 @@ class LeaderboardsSelectGui extends GuiImage { #if hl var scene2d = hxd.Window.getInstance(); #end - #if js + #if (js || uwp) var scene2d = MarbleGame.instance.scene2d; #end