29 lines
580 B
Lua
29 lines
580 B
Lua
local BountyMainUI = class("BountyMainUI", BaseUI)
|
|
|
|
function BountyMainUI:getPrefabPath()
|
|
return "assets/prefabs/ui/bounty/bounty_main_ui.prefab"
|
|
end
|
|
|
|
function BountyMainUI:ctor()
|
|
end
|
|
|
|
function BountyMainUI:onLoadRootComplete()
|
|
local uiMap = self.root:genAllChildren()
|
|
local closeBtn = uiMap["bounty_main_ui.bottom_node.clost_btn"]
|
|
closeBtn:addClickListener(function()
|
|
self:closeUI()
|
|
end)
|
|
|
|
self:scheduleGlobal(function()
|
|
self:updateTime()
|
|
end, 1)
|
|
self:updateTime()
|
|
end
|
|
|
|
function BountyMainUI:updateTime()
|
|
end
|
|
|
|
function BountyMainUI:onRefresh()
|
|
end
|
|
|
|
return BountyMainUI |