41 lines
867 B
Plaintext
41 lines
867 B
Plaintext
objectdef MRBotController
|
|
{
|
|
variable string test = "just a test"
|
|
variable string StartButtonText = "Start"
|
|
variable string SettingsButtonText = "Show Settings"
|
|
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
|
|
}
|
|
|
|
method ToggleBot()
|
|
{
|
|
Event[MRBot_OnToggleBotButtonClicked]:Execute
|
|
}
|
|
|
|
method ToggleSettings()
|
|
{
|
|
Event[MRBot_OnSettingsButtonClicked]:Execute
|
|
}
|
|
}
|
|
|
|
variable(global) MRBotController BotController
|
|
; variable(global) MRSettingsController SettingsController
|
|
|
|
function main()
|
|
{
|
|
while 1
|
|
{
|
|
wait 5
|
|
}
|
|
} |