Better fix
This commit is contained in:
parent
4377ececf6
commit
1d56b0f622
@ -63,9 +63,18 @@ function menu_xboxlive(f16_arg0, f16_arg1)
|
|||||||
Engine.ExecNow("eliteclan_refresh", Engine.GetFirstActiveController())
|
Engine.ExecNow("eliteclan_refresh", Engine.GetFirstActiveController())
|
||||||
end
|
end
|
||||||
|
|
||||||
menu:addElement(LUI.UITimer.new(4000, "vl"))
|
local root = Engine.GetLuiRoot()
|
||||||
menu:registerEventHandler("vl", function()
|
if (root.vltimer) then
|
||||||
|
root.vltimer:close()
|
||||||
|
end
|
||||||
|
|
||||||
|
root.vltimer = LUI.UITimer.new(4000, "vl")
|
||||||
|
root:addElement(root.vltimer)
|
||||||
|
root:registerEventHandler("vl", function()
|
||||||
|
if (Engine.GetDvarBool("virtualLobbyReady")) then
|
||||||
|
root.vltimer:close()
|
||||||
game:virtuallobbypresentable()
|
game:virtuallobbypresentable()
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
return menu
|
return menu
|
||||||
|
@ -339,8 +339,7 @@ namespace ui_scripting
|
|||||||
|
|
||||||
game_type["virtuallobbypresentable"] = [](const game&)
|
game_type["virtuallobbypresentable"] = [](const game&)
|
||||||
{
|
{
|
||||||
static const auto presentable = ::game::Dvar_FindVar("virtualLobbyPresentable");
|
::game::Dvar_SetFromStringByNameFromSource("virtualLobbyPresentable", "1", ::game::DvarSetSource::DVAR_SOURCE_INTERNAL);
|
||||||
presentable->current.enabled = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
auto updater_table = table();
|
auto updater_table = table();
|
||||||
|
Loading…
Reference in New Issue
Block a user