h1-mod/data/cdata/ui_scripts/patches/disable_useless_things.lua
Vlad 82eea7abe0 Minor fix (#422)
* Re-enable disable_useless_things.lua

* Minor localization changes (sync with H2)

* Update language.lua & stats/init.lua

* Fix for HUD ammo zeros
* Language: Reorganizing items on menu
* Stats: Fix localized headers
2022-12-22 08:51:33 -06:00

20 lines
479 B
Lua

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