【玩家信息】红点问题修复 和log清楚
parent
7118f60b9c
commit
4b708011bc
|
@ -589,7 +589,7 @@ function this.GetContinuityRechargeRedPoint()
|
||||||
redPoint = redPoint or (rechargeInfo.progress == 1 and rechargeInfo.state == 0)
|
redPoint = redPoint or (rechargeInfo.progress == 1 and rechargeInfo.state == 0)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
LogGreen("积天豪礼红点:"..tostring(redPoint))
|
-- LogGreen("积天豪礼红点:"..tostring(redPoint))
|
||||||
return redPoint
|
return redPoint
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ function EnemyView:onCreate(go, role, position, root, isBoss)
|
||||||
self.RoleLiveGO:GetComponent("RectTransform").anchoredPosition = Vector2.New(self.outOffset[1], self.outOffset[2])-- * 0.5
|
self.RoleLiveGO:GetComponent("RectTransform").anchoredPosition = Vector2.New(self.outOffset[1], self.outOffset[2])-- * 0.5
|
||||||
self.RoleLiveGO.transform.localScale = Vector3.one * self.enemy_liveScale --* 0.75
|
self.RoleLiveGO.transform.localScale = Vector3.one * self.enemy_liveScale --* 0.75
|
||||||
self.RoleLiveGO:SetActive(true)
|
self.RoleLiveGO:SetActive(true)
|
||||||
Log("IsBoss: "..tostring(self.isBoss))
|
-- Log("IsBoss: "..tostring(self.isBoss))
|
||||||
if self.isBoss then
|
if self.isBoss then
|
||||||
self.RoleLiveGO.transform.localScale = self.RoleLiveGO.transform.localScale * 1.5 -- boss 放大1.5倍
|
self.RoleLiveGO.transform.localScale = self.RoleLiveGO.transform.localScale * 1.5 -- boss 放大1.5倍
|
||||||
end
|
end
|
||||||
|
|
|
@ -33,12 +33,12 @@ function ActivityMainPanel:BindEvent()
|
||||||
Util.AddClick(this.btnBack, function()
|
Util.AddClick(this.btnBack, function()
|
||||||
DynamicActivityManager.RemoveUIList()
|
DynamicActivityManager.RemoveUIList()
|
||||||
if #DynamicActivityManager.OpenUIList > 0 then
|
if #DynamicActivityManager.OpenUIList > 0 then
|
||||||
LogRed("jump ")
|
-- LogRed("jump ")
|
||||||
JumpManager.GoJump(DynamicActivityManager.OpenUIList[#DynamicActivityManager.OpenUIList],function()
|
JumpManager.GoJump(DynamicActivityManager.OpenUIList[#DynamicActivityManager.OpenUIList],function()
|
||||||
DynamicActivityManager.RemoveUIList()
|
DynamicActivityManager.RemoveUIList()
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
LogRed("close ")
|
-- LogRed("close ")
|
||||||
this:ClosePanel()
|
this:ClosePanel()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
@ -77,7 +77,7 @@ function ActivityMainPanel:CheckActOpen(_index)
|
||||||
else
|
else
|
||||||
_CurPageIndex = _index
|
_CurPageIndex = _index
|
||||||
end
|
end
|
||||||
LogGreen(tabs[_index].ActiveType.." _CurPageIndex:".._CurPageIndex)
|
Log("当前界面:"..tabs[_index].ActiveType.." _CurPageIndex:".._CurPageIndex)
|
||||||
end
|
end
|
||||||
elseif tabs[_index].FunType > 0 then
|
elseif tabs[_index].FunType > 0 then
|
||||||
if ActTimeCtrlManager.SingleFuncState(tabs[_index].FunType) then
|
if ActTimeCtrlManager.SingleFuncState(tabs[_index].FunType) then
|
||||||
|
|
|
@ -247,7 +247,7 @@ function this:SetInitList()
|
||||||
end
|
end
|
||||||
this.ChooseDataList = tempTable
|
this.ChooseDataList = tempTable
|
||||||
|
|
||||||
LogBlue("#this.ChooseDataList长度:"..#this.ChooseDataList)
|
-- LogBlue("#this.ChooseDataList长度:"..#this.ChooseDataList)
|
||||||
end
|
end
|
||||||
--初始化 鸿蒙塔的数据
|
--初始化 鸿蒙塔的数据
|
||||||
function this:SetTowerInit()
|
function this:SetTowerInit()
|
||||||
|
|
|
@ -124,7 +124,6 @@ function MailMainPanel:OnOpen(...)
|
||||||
openPanel=data[1]
|
openPanel=data[1]
|
||||||
end
|
end
|
||||||
function MailMainPanel:OnShow()
|
function MailMainPanel:OnShow()
|
||||||
Log("MailMainPanel:OnShow")
|
|
||||||
isPlayAnim = true
|
isPlayAnim = true
|
||||||
allMail={}
|
allMail={}
|
||||||
NetManager.GetAllMailData(function ()
|
NetManager.GetAllMailData(function ()
|
||||||
|
@ -140,7 +139,7 @@ end
|
||||||
local maildataCount=0--数据数量
|
local maildataCount=0--数据数量
|
||||||
--设置英雄列表数据
|
--设置英雄列表数据
|
||||||
function this.OnShowMailListData(_allMail, isTop,isAni)
|
function this.OnShowMailListData(_allMail, isTop,isAni)
|
||||||
LogRed("isTop "..tostring(isTop).." isAni "..tostring(isAni))
|
-- LogRed("isTop "..tostring(isTop).." isAni "..tostring(isAni))
|
||||||
allMail= _allMail
|
allMail= _allMail
|
||||||
this:SortAllMail(allMail)
|
this:SortAllMail(allMail)
|
||||||
maildataCount=#allMail
|
maildataCount=#allMail
|
||||||
|
|
|
@ -55,7 +55,7 @@ function this.OnShowPanelData(isTop,isAni)
|
||||||
table.insert(AllData,v)
|
table.insert(AllData,v)
|
||||||
end
|
end
|
||||||
this.RewardTabsSort(AllData)
|
this.RewardTabsSort(AllData)
|
||||||
LogRed("isTop "..tostring(not isTop).." isAni "..tostring(not isAni))
|
-- LogRed("isTop "..tostring(not isTop).." isAni "..tostring(not isAni))
|
||||||
this.ScrollView:SetData(AllData, function (index, go)
|
this.ScrollView:SetData(AllData, function (index, go)
|
||||||
this.SingleDataShow(go, AllData[index])
|
this.SingleDataShow(go, AllData[index])
|
||||||
end, not isTop,not isAni)
|
end, not isTop,not isAni)
|
||||||
|
|
|
@ -153,7 +153,6 @@ function this.InitTaskData(curData,taskType,configName)
|
||||||
allListData[i].Integral[1][2]
|
allListData[i].Integral[1][2]
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
data.type = allListData[i].Type
|
data.type = allListData[i].Type
|
||||||
data.jump = allListData[i].Jump[1]
|
data.jump = allListData[i].Jump[1]
|
||||||
table.insert(curData.rewards,data)
|
table.insert(curData.rewards,data)
|
||||||
|
@ -310,7 +309,7 @@ function this.InitSingleTypeData(actType)
|
||||||
local data = ActivityGiftManager.GetActivityTypeInfo(actType)
|
local data = ActivityGiftManager.GetActivityTypeInfo(actType)
|
||||||
if data then
|
if data then
|
||||||
singleTypeData = {}
|
singleTypeData = {}
|
||||||
LogYellow("InitData activityId:"..tostring(data.activityId).." value:"..tostring(data.value).." startTime:"..tostring(data.startTime).." endTime:"..tostring(data.endTime).." mission:"..tostring(#data.mission))
|
Log("InitData activityId:"..tostring(data.activityId).." value:"..tostring(data.value).." startTime:"..tostring(data.startTime).." endTime:"..tostring(data.endTime).." mission:"..tostring(#data.mission))
|
||||||
singleTypeData.activityId = data.activityId
|
singleTypeData.activityId = data.activityId
|
||||||
singleTypeData.value = data.value
|
singleTypeData.value = data.value
|
||||||
singleTypeData.startTime = data.startTime
|
singleTypeData.startTime = data.startTime
|
||||||
|
|
|
@ -105,7 +105,11 @@ function PlayerInfoView:OnShow()
|
||||||
self.playerHead:SetPosition(Vector3.New(-5, 8, 0))
|
self.playerHead:SetPosition(Vector3.New(-5, 8, 0))
|
||||||
-- self.playerHead:SetLayer(self.sortingOrder)
|
-- self.playerHead:SetLayer(self.sortingOrder)
|
||||||
self.playerHead:SetEffectScale(0.85)
|
self.playerHead:SetEffectScale(0.85)
|
||||||
|
CheckRedPointStatus(RedPointType.VipPrivilege)
|
||||||
|
CheckRedPointStatus(RedPointType.Setting_Ride)
|
||||||
|
CheckRedPointStatus(RedPointType.Setting_Title)
|
||||||
|
CheckRedPointStatus(RedPointType.HeadChange_Frame)
|
||||||
|
CheckRedPointStatus(RedPointType.HeadChange_Head)
|
||||||
end
|
end
|
||||||
|
|
||||||
function PlayerInfoView:RefreshPower(force)
|
function PlayerInfoView:RefreshPower(force)
|
||||||
|
|
|
@ -204,31 +204,31 @@ function UpView:UpdateGoldVal()
|
||||||
for i = 1, _ItemMaxNum do
|
for i = 1, _ItemMaxNum do
|
||||||
if panelShowItemList[i] then
|
if panelShowItemList[i] then
|
||||||
if self.cnyList[i].gameObject then
|
if self.cnyList[i].gameObject then
|
||||||
self.cnyList[i]:SetActive(true)
|
self.cnyList[i].gameObject:SetActive(true)
|
||||||
Util.GetGameObject(self.cnyList[i], "icon"):GetComponent("Image").sprite = SetIcon(self.spLoader, panelShowItemList[i])
|
Util.GetGameObject(self.cnyList[i].gameObject, "icon"):GetComponent("Image").sprite = SetIcon(self.spLoader, panelShowItemList[i])
|
||||||
Util.GetGameObject(self.cnyList[i], "addFlag"):SetActive(_IsShowPlus(panelShowItemList[i]))
|
Util.GetGameObject(self.cnyList[i].gameObject, "addFlag"):SetActive(_IsShowPlus(panelShowItemList[i]))
|
||||||
if panelShowItemList[i] == 20 then
|
if panelShowItemList[i] == 20 then
|
||||||
Util.GetGameObject(self.cnyList[i], "addFlag"):SetActive(true)
|
Util.GetGameObject(self.cnyList[i].gameObject, "addFlag"):SetActive(true)
|
||||||
end
|
end
|
||||||
if panelShowItemList[i] == 2 then
|
if panelShowItemList[i] == 2 then
|
||||||
Util.GetGameObject(self.cnyList[i], "value"):GetComponent("Text").text = PrintWanNum(BagManager.GetTotalItemNum(panelShowItemList[i])) .. "/" .. PlayerManager.maxEnergy
|
Util.GetGameObject(self.cnyList[i].gameObject, "value"):GetComponent("Text").text = PrintWanNum(BagManager.GetTotalItemNum(panelShowItemList[i])) .. "/" .. PlayerManager.maxEnergy
|
||||||
elseif panelShowItemList[i] == 44 then
|
elseif panelShowItemList[i] == 44 then
|
||||||
Util.GetGameObject(self.cnyList[i], "value"):GetComponent("Text").text = PrintWanNum(BagManager.GetTotalItemNum(panelShowItemList[i])).."/"..PrivilegeManager.GetPrivilegeNumber(9)
|
Util.GetGameObject(self.cnyList[i].gameObject, "value"):GetComponent("Text").text = PrintWanNum(BagManager.GetTotalItemNum(panelShowItemList[i])).."/"..PrivilegeManager.GetPrivilegeNumber(9)
|
||||||
elseif panelShowItemList[i] == 53 then
|
elseif panelShowItemList[i] == 53 then
|
||||||
Util.GetGameObject(self.cnyList[i], "value"):GetComponent("Text").text = PrintWanNum(BagManager.GetTotalItemNum(panelShowItemList[i])).."/"..MonsterCampManager.GetMaxCostItem()
|
Util.GetGameObject(self.cnyList[i].gameObject, "value"):GetComponent("Text").text = PrintWanNum(BagManager.GetTotalItemNum(panelShowItemList[i])).."/"..MonsterCampManager.GetMaxCostItem()
|
||||||
elseif panelShowItemList[i] == 87 then
|
elseif panelShowItemList[i] == 87 then
|
||||||
Util.GetGameObject(self.cnyList[i], "value"):GetComponent("Text").text = PrintWanNum(BagManager.GetTotalItemNum(panelShowItemList[i]))
|
Util.GetGameObject(self.cnyList[i].gameObject, "value"):GetComponent("Text").text = PrintWanNum(BagManager.GetTotalItemNum(panelShowItemList[i]))
|
||||||
else
|
else
|
||||||
Util.GetGameObject(self.cnyList[i], "value"):GetComponent("Text").text = PrintWanNum(BagManager.GetTotalItemNum(panelShowItemList[i]))
|
Util.GetGameObject(self.cnyList[i].gameObject, "value"):GetComponent("Text").text = PrintWanNum(BagManager.GetTotalItemNum(panelShowItemList[i]))
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 绑定红点
|
-- 绑定红点
|
||||||
local redpot = Util.GetGameObject(self.cnyList[i], "redpot")
|
local redpot = Util.GetGameObject(self.cnyList[i].gameObject, "redpot")
|
||||||
redpot:SetActive(false)
|
redpot:SetActive(false)
|
||||||
self:_BindRP(panelShowItemList[i], redpot)
|
self:_BindRP(panelShowItemList[i], redpot)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
self.cnyList[i]:SetActive(false)
|
self.cnyList[i].gameObject:SetActive(false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue