英雄信息界面显示修改
parent
3c27f253b9
commit
3f2322eeb0
|
@ -1352,7 +1352,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: -1.1999817, y: -40.400024}
|
||||
m_AnchoredPosition: {x: -1.1999817, y: -43}
|
||||
m_SizeDelta: {x: 0.3999939, y: 102.59}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &222408177215798552
|
||||
|
@ -5245,7 +5245,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 11.997848, y: 102.75995}
|
||||
m_AnchoredPosition: {x: 11.997848, y: 201.3}
|
||||
m_SizeDelta: {x: 0, y: 39.51}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &6721055203894759870
|
||||
|
@ -6225,7 +6225,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 155.3, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 100.75}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &2932693287766199764
|
||||
|
|
|
@ -19,7 +19,8 @@ function RoleGetInfoPopup:InitComponent()
|
|||
this.heroName = Util.GetGameObject(self.transform, "RoleInfo/nameAndPossLayout/heroName"):GetComponent("Text")
|
||||
this.starGrid = Util.GetGameObject(self.transform, "bg/NameButtom/star")
|
||||
this.starPre = Util.GetGameObject(self.transform, "bg/NameButtom/starPre")
|
||||
|
||||
this.title=Util.GetGameObject(self.transform, "bg/title"):GetComponent("Text")
|
||||
this.title.text="英雄"
|
||||
this.starGrid = Util.GetGameObject(self.transform, "RoleInfo/sartAndLvLayout")
|
||||
--定位描述
|
||||
this.posBgImage=Util.GetGameObject(self.transform,"pos"):GetComponent("Image")
|
||||
|
@ -273,9 +274,12 @@ function this.ShowHeroLive(_heroSConfigData)
|
|||
this.testLiveGO = poolManager:LoadLive(GetResourcePath(_heroSConfigData.Painting), this.liveRoot.transform,
|
||||
Vector3.one * _heroSConfigData.Scale*0.7, Vector3.New(_heroSConfigData.Position[1], _heroSConfigData.Position[2], 0))
|
||||
local SkeletonGraphic = this.testLiveGO:GetComponent("SkeletonGraphic")
|
||||
local position=_heroSConfigData.Position
|
||||
position[2]=position[2]-250
|
||||
SetHEeroLiveToward(this.testLiveGO,_heroSConfigData.Toward,position)
|
||||
--local position=_heroSConfigData.Position
|
||||
--position[2]=_heroSConfigData.Position[2]-250
|
||||
local pos1={}
|
||||
pos1[1]=_heroSConfigData.Position[1]
|
||||
pos1[2]=_heroSConfigData.Position[2]-250
|
||||
SetHEeroLiveToward(this.testLiveGO,_heroSConfigData.Toward,pos1)
|
||||
local idle = function() SkeletonGraphic.AnimationState:SetAnimation(0, "idle", true) end
|
||||
SkeletonGraphic.AnimationState.Complete = SkeletonGraphic.AnimationState.Complete + idle
|
||||
poolManager:SetLiveClearCall(GetResourcePath(_heroSConfigData.Live), this.testLiveGO, function ()
|
||||
|
|
|
@ -26,6 +26,8 @@ function RoleTalentPopup:InitComponent()
|
|||
self.gridVerticalL =Util.GetGameObject(self.transform, "GameObject/grid"):GetComponent("VerticalLayoutGroup")
|
||||
self.gridLayoutE =Util.GetGameObject(self.transform, "GameObject/grid"):GetComponent("LayoutElement")
|
||||
self.gridBg =Util.GetGameObject(self.transform, "GameObject/grid/bg"):GetComponent("RectTransform")
|
||||
self.title=Util.GetGameObject(self.transform, "GameObject/equipInfo/name/text"):GetComponent("Text")
|
||||
self.title.text="英雄天赋"
|
||||
end
|
||||
|
||||
--绑定事件(用于子类重写)
|
||||
|
|
Loading…
Reference in New Issue