2025-05-25 11:35:02 +08:00
|
|
|
local PlayerInfoView = require("Game.View.PlayerInfoView")
|
|
|
|
|
|
|
|
|
|
local M = {}
|
|
|
|
|
|
|
|
|
|
function M.new(view, mainView)
|
|
|
|
|
setmetatable(M, {__index = PlayerInfoView})
|
|
|
|
|
local self = setmetatable({}, {__index = M})
|
|
|
|
|
self._view = view
|
|
|
|
|
self._main_view = mainView
|
|
|
|
|
self:init()
|
|
|
|
|
self:Init()
|
|
|
|
|
return self
|
|
|
|
|
end
|
|
|
|
|
|
2025-05-26 23:26:09 +08:00
|
|
|
function M:UpdateNiao(niao)
|
|
|
|
|
if niao~=0 then
|
|
|
|
|
self._view:GetController("niao").selectedIndex = 1
|
|
|
|
|
self._view:GetChild("niaotext").text = "打鸟"..niao
|
|
|
|
|
end
|
|
|
|
|
end
|
2025-05-25 11:35:02 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function M:Init()
|
|
|
|
|
self._tex_score.visible=true
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
2025-05-25 20:45:04 +08:00
|
|
|
|
2025-05-25 11:35:02 +08:00
|
|
|
return M
|