【玩家信息】红点问题修复 和log清楚

dev_chengFeng
ZhangBiao 2021-06-04 16:10:17 +08:00
parent 7118f60b9c
commit 4b708011bc
9 changed files with 28 additions and 26 deletions

View File

@ -589,7 +589,7 @@ function this.GetContinuityRechargeRedPoint()
redPoint = redPoint or (rechargeInfo.progress == 1 and rechargeInfo.state == 0)
end
end
LogGreen("积天豪礼红点:"..tostring(redPoint))
-- LogGreen("积天豪礼红点:"..tostring(redPoint))
return redPoint
end

View File

@ -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.transform.localScale = Vector3.one * self.enemy_liveScale --* 0.75
self.RoleLiveGO:SetActive(true)
Log("IsBoss: "..tostring(self.isBoss))
-- Log("IsBoss: "..tostring(self.isBoss))
if self.isBoss then
self.RoleLiveGO.transform.localScale = self.RoleLiveGO.transform.localScale * 1.5 -- boss 放大1.5倍
end

View File

@ -33,12 +33,12 @@ function ActivityMainPanel:BindEvent()
Util.AddClick(this.btnBack, function()
DynamicActivityManager.RemoveUIList()
if #DynamicActivityManager.OpenUIList > 0 then
LogRed("jump ")
-- LogRed("jump ")
JumpManager.GoJump(DynamicActivityManager.OpenUIList[#DynamicActivityManager.OpenUIList],function()
DynamicActivityManager.RemoveUIList()
end)
else
LogRed("close ")
-- LogRed("close ")
this:ClosePanel()
end
end)
@ -77,7 +77,7 @@ function ActivityMainPanel:CheckActOpen(_index)
else
_CurPageIndex = _index
end
LogGreen(tabs[_index].ActiveType.." _CurPageIndex:".._CurPageIndex)
Log("当前界面:"..tabs[_index].ActiveType.." _CurPageIndex:".._CurPageIndex)
end
elseif tabs[_index].FunType > 0 then
if ActTimeCtrlManager.SingleFuncState(tabs[_index].FunType) then

View File

@ -247,7 +247,7 @@ function this:SetInitList()
end
this.ChooseDataList = tempTable
LogBlue("#this.ChooseDataList长度:"..#this.ChooseDataList)
-- LogBlue("#this.ChooseDataList长度:"..#this.ChooseDataList)
end
--初始化 鸿蒙塔的数据
function this:SetTowerInit()

View File

@ -124,7 +124,6 @@ function MailMainPanel:OnOpen(...)
openPanel=data[1]
end
function MailMainPanel:OnShow()
Log("MailMainPanel:OnShow")
isPlayAnim = true
allMail={}
NetManager.GetAllMailData(function ()
@ -140,7 +139,7 @@ end
local maildataCount=0--数据数量
--设置英雄列表数据
function this.OnShowMailListData(_allMail, isTop,isAni)
LogRed("isTop "..tostring(isTop).." isAni "..tostring(isAni))
-- LogRed("isTop "..tostring(isTop).." isAni "..tostring(isAni))
allMail= _allMail
this:SortAllMail(allMail)
maildataCount=#allMail

View File

@ -55,7 +55,7 @@ function this.OnShowPanelData(isTop,isAni)
table.insert(AllData,v)
end
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.SingleDataShow(go, AllData[index])
end, not isTop,not isAni)

View File

@ -153,7 +153,6 @@ function this.InitTaskData(curData,taskType,configName)
allListData[i].Integral[1][2]
},
}
data.type = allListData[i].Type
data.jump = allListData[i].Jump[1]
table.insert(curData.rewards,data)
@ -310,7 +309,7 @@ function this.InitSingleTypeData(actType)
local data = ActivityGiftManager.GetActivityTypeInfo(actType)
if data then
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.value = data.value
singleTypeData.startTime = data.startTime

View File

@ -105,7 +105,11 @@ function PlayerInfoView:OnShow()
self.playerHead:SetPosition(Vector3.New(-5, 8, 0))
-- self.playerHead:SetLayer(self.sortingOrder)
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
function PlayerInfoView:RefreshPower(force)

View File

@ -204,31 +204,31 @@ function UpView:UpdateGoldVal()
for i = 1, _ItemMaxNum do
if panelShowItemList[i] then
if self.cnyList[i].gameObject then
self.cnyList[i]:SetActive(true)
Util.GetGameObject(self.cnyList[i], "icon"):GetComponent("Image").sprite = SetIcon(self.spLoader, panelShowItemList[i])
Util.GetGameObject(self.cnyList[i], "addFlag"):SetActive(_IsShowPlus(panelShowItemList[i]))
self.cnyList[i].gameObject:SetActive(true)
Util.GetGameObject(self.cnyList[i].gameObject, "icon"):GetComponent("Image").sprite = SetIcon(self.spLoader, panelShowItemList[i])
Util.GetGameObject(self.cnyList[i].gameObject, "addFlag"):SetActive(_IsShowPlus(panelShowItemList[i]))
if panelShowItemList[i] == 20 then
Util.GetGameObject(self.cnyList[i], "addFlag"):SetActive(true)
Util.GetGameObject(self.cnyList[i].gameObject, "addFlag"):SetActive(true)
end
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
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
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
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
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
-- 绑定红点
local redpot = Util.GetGameObject(self.cnyList[i], "redpot")
local redpot = Util.GetGameObject(self.cnyList[i].gameObject, "redpot")
redpot:SetActive(false)
self:_BindRP(panelShowItemList[i], redpot)
end
else
self.cnyList[i]:SetActive(false)
self.cnyList[i].gameObject:SetActive(false)
end
end
end