【鸿蒙阵】更新
parent
bb140eab60
commit
0dd211f896
|
@ -2524,7 +2524,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!224 &4820278137459727294
|
--- !u!224 &4820278137459727294
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
@ -399,6 +399,7 @@ end
|
||||||
--设置单个上阵英雄信息
|
--设置单个上阵英雄信息
|
||||||
function this.SetCardSingleData(o, heroId, _pos, _heroData)
|
function this.SetCardSingleData(o, heroId, _pos, _heroData)
|
||||||
local bg=Util.GetGameObject(o,"Bg1"):GetComponent("Image")
|
local bg=Util.GetGameObject(o,"Bg1"):GetComponent("Image")
|
||||||
|
|
||||||
local lv=Util.GetGameObject(o,"lv/Text"):GetComponent("Text")
|
local lv=Util.GetGameObject(o,"lv/Text"):GetComponent("Text")
|
||||||
local hp = Util.GetGameObject(o,"hpProgress/hp"):GetComponent("Image")
|
local hp = Util.GetGameObject(o,"hpProgress/hp"):GetComponent("Image")
|
||||||
local hpPass = Util.GetGameObject(o,"hpProgress/hpPass"):GetComponent("Image")
|
local hpPass = Util.GetGameObject(o,"hpProgress/hpPass"):GetComponent("Image")
|
||||||
|
@ -451,7 +452,16 @@ function this.SetCardSingleData(o, heroId, _pos, _heroData)
|
||||||
end
|
end
|
||||||
|
|
||||||
yuanImage:SetActive(heroData.createtype == 1)
|
yuanImage:SetActive(heroData.createtype == 1)
|
||||||
|
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
|
lv.text=heroData.lv
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
fg.sprite = Util.LoadSprite(GetHeroCardStarFg[heroData.star])
|
fg.sprite = Util.LoadSprite(GetHeroCardStarFg[heroData.star])
|
||||||
|
|
||||||
|
@ -614,9 +624,20 @@ function this.SingleHeroDataShow(_go, _heroData)
|
||||||
local yuanImage = Util.GetGameObject(go, "yuanImage")
|
local yuanImage = Util.GetGameObject(go, "yuanImage")
|
||||||
local choosedObj = Util.GetGameObject(go, "choosed")
|
local choosedObj = Util.GetGameObject(go, "choosed")
|
||||||
local hpExp = Util.GetGameObject(go, "hpExp")
|
local hpExp = Util.GetGameObject(go, "hpExp")
|
||||||
|
|
||||||
|
|
||||||
frame.sprite=Util.LoadSprite(GetHeroQuantityImageByquality(heroData.heroConfig.Quality,heroData.star))
|
frame.sprite=Util.LoadSprite(GetHeroQuantityImageByquality(heroData.heroConfig.Quality,heroData.star))
|
||||||
icon.sprite=Util.LoadSprite(heroData.icon)
|
icon.sprite=Util.LoadSprite(heroData.icon)
|
||||||
|
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
|
lv.text=heroData.lv
|
||||||
|
end
|
||||||
|
|
||||||
pro.sprite= Util.LoadSprite(GetProStrImageByProNum(heroData.heroConfig.PropertyName))
|
pro.sprite= Util.LoadSprite(GetProStrImageByProNum(heroData.heroConfig.PropertyName))
|
||||||
SetHeroStars(starGrid, heroData.star,1,Vector2.New(30,30),-8)
|
SetHeroStars(starGrid, heroData.star,1,Vector2.New(30,30),-8)
|
||||||
--血量显示
|
--血量显示
|
||||||
|
|
|
@ -165,7 +165,7 @@ function GongMingResultTips:OnOpen(flag)
|
||||||
-- body
|
-- body
|
||||||
Util.GetGameObject(this.TextTwoAll,"textDegree"):GetComponent("Text").text = string.format("<color=green>%d</color>",herodata.lv)
|
Util.GetGameObject(this.TextTwoAll,"textDegree"):GetComponent("Text").text = string.format("<color=green>%d</color>",herodata.lv)
|
||||||
else
|
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
|
end
|
||||||
|
|
||||||
elseif data[i].additionType == 2 then
|
elseif data[i].additionType == 2 then
|
||||||
|
|
|
@ -80,7 +80,7 @@ function HongMengUnLoadPanel:SetItem(go,data,index)
|
||||||
-- body
|
-- body
|
||||||
Util.GetGameObject(go.transform, "lv/Text"):GetComponent("Text").text = string.format("<color=#0f0>%d</color>",data.lv)
|
Util.GetGameObject(go.transform, "lv/Text"):GetComponent("Text").text = string.format("<color=#0f0>%d</color>",data.lv)
|
||||||
else
|
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
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -122,7 +122,7 @@ function HongMengUnLoadPanel:SetText(go,_data)
|
||||||
if HarmonyManager.hongmengTablet>=330 then
|
if HarmonyManager.hongmengTablet>=330 then
|
||||||
Util.GetGameObject(go.transform,"Textdrgee"):GetComponent("Text").text = string.format("%d",_data.lv)
|
Util.GetGameObject(go.transform,"Textdrgee"):GetComponent("Text").text = string.format("%d",_data.lv)
|
||||||
else
|
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
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,10 @@ local TempItem = nil
|
||||||
local ItemList = {}
|
local ItemList = {}
|
||||||
local Box = 0
|
local Box = 0
|
||||||
local OpenBox = 0
|
local OpenBox = 0
|
||||||
local HeroCount = 0
|
local HeroCount
|
||||||
|
|
||||||
function this:AwakeLength()
|
function this:AwakeLength()
|
||||||
|
HeroCount = 0
|
||||||
Box = #HarmonyManager.hongmengHeroInfos;
|
Box = #HarmonyManager.hongmengHeroInfos;
|
||||||
OpenBox = #HarmonyManager.hongmengHeroInfos+2
|
OpenBox = #HarmonyManager.hongmengHeroInfos+2
|
||||||
for i = 1, #HarmonyManager.hongmengHeroInfos do
|
for i = 1, #HarmonyManager.hongmengHeroInfos do
|
||||||
|
@ -307,7 +308,8 @@ function this:Refesh(id)
|
||||||
OpenBox = OpenBox + 1
|
OpenBox = OpenBox + 1
|
||||||
if self.stage == 1 then
|
if self.stage == 1 then
|
||||||
-- body
|
-- body
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount,Box, 1})
|
|
||||||
|
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OnlyRefeshText,{HeroCount,Box})
|
||||||
else
|
else
|
||||||
local count = 0
|
local count = 0
|
||||||
for i = 1, #HarmonyManager.hongmengGuards do
|
for i = 1, #HarmonyManager.hongmengGuards do
|
||||||
|
@ -317,7 +319,7 @@ function this:Refesh(id)
|
||||||
-- body
|
-- body
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
LogGreen(Box)
|
LogGreen(Box)
|
||||||
local data = {}
|
local data = {}
|
||||||
|
|
|
@ -266,7 +266,7 @@ function this.SingleHeroDataShow(_go,_heroData)
|
||||||
if HarmonyManager.IsChangeColor(heroData.dynamicId) then
|
if HarmonyManager.IsChangeColor(heroData.dynamicId) then
|
||||||
-- body
|
-- body
|
||||||
Util.GetGameObject(_go.transform, "card/lv/Text"):GetComponent("Text").text = "<color=#0f0>"..heroData.lv.."</color>"
|
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>"
|
Util.GetGameObject(_go.transform, "card/lv/Text"):GetComponent("Text").text = "<color=#ffbe22>"..heroData.lv.."</color>"
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|
|
@ -70,6 +70,8 @@ function HarmonyView:OnOpen()
|
||||||
end
|
end
|
||||||
for i = 1, #self.HongMengData do
|
for i = 1, #self.HongMengData do
|
||||||
if self.HongMengData[i] then
|
if self.HongMengData[i] then
|
||||||
|
-- body
|
||||||
|
if self.HongMengData[i].equipIdList then
|
||||||
-- body
|
-- body
|
||||||
for i = 1, #self.HongMengData[i].equipIdList do
|
for i = 1, #self.HongMengData[i].equipIdList do
|
||||||
HarmonyManager.equipCount= HarmonyManager.equipCount+1
|
HarmonyManager.equipCount= HarmonyManager.equipCount+1
|
||||||
|
@ -78,6 +80,8 @@ function HarmonyView:OnOpen()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
-- self.count = 1;
|
-- self.count = 1;
|
||||||
-- self:SetGreen(self.HongMengData)
|
-- self:SetGreen(self.HongMengData)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue