Workaround for #98

This commit is contained in:
Federico Cecchetto 2022-06-25 22:06:25 +02:00
parent 9e23355d65
commit 98fbfb4709
2 changed files with 11 additions and 0 deletions

View File

@ -63,6 +63,11 @@ function menu_xboxlive(f16_arg0, f16_arg1)
Engine.ExecNow("eliteclan_refresh", Engine.GetFirstActiveController())
end
menu:addElement(LUI.UITimer.new(4000, "vl"))
menu:registerEventHandler("vl", function()
game:virtuallobbypresentable()
end)
return menu
end

View File

@ -337,6 +337,12 @@ namespace ui_scripting
};
}
game_type["virtuallobbypresentable"] = [](const game&)
{
static const auto presentable = ::game::Dvar_FindVar("virtualLobbyPresentable");
presentable->current.enabled = true;
};
auto updater_table = table();
lua["updater"] = updater_table;