Disable useless things (#153)
This commit is contained in:
@ -6,6 +6,7 @@ if (Engine.InFrontend()) then
|
||||
require("shaderdialog")
|
||||
require("gamemodes")
|
||||
require("no_mode_switch")
|
||||
require("disable_useless_things")
|
||||
end
|
||||
|
||||
-- defined in mp_hud/hudutils.lua
|
||||
|
17
data/ui_scripts/patches/disable_useless_things.lua
Normal file
17
data/ui_scripts/patches/disable_useless_things.lua
Normal file
@ -0,0 +1,17 @@
|
||||
-- Disable CP
|
||||
Engine.SetDvarInt("ui_enable_cp", 0)
|
||||
|
||||
-- Disable CP store
|
||||
Engine.SetDvarInt("ui_show_store", 0)
|
||||
|
||||
-- Remove CoD account button
|
||||
if Engine.IsMultiplayer() then
|
||||
LUI.removemenubutton("pc_controls", 4)
|
||||
end
|
||||
|
||||
-- Remove social button
|
||||
LUI.MenuBuilder.m_definitions["online_friends_widget"] = function()
|
||||
return {
|
||||
type = "UIElement"
|
||||
}
|
||||
end
|
Reference in New Issue
Block a user