图鉴布阵
parent
5a1fcf03f3
commit
d4e9759516
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -1,8 +1,8 @@
|
|||
require("Base/BasePanel")
|
||||
ElementPopup = Inherit(BasePanel)
|
||||
local this = ElementPopup
|
||||
local activeColor = "#FFD376FF"
|
||||
local normalColor = "#C7B081FF"
|
||||
local activeColor = "#44C853"
|
||||
local normalColor = "#895A24"
|
||||
local propertyConfig = ConfigManager.GetConfig(ConfigName.PropertyConfig)
|
||||
local elementalResonanceConfig = ConfigManager.GetConfig(ConfigName.ElementalResonanceConfig)
|
||||
|
||||
|
|
@ -14,7 +14,7 @@ function ElementPopup:InitComponent()
|
|||
this.title = Util.GetGameObject(self.gameObject, "bgImage/title/Text"):GetComponent("Text")
|
||||
this.descList = {}
|
||||
this.propList = {}
|
||||
this.activeBgList = {}
|
||||
--this.activeBgList = {}
|
||||
this.ativeLightList = {}
|
||||
for i = 1, 6 do
|
||||
local panel = Util.GetGameObject(self.gameObject, "bgImage/elemental" .. i)
|
||||
|
|
@ -25,7 +25,7 @@ function ElementPopup:InitComponent()
|
|||
[3]=Util.GetGameObject(panel,"panel/prop3")
|
||||
}
|
||||
|
||||
this.activeBgList[i] = Util.GetGameObject(panel, "bg")
|
||||
--this.activeBgList[i] = Util.GetGameObject(panel, "bg")
|
||||
this.ativeLightList[i] = Util.GetGameObject(panel, "Image/light")
|
||||
|
||||
this.descList[i] = Util.GetGameObject(panel, "Text"):GetComponent("Text")
|
||||
|
|
@ -94,7 +94,7 @@ function this.SetNormal(data)
|
|||
this.descList[j].text = GetLanguageStrById(elementalResonanceConfig[j].String)
|
||||
end
|
||||
|
||||
this.activeBgList[j]:SetActive(isActive)
|
||||
--this.activeBgList[j]:SetActive(isActive)
|
||||
this.ativeLightList[j]:SetActive(isActive)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -522,7 +522,7 @@ function this.SetCardSingleData(o, heroId, _pos, _heroData)
|
|||
|
||||
local fg=Util.GetGameObject(o,"Bg2"):GetComponent("Image")
|
||||
-- local live=Util.GetGameObject(o,"Mask/Live")
|
||||
|
||||
|
||||
local pro=Util.GetGameObject(o,"Pro/Image"):GetComponent("Image")
|
||||
local starGrid=Util.GetGameObject(o,"StarGrid")
|
||||
local nameParent = Util.GetGameObject(o,"Name")
|
||||
|
|
@ -531,10 +531,10 @@ function this.SetCardSingleData(o, heroId, _pos, _heroData)
|
|||
local yuanImage=Util.GetGameObject(o,"yuanImage")
|
||||
--local flyImg=Util.GetGameObject(o,"flyImg"):GetComponent("Image")
|
||||
local heroData = HeroManager.GetSingleHeroData(heroId)
|
||||
--local kaPaiEffect=Util.GetGameObject(o,"UI_Effect_jinkuang_KaPai")
|
||||
local live = Util.GetGameObject(o, "Mask/icon"):GetComponent("Image")
|
||||
live.sprite = this.spLoader:LoadSprite(heroData.painting)
|
||||
--local liveName = heroData.live
|
||||
local kaPaiEffect=Util.GetGameObject(o,"UI_Effect_jinkuang_KaPai")
|
||||
local live = Util.GetGameObject(o, "Mask/icon"):GetComponent("RawImage")
|
||||
|
||||
local liveName = heroData.live
|
||||
local roleConfig = {}
|
||||
local toward=0
|
||||
local star,starType = heroData.GetStar()
|
||||
|
|
@ -547,14 +547,14 @@ function this.SetCardSingleData(o, heroId, _pos, _heroData)
|
|||
bg.sprite = this.spLoader:LoadSprite(GetFormationHeroCardStarBg[star])
|
||||
Util.GetGameObject(o,"hpProgress").gameObject:SetActive(true)
|
||||
Util.GetGameObject(o,"rageProgress").gameObject:SetActive(false)
|
||||
--kaPaiEffect.transform.localScale=Vector3.New(1,1.1,1)
|
||||
--kaPaiEffect.transform.localPosition=Vector3.New(-8,-16,0)
|
||||
kaPaiEffect.transform.localScale=Vector3.New(1,1.1,1)
|
||||
kaPaiEffect.transform.localPosition=Vector3.New(-8,-16,0)
|
||||
else
|
||||
bg.sprite = this.spLoader:LoadSprite(GetHeroCardStarBg[star])
|
||||
Util.GetGameObject(o,"hpProgress").gameObject:SetActive(false)
|
||||
Util.GetGameObject(o,"rageProgress").gameObject:SetActive(false)
|
||||
--kaPaiEffect.transform.localScale=Vector3.New(1,1,1)
|
||||
-- kaPaiEffect.transform.localPosition=Vector3.New(-8,0,0)
|
||||
kaPaiEffect.transform.localScale=Vector3.New(1,1,1)
|
||||
kaPaiEffect.transform.localPosition=Vector3.New(-8,0,0)
|
||||
end
|
||||
if heroData.skinId == 0 then
|
||||
roleConfig = ConfigManager.GetConfigData(ConfigName.RoleConfig, heroData.heroConfig.Id)
|
||||
|
|
@ -563,14 +563,14 @@ function this.SetCardSingleData(o, heroId, _pos, _heroData)
|
|||
roleConfig = ConfigManager.GetConfigData(ConfigName.RoleConfig, heroData.skinId)
|
||||
toward=roleConfig.Toward
|
||||
end
|
||||
|
||||
--local scale = roleConfig.play_liveScale
|
||||
--local livePos = Vector3.New(roleConfig.offset[1], roleConfig.offset[2], 0)
|
||||
--live.texture = CardRendererManager.GetSpineTexture(_pos, liveName, Vector3.one * scale, livePos, true)
|
||||
--SetHEeroLiveToward(live,toward,heroData.heroConfig.Position)
|
||||
--live.transform.localScale = Vector3.one
|
||||
--live.transform.localPosition = Vector3.zero
|
||||
|
||||
|
||||
local scale = roleConfig.play_liveScale
|
||||
local livePos = Vector3.New(roleConfig.offset[1], roleConfig.offset[2], 0)
|
||||
live.texture = CardRendererManager.GetSpineTexture(_pos, liveName, Vector3.one * scale, livePos, true)
|
||||
SetHEeroLiveToward(live,toward,heroData.heroConfig.Position)
|
||||
live.transform.localScale = Vector3.one
|
||||
live.transform.localPosition = Vector3.zero
|
||||
|
||||
local zs = Util.GetGameObject(o, "zs")
|
||||
local zsName = GetHeroCardStarZs[star]
|
||||
if zsName == "" then
|
||||
|
|
@ -583,7 +583,7 @@ function this.SetCardSingleData(o, heroId, _pos, _heroData)
|
|||
yuanImage:SetActive(heroData.createtype == 1)
|
||||
fg.sprite = this.spLoader:LoadSprite(GetHeroCardStarFg[star])
|
||||
pro.sprite=this.spLoader:LoadSprite(GetProStrImageByProNum(heroData.property))
|
||||
|
||||
|
||||
if starType == 3 then
|
||||
if heroData.star>11 then
|
||||
fg.sprite = this.spLoader:LoadSprite("t_zhandoukuang_lanjin02")
|
||||
|
|
@ -591,7 +591,7 @@ function this.SetCardSingleData(o, heroId, _pos, _heroData)
|
|||
fg.sprite = this.spLoader:LoadSprite("t_zhandoukuang_zhuangshi006")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
if HarmonyManager.IsChangeColor(heroData.dynamicId) then
|
||||
lv.text="<color=#0f0>"..level.."</color>"
|
||||
elseif HarmonyManager:IsEnvoy(heroData.dynamicId) and HarmonyManager:HongMengTowerUpLimit() >= HarmonyManager.TowerStartLimit then
|
||||
|
|
@ -600,14 +600,14 @@ function this.SetCardSingleData(o, heroId, _pos, _heroData)
|
|||
lv.text=level
|
||||
end
|
||||
SetCardStars(starGrid,star,starType)
|
||||
--if star > 9 then
|
||||
-- kaPaiEffect:SetActive(true)
|
||||
--else
|
||||
-- kaPaiEffect:SetActive(false)
|
||||
--end
|
||||
--SetHeroFormationFlyEffect(o,this.spLoader,kaPaiEffect,star,orginLayer)
|
||||
if star > 9 then
|
||||
kaPaiEffect:SetActive(true)
|
||||
else
|
||||
kaPaiEffect:SetActive(false)
|
||||
end
|
||||
SetHeroFormationFlyEffect(o,this.spLoader,kaPaiEffect,star,orginLayer)
|
||||
|
||||
name.text=GetLanguageStrById(heroData.heroConfig.ReadingName)
|
||||
name.text=GetLanguageStrById(heroData.heroConfig.ReadingName)
|
||||
SetTextVerTial(name.gameObject,Vector3.New(29.24,-7.45,0),nil,nil,8)
|
||||
|
||||
local curHeroHpVal = FormationManager.GetFormationHeroHp(this.curFormationIndex,_heroData.dynamicId)
|
||||
|
|
|
|||
Loading…
Reference in New Issue