xiyou_sanguo
zhangjiannan 2025-12-24 15:47:24 +08:00
parent bcbaaeb561
commit f1fd7efe4c
5 changed files with 309 additions and 304 deletions

View File

@ -64,8 +64,6 @@ MonoBehaviour:
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: 21300000, guid: 2ba164a6cbfeee24fb203f0b3518e45d, type: 3}
m_Type: 0
m_PreserveAspect: 0
@ -138,8 +136,6 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 12800000, guid: 0a607ef861fe8a24e9c6079e935099b8, type: 3}
m_FontSize: 34
@ -217,8 +213,6 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 12800000, guid: 0a607ef861fe8a24e9c6079e935099b8, type: 3}
m_FontSize: 40
@ -4930,7 +4924,7 @@ ParticleSystem:
--- !u!199 &6636799276863501408
ParticleSystemRenderer:
serializedVersion: 6
m_ObjectHideFlags: 2
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
@ -5053,8 +5047,6 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 12800000, guid: 0a607ef861fe8a24e9c6079e935099b8, type: 3}
m_FontSize: 50
@ -5145,8 +5137,6 @@ MonoBehaviour:
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: 21300000, guid: c1eee61cebc5fa64a9568b09739e0584, type: 3}
m_Type: 0
m_PreserveAspect: 0
@ -9939,7 +9929,7 @@ ParticleSystem:
--- !u!199 &1944289761810097104
ParticleSystemRenderer:
serializedVersion: 6
m_ObjectHideFlags: 2
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
@ -10061,8 +10051,6 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 12800000, guid: 0a607ef861fe8a24e9c6079e935099b8, type: 3}
m_FontSize: 40
@ -10141,8 +10129,6 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
--- !u!1 &1671287076744535024
GameObject:
m_ObjectHideFlags: 0
@ -10232,8 +10218,6 @@ MonoBehaviour:
m_OnClick:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!114 &5217776269411280894
MonoBehaviour:
m_ObjectHideFlags: 0
@ -10252,8 +10236,6 @@ MonoBehaviour:
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: 21300000, guid: 30613fb2faaf55e43a7341a416ab39bc, type: 3}
m_Type: 0
m_PreserveAspect: 0
@ -10282,6 +10264,83 @@ Animator:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!1 &1765355909282678689
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3643982608249846203}
- component: {fileID: 4799115243325908318}
- component: {fileID: 3503172602576064610}
m_Layer: 5
m_Name: Text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &3643982608249846203
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1765355909282678689}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 6130094369655762242}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4799115243325908318
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1765355909282678689}
m_CullTransparentMesh: 0
--- !u!114 &3503172602576064610
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1765355909282678689}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: 0a607ef861fe8a24e9c6079e935099b8, type: 3}
m_FontSize: 35
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 3
m_MaxSize: 40
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u901A\u5173100\u5C42\u89E3\u9501"
--- !u!1 &2481324565835080447
GameObject:
m_ObjectHideFlags: 0
@ -10348,8 +10407,6 @@ MonoBehaviour:
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: 21300000, guid: bed0f3ecb49860b44b7fc53703900f59, type: 3}
m_Type: 0
m_PreserveAspect: 0
@ -10399,8 +10456,6 @@ MonoBehaviour:
m_OnClick:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!95 &7403801567075583958
Animator:
serializedVersion: 3
@ -10438,7 +10493,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &5616311273031041115
RectTransform:
m_ObjectHideFlags: 0
@ -10484,8 +10539,6 @@ MonoBehaviour:
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: 21300000, guid: adf009f30f240f64aafaa35b04620a6c, type: 3}
m_Type: 0
m_PreserveAspect: 0
@ -10535,8 +10588,6 @@ MonoBehaviour:
m_OnClick:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!1 &2879491193185610466
GameObject:
m_ObjectHideFlags: 0
@ -10701,8 +10752,6 @@ MonoBehaviour:
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: 21300000, guid: 6aa31f116bdd5754f8748c10196ac54c, type: 3}
m_Type: 0
m_PreserveAspect: 0
@ -15409,7 +15458,7 @@ ParticleSystem:
--- !u!199 &6684973188207038740
ParticleSystemRenderer:
serializedVersion: 6
m_ObjectHideFlags: 2
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
@ -15531,8 +15580,6 @@ MonoBehaviour:
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: 21300000, guid: 42c4c73de13ac7a4eaab2c976dc72279, type: 3}
m_Type: 0
m_PreserveAspect: 0
@ -20293,7 +20340,7 @@ ParticleSystem:
--- !u!199 &3804278910340965245
ParticleSystemRenderer:
serializedVersion: 6
m_ObjectHideFlags: 2
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
@ -20462,8 +20509,6 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 12800000, guid: 0a607ef861fe8a24e9c6079e935099b8, type: 3}
m_FontSize: 70
@ -20571,8 +20616,6 @@ MonoBehaviour:
m_OnValueChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.ScrollRect+ScrollRectEvent, UnityEngine.UI, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!114 &836813355939125998
MonoBehaviour:
m_ObjectHideFlags: 0
@ -20619,7 +20662,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: 0, y: -0.000061035156}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 912.80005, y: 0}
m_Pivot: {x: 0.5, y: 1}
--- !u!114 &297368428511942559
@ -20723,8 +20766,6 @@ MonoBehaviour:
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: 21300000, guid: be4f4fcaa29405448bc178f8b53c2665, type: 3}
m_Type: 0
m_PreserveAspect: 0
@ -25520,7 +25561,7 @@ ParticleSystem:
--- !u!199 &2347183167822701816
ParticleSystemRenderer:
serializedVersion: 6
m_ObjectHideFlags: 2
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
@ -25786,8 +25827,6 @@ MonoBehaviour:
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: 21300000, guid: 9b41fbd33ddec744d89cd85d65ffdebd, type: 3}
m_Type: 1
m_PreserveAspect: 0
@ -30494,7 +30533,7 @@ ParticleSystem:
--- !u!199 &2264759471191658080
ParticleSystemRenderer:
serializedVersion: 6
m_ObjectHideFlags: 2
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
@ -30618,8 +30657,6 @@ MonoBehaviour:
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: 21300000, guid: 2887ec8dbdcb57242a540f77f7cb5a72, type: 3}
m_Type: 0
m_PreserveAspect: 0
@ -30669,8 +30706,6 @@ MonoBehaviour:
m_OnClick:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!95 &7565147791213490023
Animator:
serializedVersion: 3
@ -30721,6 +30756,7 @@ RectTransform:
- {fileID: 2607869846165879941}
- {fileID: 3852706423418299917}
- {fileID: 9128208820602123410}
- {fileID: 6130094369655762242}
m_Father: {fileID: 1479412660855769799}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -30792,8 +30828,6 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 12800000, guid: 0a607ef861fe8a24e9c6079e935099b8, type: 3}
m_FontSize: 40
@ -35505,7 +35539,7 @@ ParticleSystem:
--- !u!199 &6117067443197306922
ParticleSystemRenderer:
serializedVersion: 6
m_ObjectHideFlags: 2
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
@ -40261,7 +40295,7 @@ ParticleSystem:
--- !u!199 &1318220704516668516
ParticleSystemRenderer:
serializedVersion: 6
m_ObjectHideFlags: 2
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
@ -45017,7 +45051,7 @@ ParticleSystem:
--- !u!199 &6780772994169947805
ParticleSystemRenderer:
serializedVersion: 6
m_ObjectHideFlags: 2
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
@ -45076,6 +45110,79 @@ ParticleSystemRenderer:
m_Mesh2: {fileID: 0}
m_Mesh3: {fileID: 0}
m_MaskInteraction: 0
--- !u!1 &8944728720762697687
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6130094369655762242}
- component: {fileID: 5927129610921858218}
- component: {fileID: 1307238876622200814}
m_Layer: 5
m_Name: Lock
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &6130094369655762242
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8944728720762697687}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 3643982608249846203}
m_Father: {fileID: 1797818621244332855}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5927129610921858218
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8944728720762697687}
m_CullTransparentMesh: 0
--- !u!114 &1307238876622200814
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8944728720762697687}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0, g: 0, b: 0, a: 0.49803922}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
--- !u!1 &9045732980168558674
GameObject:
m_ObjectHideFlags: 0
@ -45139,8 +45246,6 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 12800000, guid: 0a607ef861fe8a24e9c6079e935099b8, type: 3}
m_FontSize: 32
@ -45220,8 +45325,6 @@ MonoBehaviour:
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: 21300000, guid: d38e3374b8a87b34e882b369c8495b6b, type: 3}
m_Type: 0
m_PreserveAspect: 0

View File

@ -2080,7 +2080,8 @@ HELP_TYPE = {
Potency = 143, --潜能
TrainBuild = 144, --特训建筑
Train = 145, --特训
Mingge = 154 --命格
Mingge = 154, --命格
BecomeAGod = 156 --成神
}
NumToComplexFont = {

View File

@ -6,6 +6,7 @@ local BecomeAGodLevel = ConfigManager.GetConfig(ConfigName.BecomeAGodLevel)
function BecomeAGodPanel:InitComponent()
this.spLoader = SpriteLoader.New()
this.bg2 = Util.GetGameObject(self.transform, "bg2")
this.effect = Util.GetGameObject(self.transform, "bg2/Effect")
screenAdapte(this.bg2)
this.UpView = SubUIManager.Open(SubUIConfig.UpView, self.gameObject.transform, { showType = UpViewOpenType.ShowLeft })
this.btnBack = Util.GetGameObject(self.transform, "btnBack/btnBack")
@ -20,13 +21,15 @@ function BecomeAGodPanel:InitComponent()
this.godlist[i] = {}
this.godlist[i].gob = Util.GetGameObject(self.transform, "bg2/godlist/god_" .. i)
this.godlist[i].red = Util.GetGameObject(this.godlist[i].gob, "red")
this.godlist[i].effect = Util.GetGameObject(this.godlist[i].gob, "StarOpen")
--Util.AddParticleSortLayer(this.godlist[i].effect, this.sortingOrder)
end
end
--绑定事件(用于子类重写)
function BecomeAGodPanel:BindEvent()
Util.AddClick(this.btn_help, function()
UIManager.OpenPanel(UIName.HelpPopup, HELP_TYPE.Mingge, 0, 0)
UIManager.OpenPanel(UIName.HelpPopup, HELP_TYPE.BecomeAGod, 0, 0)
end)
Util.AddClick(this.btnBack, function()
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
@ -80,6 +83,10 @@ end
function BecomeAGodPanel:OnShow()
this.teamHero = FormationManager.GetAllMainFormationHeroId()
this.RefreshWindowData()
for i = 1, 6 do
Util.AddParticleSortLayer(this.godlist[i].effect, this.sortingOrder - 1)
end
Util.AddParticleSortLayer(this.effect, this.sortingOrder - 1)
end
function this:OnSortingOrderChange()
@ -99,14 +106,30 @@ end
function this.RefreshWindowData()
this.ChangePowerValue()
this.btnLvup.gameObject:SetActive(BecomeAGodManager.IsCouldUpgrade())
local str = ""
for i = 1, 3 do
if i < BecomeAGodManager.playerGodLevel then
str = str .. "<color=#57c88a>" ..
BecomeAGodLevel[i].Describe .. "</color>\n"
elseif i == BecomeAGodManager.playerGodLevel and BecomeAGodManager.IsCouldUpgrade() then
str = str .. "<color=#57c88a>" ..
BecomeAGodLevel[i].Describe .. "</color>\n"
else
str = str ..
BecomeAGodLevel[i].Describe .. "\n"
end
end
this.LevelUpDes.text = str
if BecomeAGodLevel[BecomeAGodManager.playerGodLevel + 1] then
this.btnLvup.gameObject:SetActive(true)
this.LevelUpDes.gameObject:SetActive(true)
this.LevelUpDes.text = BecomeAGodLevel[BecomeAGodManager.playerGodLevel + 1].Describe
if BecomeAGodManager.IsCouldUpgrade() then
Util.SetGray(this.btnLvup, false)
--this.LevelUpDes.text = "<color=#57c88a>" ..
--BecomeAGodLevel[BecomeAGodManager.playerGodLevel + 1].Describe .. "</color>"
else
Util.SetGray(this.btnLvup, true)
--this.LevelUpDes.text = BecomeAGodLevel[BecomeAGodManager.playerGodLevel + 1].Describe
end
else
this.btnLvup.gameObject:SetActive(false)

View File

@ -24,7 +24,7 @@ function BecomeAGodPropertyPanel:InitComponent()
this.needPre = Util.GetGameObject(self.needs, "pre")
this.btnLvup = Util.GetGameObject(self.transform, "btns/Lvup")
this.force = Util.GetGameObject(self.transform, "powerBtn/value"):GetComponent("Text")
this.btn_help = Util.GetGameObject(self.gameObject, "btn_help")
--this.btn_help = Util.GetGameObject(self.gameObject, "btn_help")
this.itemList = {}
this.isMax = false
this.LvText = Util.GetGameObject(self.gameObject, "Lv"):GetComponent("Text")
@ -32,9 +32,9 @@ end
--绑定事件(用于子类重写)
function BecomeAGodPropertyPanel:BindEvent()
Util.AddClick(this.btn_help, function()
UIManager.OpenPanel(UIName.HelpPopup, HELP_TYPE.Mingge, 0, 0)
end)
--Util.AddClick(this.btn_help, function()
--UIManager.OpenPanel(UIName.HelpPopup, HELP_TYPE.Mingge, 0, 0)
--end)
Util.AddClick(this.btnBack, function()
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
self:ClosePanel()
@ -48,7 +48,7 @@ function BecomeAGodPropertyPanel:BindEvent()
return true
end
end
LogError("升级类型:"..this.index)
LogError("升级类型:" .. this.index)
NetManager.PlayerMeridiansLevelUpRequest(this.index, function(msg)
PopupTipPanel.ShowTip(string.format("升级成功!"))
this.teamHero = FormationManager.GetAllMainFormationHeroId()
@ -106,10 +106,14 @@ function BecomeAGodPropertyPanel:SetPropertyShow(_infos)
for i = 1, #this.properList do
this.properList[i].go.gameObject:SetActive(false)
end
local floor = GodsWayTowerManager.GetTowerFloorByType(3)
for key, value in pairs(_infos) do
if not this.properList[index] then
this.properList[index] = {}
this.properList[index].go = newObjToParent(this.properItemPre, this.propertyGrid)
this.properList[index].Lock = Util.GetGameObject(this.properList[index].go, "Lock")
this.properList[index].LockText = Util.GetGameObject(this.properList[index].go, "Lock/Text"):GetComponent(
"Text")
this.properList[index].leftTxt = Util.GetGameObject(this.properList[index].go, "leftTxt"):GetComponent(
"Text")
this.properList[index].rightTxt = Util.GetGameObject(this.properList[index].go, "rightTxt"):GetComponent(
@ -125,6 +129,12 @@ function BecomeAGodPropertyPanel:SetPropertyShow(_infos)
this.properList[index].leftTxt.text = GetLanguageStrById(proper.Info) .. "+" .. value.currValue / 100 .. "%"
this.properList[index].rightTxt.text = this.isMax and Language[10209] or value.nextValue / 100 .. "%"
end
if floor >= _infos.floor then
this.properList[index].Lock:SetActive(false)
else
this.properList[index].Lock:SetActive(true)
this.properList[index].LockText.text = "成神挑战通关" .. _infos.floor .. "解锁"
end
index = index + 1
end
LayoutRebuilder.ForceRebuildLayoutImmediate(this.secondScroll.transform)