家族点击优化
parent
e716914a0c
commit
8396506302
|
|
@ -5,7 +5,8 @@ function PlayEditView.New()
|
||||||
setmetatable(PlayEditView, { __index = BaseWindow })
|
setmetatable(PlayEditView, { __index = BaseWindow })
|
||||||
local inst = setmetatable({}, { __index = PlayEditView })
|
local inst = setmetatable({}, { __index = PlayEditView })
|
||||||
inst._animation = false
|
inst._animation = false
|
||||||
inst._full = true
|
--inst._full = true
|
||||||
|
inst._scale = true
|
||||||
inst._full_offset = false
|
inst._full_offset = false
|
||||||
inst._anim_pop = 0
|
inst._anim_pop = 0
|
||||||
BaseWindow.init(inst, "ui://Family/com_playEdit")
|
BaseWindow.init(inst, "ui://Family/com_playEdit")
|
||||||
|
|
|
||||||
|
|
@ -552,6 +552,12 @@ function M:ConnetFamily(index, groups, isCreate)
|
||||||
obj:GetChild("title").emojies = EmojiDitc.EmojiesDitc
|
obj:GetChild("title").emojies = EmojiDitc.EmojiesDitc
|
||||||
obj.text = groups[j].name
|
obj.text = groups[j].name
|
||||||
obj.onClick:Add(function()
|
obj.onClick:Add(function()
|
||||||
|
|
||||||
|
if groups[j].id == self._group.id then
|
||||||
|
ViewUtil.ShowBannerOnScreenCenter("已在家族中")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
self:ConnetFamily(j, DataManager.groups.groupList, false)
|
self:ConnetFamily(j, DataManager.groups.groupList, false)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue