【禁言功能】
parent
f52b234e1b
commit
8d233c01eb
|
@ -12,6 +12,7 @@ ServerConfigManager.SettingConfig = {
|
|||
IS_SHOW_HEALTH_TIP = "IS_SHOW_HEALTH_TIP", -- 是否显示健康提示
|
||||
NOTICE_CHANNEL = "NOTICE_CHANNEL", -- 公告号
|
||||
PACKAGE_CC_CODE = "PACKAGE_CC_CODE", -- CC号
|
||||
IS_NO_TALKING = "IS_NO_TALKING", -- 禁言
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -653,6 +653,18 @@ local ExceptPrefabList = {
|
|||
}
|
||||
-- 根据语言对界面显示进行修改
|
||||
function UIManager.DoLanguageCheck(gameObject)
|
||||
|
||||
-- 开启禁言
|
||||
if ServerConfigManager.IsSettingActive(ServerConfigManager.SettingConfig.IS_NO_TALKING)
|
||||
and gameObject.name ~= "LoginPanel"
|
||||
and gameObject.name ~= "GMPanel"
|
||||
and gameObject.name ~= "CDKeyExchangePanel"
|
||||
then
|
||||
local tfArr =gameObject:GetComponentsInChildren(typeof(UnityEngine.UI.InputField),true);
|
||||
for i = 0, tfArr.Length -1 do
|
||||
tfArr[i].readOnly = true
|
||||
end
|
||||
end
|
||||
-- 判断是否需要翻译
|
||||
if table.indexof(ExceptPrefabList, gameObject.name) then
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue