@@ -9,6 +9,7 @@ class WindowFunctions
99 var lua = funk .lua ;
1010 var game : PlayState = PlayState .instance ;
1111
12+ #if windows
1213 Lua_helper .add_callback (lua , " setWindowOppacity" , function (num : Float ) {
1314 CppAPI .setWindowOppacity (num );
1415 });
@@ -40,7 +41,7 @@ class WindowFunctions
4041 Lua_helper .add_callback (lua , " windowX" , function () {
4142 return Window .x ;
4243 });
43-
44+
4445 Lua_helper .add_callback (lua , " windowY" , function () {
4546 return Window .y ;
4647 });
@@ -56,12 +57,12 @@ class WindowFunctions
5657 Lua_helper .add_callback (lua , " windowTitle" , function () {
5758 return Window .title ;
5859 });
59-
60+
6061 Lua_helper .add_callback (lua , " windowReset" , function () {
6162 WindowUtils .resetTitle ();
6263 Window .reset ();
6364 });
64-
65+
6566 Lua_helper .add_callback (lua , " windowSetPos" , function (x : Int , y : Int ) {
6667 Window .setPos (x , y );
6768 });
@@ -89,5 +90,6 @@ class WindowFunctions
8990 Lua_helper .add_callback (lua , " setTransparency" , function (color : Int , ? winName : String ) {
9091 CppAPI .setTransparency (winName , color );
9192 });
93+ #end
9294 }
93- }
95+ }
0 commit comments