window movement

This commit is contained in:
Kade M
2021-05-16 14:06:32 -07:00
parent eb214924dc
commit 65adb4294f
2 changed files with 22 additions and 2 deletions

View File

@ -543,6 +543,26 @@ class ModchartState
Application.current.window.y = y;
});
Lua_helper.add_callback(lua,"getWindowX",function() {
return Application.current.window.x;
});
Lua_helper.add_callback(lua,"getWindowY",function() {
return Application.current.window.y;
});
Lua_helper.add_callback(lua,"resizeWindow",function(Width:Int,Height:Int) {
Application.current.window.resize(Width,Height);
});
Lua_helper.add_callback(lua,"getScreenWidth",function() {
return Application.current.window.displayMode.width;
});
Lua_helper.add_callback(lua,"getScreenHeight",function() {
return Application.current.window.displayMode.height;
});
// tweens