【鸿蒙阵】更新

dev_chengFeng
guowei 2020-12-22 15:41:45 +08:00
parent bb140eab60
commit 0dd211f896
8 changed files with 40 additions and 13 deletions

View File

@ -2524,7 +2524,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &4820278137459727294
RectTransform:
m_ObjectHideFlags: 0

View File

@ -399,6 +399,7 @@ end
--设置单个上阵英雄信息
function this.SetCardSingleData(o, heroId, _pos, _heroData)
local bg=Util.GetGameObject(o,"Bg1"):GetComponent("Image")
local lv=Util.GetGameObject(o,"lv/Text"):GetComponent("Text")
local hp = Util.GetGameObject(o,"hpProgress/hp"):GetComponent("Image")
local hpPass = Util.GetGameObject(o,"hpProgress/hpPass"):GetComponent("Image")
@ -451,7 +452,16 @@ function this.SetCardSingleData(o, heroId, _pos, _heroData)
end
yuanImage:SetActive(heroData.createtype == 1)
lv.text=heroData.lv
if HarmonyManager.IsChangeColor(heroData.dynamicId) then
-- body
lv.text="<color=#0f0>"..heroData.lv.."</color>"
elseif HarmonyManager.IsGongMing(heroData.dynamicId) and HarmonyManager.hongmengTablet >= 330 then
-- bod
lv.text="<color=#ffbe22>"..heroData.lv.."</color>"
else
lv.text=heroData.lv
end
fg.sprite = Util.LoadSprite(GetHeroCardStarFg[heroData.star])
@ -614,9 +624,20 @@ function this.SingleHeroDataShow(_go, _heroData)
local yuanImage = Util.GetGameObject(go, "yuanImage")
local choosedObj = Util.GetGameObject(go, "choosed")
local hpExp = Util.GetGameObject(go, "hpExp")
frame.sprite=Util.LoadSprite(GetHeroQuantityImageByquality(heroData.heroConfig.Quality,heroData.star))
icon.sprite=Util.LoadSprite(heroData.icon)
lv.text=heroData.lv
if HarmonyManager.IsChangeColor(heroData.dynamicId) then
-- body
lv.text="<color=#0f0>"..heroData.lv.."</color>"
elseif HarmonyManager.IsGongMing(heroData.dynamicId) and HarmonyManager.hongmengTablet >= 330 then
-- bod
lv.text="<color=#ffbe22>"..heroData.lv.."</color>"
else
lv.text=heroData.lv
end
pro.sprite= Util.LoadSprite(GetProStrImageByProNum(heroData.heroConfig.PropertyName))
SetHeroStars(starGrid, heroData.star,1,Vector2.New(30,30),-8)
--血量显示

View File

@ -165,7 +165,7 @@ function GongMingResultTips:OnOpen(flag)
-- body
Util.GetGameObject(this.TextTwoAll,"textDegree"):GetComponent("Text").text = string.format("<color=green>%d</color>",herodata.lv)
else
Util.GetGameObject(this.TextTwoAll,"textDegree"):GetComponent("Text").text = string.format("<color=green>%d</color>",data[i].value)
Util.GetGameObject(this.TextTwoAll,"textDegree"):GetComponent("Text").text = string.format("<color=green>%d</color>",herodata.lv)
end
elseif data[i].additionType == 2 then

View File

@ -80,7 +80,7 @@ function HongMengUnLoadPanel:SetItem(go,data,index)
-- body
Util.GetGameObject(go.transform, "lv/Text"):GetComponent("Text").text = string.format("<color=#0f0>%d</color>",data.lv)
else
Util.GetGameObject(go.transform, "lv/Text"):GetComponent("Text").text = string.format("<color=#0f0>%d</color>",HarmonyManager.hongmengAdditions[1].value)
Util.GetGameObject(go.transform, "lv/Text"):GetComponent("Text").text = string.format("<color=#0f0>%d</color>",data.lv)
end
else
@ -122,7 +122,7 @@ function HongMengUnLoadPanel:SetText(go,_data)
if HarmonyManager.hongmengTablet>=330 then
Util.GetGameObject(go.transform,"Textdrgee"):GetComponent("Text").text = string.format("%d",_data.lv)
else
Util.GetGameObject(go.transform,"Textdrgee"):GetComponent("Text").text = string.format("%d",data[i].value)
Util.GetGameObject(go.transform,"Textdrgee"):GetComponent("Text").text = string.format("%d",_data.lv)
end

View File

@ -14,9 +14,10 @@ local TempItem = nil
local ItemList = {}
local Box = 0
local OpenBox = 0
local HeroCount = 0
local HeroCount
function this:AwakeLength()
HeroCount = 0
Box = #HarmonyManager.hongmengHeroInfos;
OpenBox = #HarmonyManager.hongmengHeroInfos+2
for i = 1, #HarmonyManager.hongmengHeroInfos do
@ -307,7 +308,8 @@ function this:Refesh(id)
OpenBox = OpenBox + 1
if self.stage == 1 then
-- body
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount,Box, 1})
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount,Box})
else
local count = 0
for i = 1, #HarmonyManager.hongmengGuards do
@ -317,7 +319,7 @@ function this:Refesh(id)
-- body
end
end
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount + count,Box + #HarmonyManager.hongmengGuards, 1})
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount + count,Box + #HarmonyManager.hongmengGuards})
end
LogGreen(Box)
local data = {}

View File

@ -124,7 +124,7 @@ function this.SingleHeroDataShow(go,_heroData)
if HarmonyManager.IsChangeColor(_heroData.dynamicId) then
Util.GetGameObject(_go.transform, "lv/Text"):GetComponent("Text").text = "<color=#0f0>"..heroData.lv.."</color>"
GongMingMask:SetActive(true)
elseif HarmonyManager:IsEnvoy(_heroData.dynamicId) then
elseif HarmonyManager:IsEnvoy(_heroData.dynamicId) then
Util.GetGameObject(_go.transform, "lv/Text"):GetComponent("Text").text = "<color=#ffbe22>"..heroData.lv.."</color>"
GongMingMask:SetActive(true)
end

View File

@ -266,7 +266,7 @@ function this.SingleHeroDataShow(_go,_heroData)
if HarmonyManager.IsChangeColor(heroData.dynamicId) then
-- body
Util.GetGameObject(_go.transform, "card/lv/Text"):GetComponent("Text").text = "<color=#0f0>"..heroData.lv.."</color>"
elseif HarmonyManager:IsEnvoy(heroData.dynamicId) then
elseif HarmonyManager:IsEnvoy(heroData.dynamicId) and HarmonyManager.hongmengTablet >= 330 then
Util.GetGameObject(_go.transform, "card/lv/Text"):GetComponent("Text").text = "<color=#ffbe22>"..heroData.lv.."</color>"
else

View File

@ -71,9 +71,13 @@ function HarmonyView:OnOpen()
for i = 1, #self.HongMengData do
if self.HongMengData[i] then
-- body
for i = 1, #self.HongMengData[i].equipIdList do
HarmonyManager.equipCount= HarmonyManager.equipCount+1
if self.HongMengData[i].equipIdList then
-- body
for i = 1, #self.HongMengData[i].equipIdList do
HarmonyManager.equipCount= HarmonyManager.equipCount+1
end
end
end
end