objectdef MRBotController { variable string test = "just a test" method Initialize() { LGUI2:LoadPackageFile["${LavishScript.HomeDirectory}/scripts/mr/ui/bot_window.json"] } method Shutdown() { LGUI2:UnloadPackageFile["${LavishScript.HomeDirectory}/scripts/mr/ui/bot_window.json"] } method OnClose() { Event[MRBot_OnCloseButtonClicked]:Execute } } variable(global) MRBotController BotController ; variable(global) MRSettingsController SettingsController function main() { while 1 { wait 5 } }