选择特训英雄界面星级显示修改
parent
b9d5a38850
commit
a9d605e99d
|
@ -706,6 +706,7 @@ GameObject:
|
|||
m_Component:
|
||||
- component: {fileID: 1144205944544959123}
|
||||
- component: {fileID: 1144205944544959120}
|
||||
- component: {fileID: 651432480662386440}
|
||||
m_Layer: 5
|
||||
m_Name: star
|
||||
m_TagString: Untagged
|
||||
|
@ -730,7 +731,7 @@ RectTransform:
|
|||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 239.96, y: 30}
|
||||
m_SizeDelta: {x: 240, y: 45.1}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!222 &1144205944544959120
|
||||
CanvasRenderer:
|
||||
|
@ -740,6 +741,35 @@ CanvasRenderer:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1144205944544959122}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &651432480662386440
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1144205944544959122}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 2100000, guid: 9f6415c5993d0154eba0d2d3bd1ffe93, type: 2}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!1 &1144205944642474505
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -2184,6 +2214,7 @@ GameObject:
|
|||
m_Component:
|
||||
- component: {fileID: 1144205945452737054}
|
||||
- component: {fileID: 1144205945452737055}
|
||||
- component: {fileID: 8199426691123366390}
|
||||
m_Layer: 5
|
||||
m_Name: star
|
||||
m_TagString: Untagged
|
||||
|
@ -2208,7 +2239,7 @@ RectTransform:
|
|||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 239.96, y: 30}
|
||||
m_SizeDelta: {x: 240, y: 39.6}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!222 &1144205945452737055
|
||||
CanvasRenderer:
|
||||
|
@ -2218,6 +2249,35 @@ CanvasRenderer:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1144205945452737049}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &8199426691123366390
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1144205945452737049}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 2100000, guid: 9f6415c5993d0154eba0d2d3bd1ffe93, type: 2}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!1 &1144205945518929471
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -144,6 +144,7 @@ function this:SetUpHero()
|
|||
name.text=heroData.heroConfig.Name
|
||||
lv.text=heroData.lv
|
||||
SetHeroStars(self.spLoader,starGrid, heroData.star)
|
||||
Util.SetParticleSortLayer(starGrid,this.sortingOrder + 1)
|
||||
Util.AddOnceClick(go,function ()
|
||||
end)
|
||||
local pos=buildData.dataSingle.Position
|
||||
|
@ -249,6 +250,7 @@ function this:ShowSingleHero(go,data,index)
|
|||
trainLv.text="特训等级"..data.HeroTraining.trainingLv
|
||||
local starGrid = Util.GetGameObject(go, "star")
|
||||
SetHeroStars(self.spLoader,starGrid,data.star)
|
||||
Util.SetParticleSortLayer(starGrid,this.sortingOrder + 1)
|
||||
Util.AddOnceClick(go,function()
|
||||
if buildData.heroId and buildData.heroId~="" then
|
||||
if data.dynamicId~=buildData.heroId then
|
||||
|
|
|
@ -21,6 +21,8 @@ function this.SetRecruit3MustCount(count)
|
|||
this.recruit3MustCount = count
|
||||
end
|
||||
|
||||
|
||||
|
||||
function this.GetRecruit3MustCount()
|
||||
return this.recruit3MustCount
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue