28 lines
602 B
Lua
28 lines
602 B
Lua
|
|
--修改玩家头像
|
||
|
|
|
||
|
|
local EditPortraitView = {}
|
||
|
|
|
||
|
|
local M = EditPortraitView
|
||
|
|
|
||
|
|
function EditPortraitView.new(callback)
|
||
|
|
setmetatable(M, {__index = BaseWindow})
|
||
|
|
local self = setmetatable({}, {__index = M})
|
||
|
|
self.class = "EditPortraitView"
|
||
|
|
self._callback = callback
|
||
|
|
self._close_destroy = true
|
||
|
|
self:init("ui://Lobby/win_edit_portrait")
|
||
|
|
|
||
|
|
return self
|
||
|
|
end
|
||
|
|
|
||
|
|
function M:init(url)
|
||
|
|
BaseWindow.init(self,url)
|
||
|
|
|
||
|
|
local lst_portrait = self._view:GetChild("lst_portrait")
|
||
|
|
lst_portrait.selectedIndex = 0
|
||
|
|
|
||
|
|
local btn_confirm = self._view:GetChild("btn_confirm")
|
||
|
|
|
||
|
|
end
|
||
|
|
|
||
|
|
return M
|