【修行】新增通用恭喜界面
parent
e491f58adc
commit
3bb85fd5db
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cba8de8a52af2244faf91d936392849c
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -931,6 +931,7 @@ MonoBehaviour:
|
|||
- Assets/ManagedResources/~Lua/Modules/GeneralPanel
|
||||
- Assets/ManagedResources/~Lua/Modules/GeneralPanel/View
|
||||
- Assets/ManagedResources/~Lua/Modules/GeneralPanel/View2
|
||||
- Assets/ManagedResources/~Lua/Modules/GeneralPanel/View3
|
||||
- Assets/ManagedResources/~Lua/Modules/GlobalActTimeCtrl
|
||||
- Assets/ManagedResources/~Lua/Modules/GoodFriend
|
||||
- Assets/ManagedResources/~Lua/Modules/Guide
|
||||
|
@ -22807,14 +22808,30 @@ MonoBehaviour:
|
|||
extension: .png
|
||||
resPathIndex: 105
|
||||
resAbNameIndex: 452
|
||||
- resName: x_xiuxing_dujie
|
||||
extension: .png
|
||||
resPathIndex: 105
|
||||
resAbNameIndex: 452
|
||||
- resName: x_xiuxing_dujieqizi
|
||||
extension: .png
|
||||
resPathIndex: 105
|
||||
resAbNameIndex: 452
|
||||
- resName: x_xiuxing_gongxizi
|
||||
extension: .png
|
||||
resPathIndex: 105
|
||||
resAbNameIndex: 452
|
||||
- resName: x_xiuxing_huashen
|
||||
extension: .png
|
||||
resPathIndex: 105
|
||||
resAbNameIndex: 452
|
||||
- resName: x_xiuxing_huashenqizi
|
||||
extension: .png
|
||||
resPathIndex: 105
|
||||
resAbNameIndex: 452
|
||||
- resName: x_xiuxing_jindan
|
||||
extension: .png
|
||||
resPathIndex: 105
|
||||
resAbNameIndex: 452
|
||||
- resName: x_xiuxing_jindanqizi
|
||||
extension: .png
|
||||
resPathIndex: 105
|
||||
|
@ -22823,10 +22840,18 @@ MonoBehaviour:
|
|||
extension: .png
|
||||
resPathIndex: 105
|
||||
resAbNameIndex: 452
|
||||
- resName: x_xiuxing_lianxu
|
||||
extension: .png
|
||||
resPathIndex: 105
|
||||
resAbNameIndex: 452
|
||||
- resName: x_xiuxing_lianxuqizi
|
||||
extension: .png
|
||||
resPathIndex: 105
|
||||
resAbNameIndex: 452
|
||||
- resName: x_xiuxing_xiaoyao
|
||||
extension: .png
|
||||
resPathIndex: 105
|
||||
resAbNameIndex: 452
|
||||
- resName: x_xiuxing_xiaoyaoqizi
|
||||
extension: .png
|
||||
resPathIndex: 105
|
||||
|
@ -22835,6 +22860,14 @@ MonoBehaviour:
|
|||
extension: .png
|
||||
resPathIndex: 105
|
||||
resAbNameIndex: 452
|
||||
- resName: x_xiuxing_yuanyinzi
|
||||
extension: .png
|
||||
resPathIndex: 105
|
||||
resAbNameIndex: 452
|
||||
- resName: x_xiuxing_zhuji
|
||||
extension: .png
|
||||
resPathIndex: 105
|
||||
resAbNameIndex: 452
|
||||
- resName: x_xiuxing_zhujiqizi
|
||||
extension: .png
|
||||
resPathIndex: 105
|
||||
|
@ -53919,6 +53952,10 @@ MonoBehaviour:
|
|||
extension: .prefab
|
||||
resPathIndex: 500
|
||||
resAbNameIndex: 3177
|
||||
- resName: CongratulationPopup
|
||||
extension: .prefab
|
||||
resPathIndex: 501
|
||||
resAbNameIndex: 3178
|
||||
- resName: GeneralBigPopup
|
||||
extension: .prefab
|
||||
resPathIndex: 501
|
||||
|
@ -75420,6 +75457,7 @@ MonoBehaviour:
|
|||
- lz4/atlas/publicatlas.unity3d
|
||||
- lz4/atlas/roleinfoatlas.unity3d
|
||||
- lz4/atlas/tagatlas.unity3d
|
||||
- lz4/atlas/tianshumijuan.unity3d
|
||||
- lz4/atlas/vipatlas.unity3d
|
||||
- lz4/bg/r_guanka_richang_tanchuangdi_xiao.unity3d
|
||||
- lz4/dynamicatlas/r_hero_di020.unity3d
|
||||
|
|
|
@ -2011,6 +2011,11 @@ GENERALINFO_TYPE = {
|
|||
PracticeLevel = 2,--修行界面小点的信息
|
||||
}
|
||||
|
||||
--通用恭喜界面类型
|
||||
CONGRATULATION_TYPE = {
|
||||
Practice = 1,--破境成功
|
||||
}
|
||||
|
||||
--抽卡类型
|
||||
RecruitType = {
|
||||
WaterTen = 1, --水属性十抽
|
||||
|
|
|
@ -385,6 +385,7 @@ UIName = {
|
|||
PracticePanel = 392,--修行
|
||||
PracticeImprintPanel = 394,--修行神印界面
|
||||
GeneralInfoPopup = 395,--通用信息弹窗(类似技能信息界面)
|
||||
CongratulationPopup = 396,--通用恭喜界面(类似恭喜升级)
|
||||
}
|
||||
|
||||
SubUIConfig = {
|
||||
|
|
|
@ -0,0 +1,79 @@
|
|||
----- 通用恭喜弹窗 -----
|
||||
require("Base/BasePanel")
|
||||
CongratulationPopup = Inherit(BasePanel)
|
||||
local this = CongratulationPopup
|
||||
local sorting = 0
|
||||
|
||||
--子模块脚本
|
||||
local contentScripts = {
|
||||
--神印信息
|
||||
[CONGRATULATION_TYPE.Practice] = {view = require("Modules/GeneralPanel/View3/CongratulationPopup_Practice"), panelName = "CongratulationPopup_Practice"},
|
||||
}
|
||||
--子模块预设
|
||||
local contentPrefabs={}
|
||||
|
||||
--初始化组件(用于子类重写)
|
||||
function CongratulationPopup:InitComponent()
|
||||
this.contents = Util.GetGameObject(this.gameObject,"Content")
|
||||
this.backBtn = Util.GetGameObject(this.gameObject,"backBtn")
|
||||
|
||||
--子模块脚本初始化
|
||||
for key, value in pairs(contentScripts) do
|
||||
value.view:InitComponent(Util.GetGameObject(this.contents, value.panelName))
|
||||
end
|
||||
--预设赋值
|
||||
for key, value in pairs(contentScripts) do
|
||||
contentPrefabs[key]=Util.GetGameObject(this.contents,value.panelName)
|
||||
end
|
||||
end
|
||||
|
||||
--绑定事件(用于子类重写)
|
||||
function CongratulationPopup:BindEvent()
|
||||
for key, value in pairs(contentScripts) do
|
||||
value.view:BindEvent()
|
||||
end
|
||||
--返回按钮
|
||||
Util.AddClick(this.backBtn,function()
|
||||
self:ClosePanel()
|
||||
end)
|
||||
end
|
||||
|
||||
function CongratulationPopup:AddListener()
|
||||
for key, value in pairs(contentScripts) do
|
||||
value.view:AddListener()
|
||||
end
|
||||
end
|
||||
|
||||
function CongratulationPopup:RemoveListener()
|
||||
for key, value in pairs(contentScripts) do
|
||||
value.view:RemoveListener()
|
||||
end
|
||||
end
|
||||
|
||||
function CongratulationPopup:OnSortingOrderChange()
|
||||
this.sortingOrder = self.sortingOrder
|
||||
end
|
||||
function CongratulationPopup:OnOpen(popupKey,...)
|
||||
for key, value in pairs(contentPrefabs) do
|
||||
value.gameObject:SetActive(false)
|
||||
end
|
||||
contentPrefabs[popupKey].gameObject:SetActive(true)
|
||||
contentScripts[popupKey].view:OnShow(this,...)--1、传入自己 2、传入不定参
|
||||
end
|
||||
|
||||
function CongratulationPopup:OnShow()
|
||||
end
|
||||
|
||||
function CongratulationPopup:OnClose()
|
||||
for key, value in pairs(contentScripts) do
|
||||
value.view:OnClose()
|
||||
end
|
||||
end
|
||||
|
||||
function CongratulationPopup:OnDestroy()
|
||||
for key, value in pairs(contentScripts) do
|
||||
value.view:OnDestroy()
|
||||
end
|
||||
end
|
||||
|
||||
return CongratulationPopup
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 42e5059bb5ad5eb46967094c97d54a9f
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ed7fd59b2e902704fae584c59ccb3aaa
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,37 @@
|
|||
local this = {}
|
||||
--传入父脚本模块
|
||||
local parent
|
||||
--传入特效层级
|
||||
local sortingOrder=0
|
||||
|
||||
--初始化组件(用于子类重写)
|
||||
function this:InitComponent(gameObject)
|
||||
end
|
||||
|
||||
--绑定事件(用于子类重写)
|
||||
function this:BindEvent()
|
||||
end
|
||||
|
||||
--添加事件监听(用于子类重写)
|
||||
function this:AddListener()
|
||||
end
|
||||
|
||||
--移除事件监听(用于子类重写)
|
||||
function this:RemoveListener()
|
||||
end
|
||||
|
||||
--界面打开时调用(用于子类重写)
|
||||
function this:OnShow(_parent,...)
|
||||
parent=_parent
|
||||
sortingOrder = _parent.sortingOrder
|
||||
end
|
||||
|
||||
--界面关闭时调用(用于子类重写)
|
||||
function this:OnClose()
|
||||
end
|
||||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
function this:OnDestroy()
|
||||
end
|
||||
|
||||
return this
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d419a38651f999548b66dd1d91a078b1
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -67,6 +67,7 @@ function Practice:BindEvent()
|
|||
end)
|
||||
Util.AddClick(self.starBtn, function()
|
||||
LogGreen("打开山河社稷图")
|
||||
UIManager.OpenPanel(UIName.CongratulationPopup,CONGRATULATION_TYPE.Practice)
|
||||
end)
|
||||
Util.AddClick(self.button, function()
|
||||
if self:UpgradeCheck() then return end
|
||||
|
|
Loading…
Reference in New Issue