【修行】提交

dev_chengFeng
ZhangBiao 2021-05-11 17:23:19 +08:00
parent 7104d77d7e
commit 7ba5209394
10 changed files with 1846 additions and 147 deletions

View File

@ -189,6 +189,8 @@ local ManagerNames = {
"FifteenDayGift/FifteenDayGiftManager",
--一般活动界面管理器
"NewActivity/CommonActPageManager",
--修心管理器
"Practice/PracticeManager",
--!!!!红点管理(尽量放在最后)!!!!--
"Story/StoryMapManager",
"Player/RedpotManager",

View File

@ -191,6 +191,7 @@ ConfigName = {
ComposeActivity = "ComposeActivity",
ComposeBook = "ComposeBook",
StoryMapConfig = "StoryMapConfig",
XiuXianConfig = "XiuXian"
}
require "Framework/GameDataBase"

View File

@ -378,7 +378,7 @@ UIName = {
RedpotDebugPanel = 386, -- 红点debug
StoryMapPanel = 387, -- 剧情
TaSuiLingXiaoPanel = 388,--踏碎凌霄
PracticePanel = 389,--修行
PracticePanel = 392,--修行
}
SubUIConfig = {

View File

@ -224,6 +224,10 @@ function this.PlayerInfoRequest(func)
QinglongSerectTreasureManager.SetTreasureBuyStatus(msg.hadBuyTreasure)
PlayerManager.RefreshWorldLeveData(msg.worldLeve)
PlayerManager.InitSkinTitleMountData(msg.userSkinList,msg.userTitleList,msg.userMountList)
local test = {
level = 1,
}
PracticeManager.UpdataFromServer(test)
if func then
func(msg)
end

View File

@ -0,0 +1,15 @@
PracticeManager = {}
local this = PracticeManager
function this.Initialize()
this.PracticeLevel = 0
this.StarNum = 0
this.PracticeConfigData = {}
end
function this.UpdataFromServer(msg)
this.PracticeLevel = msg.level
this.StarNum = PlayerManager.level
end
return PracticeManager

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: c3424291ef4a76c4d920f453e4ef94e0
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,12 +1,33 @@
local Practice = quick_class("Practice", BasePanel)
local orginLayer
local XinXianConfig = ConfigManager.GetConfig(ConfigName.XiuXianConfig)
function Practice:InitComponent()
orginLayer = 0
if not self.playerInfoView then
self.playerInfoView = SubUIManager.Open(SubUIConfig.PlayerInfoView, self.transform)
end
self.BtView = SubUIManager.Open(SubUIConfig.BtView, self.transform)
self.UpView = SubUIManager.Open(SubUIConfig.UpView, self.transform)
self.helpBtn = Util.GetGameObject(self.gameObject, "helpBtn")
--Btns
self.helpBtn = Util.GetGameObject(self.gameObject, "Btns/helpBtn")
self.helpPosition=self.helpBtn:GetComponent("RectTransform").localPosition
self.previewBtn = Util.GetGameObject(self.gameObject, "Btns/previewBtn")
self.additionBtn = Util.GetGameObject(self.gameObject, "Btns/additionBtn")
self.imprintBtn = Util.GetGameObject(self.gameObject, "Btns/imprintBtn")
self.starBtn = Util.GetGameObject(self.gameObject, "Btns/starBtn")
self.starNum = Util.GetGameObject(self.starBtn, "starNum")
--MidPart
self.mid = Util.GetGameObject(self.gameObject, "Mid")
self.levelName = Util.GetGameObject(self.mid, "Text"):GetComponent("Text")
self.img = Util.GetGameObject(self.mid, "Img"):GetComponent("Image")
--BottomPart
self.bottom = Util.GetGameObject(self.gameObject, "Bottom")
self.items = Util.GetGameObject(self.bottom, "Items")
self.needs = Util.GetGameObject(self.bottom, "Needs")
self.needPre = Util.GetGameObject(self.needs, "pre")
self.button = Util.GetGameObject(self.bottom, "Button")
self.buttonText = Util.GetGameObject(self.button, "Text"):GetComponent("Text")
end
function Practice:BindEvent()
@ -19,6 +40,15 @@ function Practice:BindEvent()
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
self:ClosePanel()
end)
Util.AddClick(self.previewBtn, function()
LogGreen("self.previewBtn")
end)
Util.AddClick(self.additionBtn, function()
LogGreen("self.additionBtn")
end)
Util.AddClick(self.imprintBtn, function()
LogGreen("self.imprintBtn")
end)
end
function Practice:AddListener()
@ -34,7 +64,7 @@ function Practice:OnOpen()
end
function Practice:OnSortingOrderChange()
Util.AddParticleSortLayer(self.effect, self.sortingOrder - orginLayer)
-- Util.AddParticleSortLayer(self.effect, self.sortingOrder - orginLayer)
orginLayer = self.sortingOrder
-- 头像层级
if self.playerInfoView then
@ -43,6 +73,12 @@ function Practice:OnSortingOrderChange()
end
function Practice:OnShow()
FormationManager.RefreshMainFormationPower()
self:RefreshMid()
end
function Practice:RefreshMid()
-- body
end
function Practice:OnClose()

View File

@ -84,6 +84,9 @@ end
-- function this:OpenVIP()
-- UIManager.OpenPanel(UIName.VipPanelV2)
-- end
function this:OpenPractice()
UIManager.OpenPanel(UIName.PracticePanel)
end
--绑定事件(用于子类重写)
function this:BindEvent()

View File

@ -108,6 +108,7 @@ function PlayerInfoView:OnShow()
end
function PlayerInfoView:RefreshPower(force)
LogGreen("force:"..tostring(force))
self.heroTeamPower.text = force
-- self.heroTeamPower.text = FormationManager.GetFormationPower(FormationManager.curFormationIndex)
end