parent
13baaecb11
commit
415128191c
|
|
@ -170,11 +170,11 @@ function this:UIChange()
|
||||||
|
|
||||||
--特权
|
--特权
|
||||||
local isActive = PrivilegeManager.GetPrivilegeOpenStatusById(33)
|
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.privilegePanel, "desc"):GetComponent("Text").text = GetLanguageStrById(PrivilegeConfig.Desc)
|
||||||
Util.GetGameObject(this.btnBuyPrivilege, "Text"):GetComponent("Text").text = MoneyUtil.GetMoney(PrivilegeConfig.Price)
|
Util.GetGameObject(this.btnBuyPrivilege, "Text"):GetComponent("Text").text = MoneyUtil.GetMoney(PrivilegeConfig.Price)
|
||||||
local grid = Util.GetGameObject(this.privilegePanel, "grid")
|
local grid = Util.GetGameObject(this.privilegePanel, "grid")
|
||||||
|
|
||||||
this.activatedPanel:SetActive(isActive)
|
this.activatedPanel:SetActive(isActive)
|
||||||
if isActive then
|
if isActive then
|
||||||
local time = PrivilegeManager.GetPrivilegeLeftTimeById(33)
|
local time = PrivilegeManager.GetPrivilegeLeftTimeById(33)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue