PC-202302260912\Administrator 2025-07-22 19:02:44 +08:00
parent 13baaecb11
commit 415128191c
1 changed files with 2 additions and 2 deletions

View File

@ -170,11 +170,11 @@ function this:UIChange()
--特权
local isActive = PrivilegeManager.GetPrivilegeOpenStatusById(33)
this.privilegePanel:SetActive(not isActive)
local channelConfig = GetChannelConfig()
this.privilegePanel:SetActive(not isActive and channelConfig.Button_PlayerSet_Exchange)
Util.GetGameObject(this.privilegePanel, "desc"):GetComponent("Text").text = GetLanguageStrById(PrivilegeConfig.Desc)
Util.GetGameObject(this.btnBuyPrivilege, "Text"):GetComponent("Text").text = MoneyUtil.GetMoney(PrivilegeConfig.Price)
local grid = Util.GetGameObject(this.privilegePanel, "grid")
this.activatedPanel:SetActive(isActive)
if isActive then
local time = PrivilegeManager.GetPrivilegeLeftTimeById(33)