【灵脉秘境】主动攻击不会产生红点
parent
99c4b8f81d
commit
ab4faba301
|
|
@ -32,7 +32,12 @@ function this:OnShow(_parent)
|
||||||
self.data = LingMaiMiJingManager.recordData
|
self.data = LingMaiMiJingManager.recordData
|
||||||
if #self.data > 0 then
|
if #self.data > 0 then
|
||||||
self.empty:SetActive(false)
|
self.empty:SetActive(false)
|
||||||
PlayerPrefs.SetString(PlayerManager.uid.."LingMai",self.data[1].time)
|
for i = 1, #this.recordData do
|
||||||
|
if this.recordData[i].time == 1 then
|
||||||
|
PlayerPrefs.SetString(PlayerManager.uid.."LingMai",self.data[1].time)
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
else
|
else
|
||||||
self.empty:SetActive(true)
|
self.empty:SetActive(true)
|
||||||
PlayerPrefs.SetString(PlayerManager.uid.."LingMai","")
|
PlayerPrefs.SetString(PlayerManager.uid.."LingMai","")
|
||||||
|
|
|
||||||
|
|
@ -138,16 +138,20 @@ function this.CheckRedPoint()
|
||||||
if not PlayerPrefs.GetString(PlayerManager.uid.."LingMai") then
|
if not PlayerPrefs.GetString(PlayerManager.uid.."LingMai") then
|
||||||
PlayerPrefs.SetString(PlayerManager.uid.."LingMai", "")
|
PlayerPrefs.SetString(PlayerManager.uid.."LingMai", "")
|
||||||
end
|
end
|
||||||
if PlayerPrefs.GetString(PlayerManager.uid.."LingMai") ~= tostring(this.recordData[1].time) then
|
for i = 1, #this.recordData do
|
||||||
return true
|
if PlayerPrefs.GetString(PlayerManager.uid.."LingMai") ~= tostring(this.recordData[i].time) and this.recordData[i].time == 1 then
|
||||||
|
return true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.CheckRecord()
|
function this.CheckRecord()
|
||||||
if this.recordData[1] then
|
for i = 1, #this.recordData do
|
||||||
return PlayerPrefs.GetString(PlayerManager.uid.."LingMai") ~= tostring(this.recordData[1].time)
|
if this.recordData[i].time == 1 then
|
||||||
|
return PlayerPrefs.GetString(PlayerManager.uid.."LingMai") ~= tostring(this.recordData[i].time)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -210,7 +210,7 @@ function LingMaiMiJingPanel:SetVeins()
|
||||||
end
|
end
|
||||||
Util.AddOnceClick(go,function ()
|
Util.AddOnceClick(go,function ()
|
||||||
if LingMaiMiJingManager.state == 1 then
|
if LingMaiMiJingManager.state == 1 then
|
||||||
UIManager.OpenPanel(UIName.PlayerInfoPopup, data.uid,PLAYER_INFO_VIEW_TYPE.LINGMAIMIJING,data.serverName and data.serverName or nil,data)
|
UIManager.OpenPanel(UIName.PlayerInfoPopup, data.uid,PLAYER_INFO_VIEW_TYPE.LINGMAIMIJING,data.servername and data.servername or nil,data)
|
||||||
else
|
else
|
||||||
PopupTipPanel.ShowTip("<color=red>灵脉秘境未开启!</color>")
|
PopupTipPanel.ShowTip("<color=red>灵脉秘境未开启!</color>")
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,10 @@ local this = GMPanel
|
||||||
"1#60198#6","1#60199#6","1#60201#6","1#60161#6","1#60162#6","1#60163#6","1#60164#6","1#60165#6","1#60166#6","1#60186#6","1#60187#6","1#60188#6","1#60189#6",
|
"1#60198#6","1#60199#6","1#60201#6","1#60161#6","1#60162#6","1#60163#6","1#60164#6","1#60165#6","1#60166#6","1#60186#6","1#60187#6","1#60188#6","1#60189#6",
|
||||||
"1#60178#6","1#60179#6","1#60202#6","1#60203#6","1#60204#6","1#60205#6","1#60206#6","1#60207#6","1#60208#6","1#60209#6","1#60210#6","1#60211#6","1#60212#6","1#60213#6",
|
"1#60178#6","1#60179#6","1#60202#6","1#60203#6","1#60204#6","1#60205#6","1#60206#6","1#60207#6","1#60208#6","1#60209#6","1#60210#6","1#60211#6","1#60212#6","1#60213#6",
|
||||||
}
|
}
|
||||||
local moneyList = {"1#14#2000000000","1#16#2000000000","1#74#99999", "1#87#99999", "1#1226#99999999", "1#5000050#99", "1#20007#10", "1#1203#10000", "1#3#500000000", "1#4#9999999", "1#20#999999",}
|
local moneyList = {"1#14#100000000","1#16#100000000","1#4#100000000","1#19#100000000","1#20#100000000","1#21#100000000","1#23#100000000","1#26#100000000","1#29#100000000","1#32#100000000","1#66#100000000",
|
||||||
|
"1#69#100000000","1#74#100000000","1#79#100000000","1#80#100000000","1#87#100000000","1#1001#100000000","1#1201#100000000","1#1202#100000000","1#1203#100000000","1#1204#100000000",
|
||||||
|
"1#1205#100000000","1#1206#100000000","1#1207#100000000","1#1208#100000000","1#1210#100000000","1#1211#100000000","1#1220#100000000","1#1228#100000000"
|
||||||
|
,"1#1229#100000000","1#1230#100000000","1#1231#100000000","1#1232#100000000","1#1240#100000000","1#1241#100000000","1#1242#100000000","1#1273#100000000"}
|
||||||
--初始化组件(用于子类重写)
|
--初始化组件(用于子类重写)
|
||||||
function GMPanel:InitComponent()
|
function GMPanel:InitComponent()
|
||||||
this.spLoader = SpriteLoader.New()
|
this.spLoader = SpriteLoader.New()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue