[Custom Views] Refactor ingame_ui fetching
This commit is contained in:
parent
f809f35a74
commit
948ce42bc4
1 changed files with 1 additions and 10 deletions
|
@ -398,13 +398,4 @@ end
|
|||
-- #####################################################################################################################
|
||||
|
||||
-- If VMF is reloaded mid-game, get ingame_ui.
|
||||
local ingame_ui_exists, ingame_ui_return = pcall(function()
|
||||
if VT1 then
|
||||
return Managers.player.network_manager.matchmaking_manager.matchmaking_ui.ingame_ui
|
||||
else
|
||||
return Managers.player.network_manager.matchmaking_manager._ingame_ui
|
||||
end
|
||||
end)
|
||||
if ingame_ui_exists then
|
||||
_ingame_ui = ingame_ui_return
|
||||
end
|
||||
_ingame_ui = Managers.matchmaking and Managers.matchmaking[VT1 and "ingame_ui" or "_ingame_ui"]
|
||||
|
|
Loading…
Add table
Reference in a new issue