objectdef MRTestController
{
    method Initialize()
    {
        LGUI2:LoadPackageFile["window.json"]
    }

    method Shutdown()
    {
        LGUI2:UnloadPackageFile["window.json"]
    }

    method OnClose()
    {
        Script:End
    }
}

variable(global) MRTestController TestController

function main()
{
    LGUI2:LoadSkinFile["${LavishScript.HomeDirectory}/Scripts/mr/ui/mr.dark.skin.json"]
    LGUI2:PushSkin["mr.dark"]

    while 1
    {
        wait 5
    }

    LGUI2:PopSkin

}