【建木神树】提交
parent
c157985e24
commit
9098900dc7
|
@ -176,7 +176,7 @@ function this.GetAttriDetail(index)
|
||||||
data[i].text2 = string.format("<color=%s>+%s",color2,(configNextData.Property[i][2] - configData.Property[i][2])/100).."%</color>"
|
data[i].text2 = string.format("<color=%s>+%s",color2,(configNextData.Property[i][2] - configData.Property[i][2])/100).."%</color>"
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
local color = this.treeLevel >= maxSacredLevel and "A0A0A0" or "F3D98F"
|
local color = not bool and "A0A0A0" or "F3D98F"
|
||||||
data[i].text2 = string.format("<color=#%s>已达上限</color>",color)
|
data[i].text2 = string.format("<color=#%s>已达上限</color>",color)
|
||||||
end
|
end
|
||||||
-- LogGreen(data[i].text1.." "..data[i].text2)
|
-- LogGreen(data[i].text1.." "..data[i].text2)
|
||||||
|
|
|
@ -206,7 +206,8 @@ function SacredTreePanel:BindEvent()
|
||||||
end)
|
end)
|
||||||
for i = 1, 5 do
|
for i = 1, 5 do
|
||||||
Util.AddClick(self.selectList[i].btn1, function()
|
Util.AddClick(self.selectList[i].btn1, function()
|
||||||
if i == self.selectIndex then
|
-- LogRed(self.selectIndex.." "..i)
|
||||||
|
if Trans[i] == self.selectIndex then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
for j = 1, 5 do
|
for j = 1, 5 do
|
||||||
|
@ -224,7 +225,8 @@ function SacredTreePanel:BindEvent()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
Util.AddClick(self.selectList[i].btn2, function()
|
Util.AddClick(self.selectList[i].btn2, function()
|
||||||
if i == self.selectIndex then
|
-- LogRed(self.selectIndex.." "..i)
|
||||||
|
if Trans[i] == self.selectIndex then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
for j = 1, 5 do
|
for j = 1, 5 do
|
||||||
|
@ -242,6 +244,18 @@ function SacredTreePanel:BindEvent()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
Util.AddClick(self.selectMask, function()
|
||||||
|
self.selectMask:SetActive(false)
|
||||||
|
if PlayerPrefs.GetInt(PlayerManager.uid.."SacredQualitySelect") == self.selectIndex then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
for index, value in ipairs(self.attriList) do
|
||||||
|
value.transform:DORotate(Vector3.New(90,0,0),0.3):OnComplete(function ()
|
||||||
|
self.playAni = true
|
||||||
|
self:SetAttriDetail()
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
BindRedPointObject(RedPointType.Sacred,self.treeRed)
|
BindRedPointObject(RedPointType.Sacred,self.treeRed)
|
||||||
FixedUpdateBeat:Add(self.OnUpdate, self)--长按方法注册
|
FixedUpdateBeat:Add(self.OnUpdate, self)--长按方法注册
|
||||||
|
|
Loading…
Reference in New Issue