空岛夺宝

onepiece_demo_arena
xiejun 2024-01-25 18:07:55 +08:00
parent 67408bffed
commit fc54d71dd2
1 changed files with 6 additions and 3 deletions

View File

@ -2,9 +2,9 @@ require("Base/BasePanel")
local LingMaiMiJingPanel = Inherit(BasePanel)
local lodeConfig = ConfigManager.GetConfig(ConfigName.LodeConfig)
local TEXTLIST = {
[1] = "距抢夺期结束:%s",
[2] = "宝岛开启:%s",
[3] = "宝岛关闭:%s",
[1] = "距抢夺期结束:",
[2] = "空岛开启:",
[3] = "空岛关闭:",
}
local veinName = {
[3] = "l_lmmj_huangjilingmai",
@ -35,6 +35,7 @@ function LingMaiMiJingPanel:InitComponent()
--top
self.topBar = Util.GetGameObject(self.gameObject,"topBar")
self.leftTime = Util.GetGameObject(self.topBar,"Text"):GetComponent("Text")
self.leftDesTime = Util.GetGameObject(self.topBar,"text"):GetComponent("Text")
--bottom
self.bottom = Util.GetGameObject(self.gameObject,"bottomBar")
self.time = Util.GetGameObject(self.bottom,"time")
@ -261,7 +262,9 @@ function LingMaiMiJingPanel:SetTime()
end
--self.leftTime.text = string.format("",TimeToHMS(time))
self.leftTime.text = TimeToHMS(time)
self.leftDesTime.text = text
self.timer = Timer.New(function ()
time = time - 1
timeStayAtHere = timeStayAtHere + 1