h1-mod/data/cdata/ui_scripts/patches/disable_useless_things.lua

20 lines
479 B
Lua
Raw Normal View History

if Engine.InFrontend() then
-- Disable CP
Engine.SetDvarInt("ui_enable_cp", 0)
2022-07-03 12:19:57 -04:00
-- Disable CP store
Engine.SetDvarInt("ui_show_store", 0)
2022-07-03 12:19:57 -04:00
-- Remove CoD account button
if Engine.IsMultiplayer() and CoD.IsCoDAccountRegistrationAvailableInMyRegion() then
LUI.removemenubutton("pc_controls", 4)
end
2022-07-03 12:19:57 -04:00
end
-- Remove social button
LUI.MenuBuilder.m_definitions["online_friends_widget"] = function()
return {
type = "UIElement"
}
end