【家园】开坑
parent
44df57188d
commit
8eb6abec8e
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2bb6e02bccf44a54f8ee62b659c4f4c0
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2f88e9ed62b6f6f4281966abdbd2604c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 93dd88a8220a2354697206eff57d590f
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6bd1f4b7b179ec24fb5c855304520919
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
|
@ -221,6 +221,7 @@ local ManagerNames = {
|
|||
--灵脉秘境
|
||||
"LingMaiMiJing/LingMaiMiJingManager",
|
||||
"TreasureOfHeaven/RecruitTreasureManager",
|
||||
"HomeLand/HomeLandManager",
|
||||
--!!!!红点管理(尽量放在最后)!!!!--
|
||||
"Player/RedpotManager",
|
||||
}
|
||||
|
|
|
@ -437,6 +437,8 @@ UIName = {
|
|||
ArenaTrialPanel = 445,
|
||||
SupremeHeroPopupNew = 448,
|
||||
PremiumRebatePanel = 449,
|
||||
HomeLandPanel = 450,--家园界面
|
||||
QiYunGePanel = 451,--栖云阁界面
|
||||
}
|
||||
|
||||
SubUIConfig = {
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a21d78dae4318ab41b0b354c9a6920ce
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,6 @@
|
|||
HomeLandManager = {}
|
||||
local this = HomeLandManager
|
||||
function this.Initialize()
|
||||
end
|
||||
|
||||
return HomeLandManager
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ac6f417072b2e2e478cb0737bdba417f
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,56 @@
|
|||
local HomeLand = quick_class("HomeLand", BasePanel)
|
||||
function HomeLand:InitComponent()
|
||||
self.spLoader = SpriteLoader.New()
|
||||
if not self.playerInfoView then
|
||||
self.playerInfoView = SubUIManager.Open(SubUIConfig.PlayerInfoView, self.transform)
|
||||
end
|
||||
self.UpView = SubUIManager.Open(SubUIConfig.UpView, self.transform)
|
||||
end
|
||||
|
||||
function HomeLand:BindEvent()
|
||||
--帮助按钮
|
||||
-- Util.AddClick(self.helpBtn, function()
|
||||
-- UIManager.OpenPanel(UIName.HelpPopup, HELP_TYPE.HomeLand, self.helpPosition.x,self.helpPosition.y)
|
||||
-- end)
|
||||
|
||||
-- Util.AddClick(self.BtnBack, function()
|
||||
-- PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
|
||||
-- self:ClosePanel()
|
||||
-- end)
|
||||
end
|
||||
|
||||
function HomeLand:AddListener()
|
||||
-- Game.GlobalEvent:AddEvent(GameEvent.Bag.BagGold, self.OnShow,self)
|
||||
end
|
||||
|
||||
function HomeLand:RemoveListener()
|
||||
-- Game.GlobalEvent:RemoveEvent(GameEvent.Bag.BagGold, self.OnShow,self)
|
||||
end
|
||||
|
||||
--待功能扩展(试图打开某个状态)
|
||||
function HomeLand:OnOpen()
|
||||
self.UpView:OnOpen({ showType = UpViewOpenType.ShowRight, panelType = PanelType.XiuXing })
|
||||
end
|
||||
|
||||
|
||||
function HomeLand:OnSortingOrderChange()
|
||||
end
|
||||
|
||||
function HomeLand:OnShow()
|
||||
self.playerInfoView:OnShow()
|
||||
end
|
||||
|
||||
function HomeLand:OnClose()
|
||||
end
|
||||
|
||||
function HomeLand:OnDestroy()
|
||||
self.spLoader:Destroy()
|
||||
SubUIManager.Close(self.UpView)
|
||||
self.UpView = nil
|
||||
if self.playerInfoView then
|
||||
SubUIManager.Close(self.playerInfoView)
|
||||
self.playerInfoView = nil
|
||||
end
|
||||
end
|
||||
|
||||
return HomeLand
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f26191f45e7373e4e800cae8615faf7f
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,45 @@
|
|||
require("Base/BasePanel")
|
||||
require("Base/Stack")
|
||||
require("Modules/Map/Logic/TileMapController")
|
||||
require("Modules/Map/Logic/TileMapView")
|
||||
local QiYunGe = Inherit(BasePanel)
|
||||
local this = QiYunGe
|
||||
local mapCtrl = "MapCtrl"
|
||||
-- 缩放值
|
||||
local offsetScale = math.min(Screen.width/3241, Screen.height/1920)
|
||||
--初始化组件(用于子类重写)
|
||||
function QiYunGe:InitComponent()
|
||||
self.spLoader = SpriteLoader.New()
|
||||
self.btnBack = Util.GetGameObject(self.gameObject, "mapParent/btnBack")
|
||||
end
|
||||
|
||||
--绑定事件(用于子类重写)
|
||||
function QiYunGe:BindEvent()
|
||||
Util.AddClick(self.btnBack, function()
|
||||
SwitchPanel.OpenPanel(nil,function ()
|
||||
self:ClosePanel()
|
||||
end)
|
||||
end)
|
||||
end
|
||||
function QiYunGe:OnSortingOrderChange()
|
||||
end
|
||||
--界面打开时调用(用于子类重写)
|
||||
function QiYunGe:OnOpen(_data,_func)
|
||||
end
|
||||
|
||||
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
|
||||
function QiYunGe:OnShow()
|
||||
end
|
||||
|
||||
|
||||
--界面关闭时调用(用于子类重写)
|
||||
function QiYunGe:OnClose()
|
||||
SoundManager.StopMusic("BGM_010")
|
||||
end
|
||||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
function QiYunGe:OnDestroy()
|
||||
self.spLoader:Destroy()
|
||||
end
|
||||
|
||||
return QiYunGe
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2a7f067d736c4ab4ba8873c68b5593c8
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue