【命格】提交
parent
06d532a9bc
commit
23be95a314
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9e32c3f03f9d4fb4790dd93b25397428
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -0,0 +1,10 @@
|
||||||
|
FateManager = {}
|
||||||
|
local this = FateManager
|
||||||
|
function this.Initialize()
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.GetServerData(msg)
|
||||||
|
-- body
|
||||||
|
end
|
||||||
|
|
||||||
|
return this
|
|
@ -1,5 +1,4 @@
|
||||||
local Fate = quick_class("Fate", BasePanel)
|
local Fate = quick_class("Fate", BasePanel)
|
||||||
local orginLayer = 0
|
|
||||||
|
|
||||||
function Fate:InitComponent()
|
function Fate:InitComponent()
|
||||||
self.spLoader = SpriteLoader.New()
|
self.spLoader = SpriteLoader.New()
|
||||||
|
@ -10,7 +9,6 @@ function Fate:InitComponent()
|
||||||
end
|
end
|
||||||
--MidPart
|
--MidPart
|
||||||
self.mid = Util.GetGameObject(self.gameObject, "Mid")
|
self.mid = Util.GetGameObject(self.gameObject, "Mid")
|
||||||
self.levelName = Util.GetGameObject(self.mid, "LevelName"):GetComponent("Image")
|
|
||||||
self.img = Util.GetGameObject(self.mid, "Man"):GetComponent("Image")
|
self.img = Util.GetGameObject(self.mid, "Man"):GetComponent("Image")
|
||||||
self.ManCanvas = Util.GetGameObject(self.mid, "Man"):GetComponent("Canvas")
|
self.ManCanvas = Util.GetGameObject(self.mid, "Man"):GetComponent("Canvas")
|
||||||
|
|
||||||
|
@ -24,10 +22,6 @@ function Fate:BindEvent()
|
||||||
UIManager.OpenPanel(UIName.HelpPopup, HELP_TYPE.Practice, self.helpPosition.x,self.helpPosition.y)
|
UIManager.OpenPanel(UIName.HelpPopup, HELP_TYPE.Practice, self.helpPosition.x,self.helpPosition.y)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Util.AddClick(self.BtnBack, function()
|
|
||||||
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
|
|
||||||
self:ClosePanel()
|
|
||||||
end)
|
|
||||||
Util.AddClick(self.btnPractice, function()
|
Util.AddClick(self.btnPractice, function()
|
||||||
UIManager.OpenPanel(UIName.PracticePanel)
|
UIManager.OpenPanel(UIName.PracticePanel)
|
||||||
self:ClosePanel()
|
self:ClosePanel()
|
||||||
|
@ -47,7 +41,6 @@ function Fate:OnOpen()
|
||||||
end
|
end
|
||||||
|
|
||||||
function Fate:OnSortingOrderChange()
|
function Fate:OnSortingOrderChange()
|
||||||
orginLayer = self.sortingOrder
|
|
||||||
self.ManCanvas.sortingOrder = self.sortingOrder + 2
|
self.ManCanvas.sortingOrder = self.sortingOrder + 2
|
||||||
-- 头像层级
|
-- 头像层级
|
||||||
if self.playerInfoView then
|
if self.playerInfoView then
|
||||||
|
@ -67,31 +60,6 @@ function Fate:RefreshMid()
|
||||||
self.ManCanvas.sortingOrder = self.sortingOrder + 2
|
self.ManCanvas.sortingOrder = self.sortingOrder + 2
|
||||||
end
|
end
|
||||||
|
|
||||||
--刷新 点间的线
|
|
||||||
function Fate:RefreshLines()
|
|
||||||
if not self.lineList then
|
|
||||||
self.lineList = {}
|
|
||||||
end
|
|
||||||
for k,v in ipairs(self.lineList) do
|
|
||||||
v.gameObject:SetActive(false)
|
|
||||||
end
|
|
||||||
for i = 1, #self.lineData do
|
|
||||||
local data = self.lineData[i]
|
|
||||||
if not self.lineList[i] then
|
|
||||||
self.lineList[i] = newObject(self.LinePre)
|
|
||||||
self.lineList[i].transform:SetParent(self.lines.transform)
|
|
||||||
self.lineList[i].transform.localScale = Vector3.one
|
|
||||||
self.lineList[i].transform.localPosition = Vector3.zero
|
|
||||||
end
|
|
||||||
self.lineList[i]:SetActive(true)
|
|
||||||
local imgName = data.State == 1 and "x_xiuxing_xian_01" or "x_xiuxing_xian_02"
|
|
||||||
self.lineList[i]:GetComponent("Image").sprite = self.spLoader:LoadSprite(imgName)
|
|
||||||
self.lineList[i]:GetComponent("RectTransform").localPosition = data.Pos
|
|
||||||
self.lineList[i]:GetComponent("RectTransform").rotation = Quaternion.Euler(data.Rota)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
function Fate:OnClose()
|
function Fate:OnClose()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -94,10 +94,6 @@ function Practice:BindEvent()
|
||||||
UIManager.OpenPanel(UIName.HelpPopup, HELP_TYPE.Practice, self.helpPosition.x,self.helpPosition.y)
|
UIManager.OpenPanel(UIName.HelpPopup, HELP_TYPE.Practice, self.helpPosition.x,self.helpPosition.y)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Util.AddClick(self.BtnBack, function()
|
|
||||||
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
|
|
||||||
self:ClosePanel()
|
|
||||||
end)
|
|
||||||
Util.AddClick(self.previewBtn, function()
|
Util.AddClick(self.previewBtn, function()
|
||||||
UIManager.OpenPanel(UIName.GeneralBigPopup,GENERAL_POPUP_TYPE.PracticeStatePreview)
|
UIManager.OpenPanel(UIName.GeneralBigPopup,GENERAL_POPUP_TYPE.PracticeStatePreview)
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue