百抽活动预设修改
parent
e602cb5ff0
commit
67408bffed
File diff suppressed because it is too large
Load Diff
|
@ -7,7 +7,7 @@ function FestevalPanel:InitComponent()
|
|||
self.spLoader = SpriteLoader.New()
|
||||
self.closePanel = Util.GetGameObject(self.gameObject,"mask")
|
||||
self.liveRoot = Util.GetGameObject(self.closePanel,"root")
|
||||
self.title = Util.GetGameObject(self.closePanel,"title"):GetComponent("Image")
|
||||
self.title = Util.GetGameObject(self.closePanel,"title"):GetComponent("Text")
|
||||
self.tipDi = Util.GetGameObject(self.closePanel,"tipDi"):GetComponent("Image")
|
||||
self.tip = Util.GetGameObject(self.tipDi.transform,"tip"):GetComponent("Text")
|
||||
self.grid = Util.GetGameObject(self.gameObject,"content/grid")
|
||||
|
@ -58,27 +58,27 @@ function FestevalPanel:OnShow()
|
|||
poolManager:UnLoadLive(self.live.gameObject.name, self.live)
|
||||
self.live = nil
|
||||
end
|
||||
|
||||
LogError("self.actId================="..self.actId)
|
||||
if GlobalActivityConfig[self.actId].ShowArt and GlobalActivityConfig[self.actId].ShowArt > 0 then
|
||||
local data = ConfigManager.GetConfigData(ConfigName.HeroConfig,GlobalActivityConfig[self.actId].ShowArt)
|
||||
self.live = poolManager:LoadLive(GetResourcePath(data.Live), self.liveRoot.transform,
|
||||
|
||||
self.live = poolManager:LoadLive(GetResourcePath(data.Painting), self.liveRoot.transform,
|
||||
Vector3.one * data.Scale, Vector3.New(data.Position[1], data.Position[2], 0))
|
||||
local SkeletonGraphic = self.live:GetComponent("SkeletonGraphic")
|
||||
SkeletonGraphic.AnimationState:SetAnimation(0, "idle", true)
|
||||
end
|
||||
|
||||
self.tempData = string.split(GlobalActivityConfig[self.actId].ExpertDec,"#")
|
||||
self.title.sprite = self.spLoader:LoadSprite(self.tempData[1])
|
||||
self.title:SetNativeSize()
|
||||
self.title.transform.localPosition = Vector3.New(tonumber(self.tempData[2]),tonumber(self.tempData[3]),tonumber(self.tempData[4]))
|
||||
self.title.text = GlobalActivityConfig[self.actId].Sesc
|
||||
--self.title.transform.localPosition = Vector3.New(tonumber(self.tempData[2]),tonumber(self.tempData[3]),tonumber(self.tempData[4]))
|
||||
LogGreen("self.tempData[5]:"..self.tempData[5])
|
||||
self.tipDi.sprite = self.spLoader:LoadSprite(self.tempData[5])
|
||||
self.tipDi:SetNativeSize()
|
||||
self.tipDi.transform.localPosition = Vector3.New(tonumber(self.tempData[6]),tonumber(self.tempData[7]),tonumber(self.tempData[8]))
|
||||
--self.tipDi.transform.localPosition = Vector3.New(tonumber(self.tempData[6]),tonumber(self.tempData[7]),tonumber(self.tempData[8]))
|
||||
if self.tempData[9] then
|
||||
self.tip.text = self.tempData[9]
|
||||
else
|
||||
self.tip.text = self.tempData[9]
|
||||
self.tip.text ="累计登陆 百抽相送" --self.tempData[9]
|
||||
end
|
||||
self.curDay = math.ceil((CalculateSecondsNowTo_N_OClock(0) + GetTimeStamp() - self.actData.startTime)/86400)
|
||||
self:RefreshData()
|
||||
|
|
Loading…
Reference in New Issue