同步修复出牌龙总结缺失

master
罗家炜 2025-05-08 16:02:39 +08:00
parent c01d21e849
commit ef6619d0e2
4 changed files with 134 additions and 130 deletions

View File

@ -7,6 +7,123 @@ local GroupGameSettingView = import(".NewGroup.MngView.GroupGameSettingView_jain
FamilyView = {} FamilyView = {}
local M = FamilyView local M = FamilyView
local IDENTITY_LIST = {
{
level = 0, --圈主
},
{
level = 1, --副圈主
otherList = {
{
name = "邀请朋友",
Fct = M.ShareWx
},
{
name = "游戏记录",
Fct = M.ShareWx
},
{
name = "玩法管理",
Fct = M.PlayEdit
},
{
name = "充值房卡",
Fct = M.ShareWx
},
{
name = "申请消息",
Fct = M.ShareWx
},
{
name = "查看成员",
Fct = M.ShareWx
},
{
name = "创建亲友圈",
Fct = M.CreateFamily
},
{
name = "高级选项",
Fct = M.CreateFamily
},
{
name = "添加助理",
Fct = M.CreateFamily
},
{
name = "加入亲友圈",
Fct = M.JoinFamily
},
}
},
{
level = 2, --管理员
otherList = {
{
name = "邀请朋友",
Fct = M.ShareWx
},
{
name = "游戏记录",
Fct = M.ShareWx
},
{
name = "玩法管理",
Fct = M.PlayEdit
},
{
name = "充值房卡",
Fct = M.ShareWx
},
{
name = "申请消息",
Fct = M.ShareWx
},
{
name = "查看成员",
Fct = M.ShareWx
},
{
name = "创建亲友圈",
Fct = M.CreateFamily
},
{
name = "高级选项",
Fct = M.CreateFamily
},
{
name = "添加助理",
Fct = M.CreateFamily
},
{
name = "加入亲友圈",
Fct = M.JoinFamily
},
}
},
{
level = 3, --成员
otherList = {
{
name = "邀请朋友",
Fct = M.ShareWx
},
{
name = "创建亲友圈",
Fct = M.CreateFamily
},
{
name = "加入亲友圈",
Fct = M.JoinFamily
},
}
},
}
function FamilyView.new() function FamilyView.new()
UIPackage.AddPackage("base/Family/ui/Family") UIPackage.AddPackage("base/Family/ui/Family")
@ -102,145 +219,28 @@ function M:init(url)
end) end)
end end
function ShareWx(view) function M:ShareWx()
local familyInviteFamilyView = FamilyInviteFamilyView.new() local familyInviteFamilyView = FamilyInviteFamilyView.new()
familyInviteFamilyView:Show() familyInviteFamilyView:Show()
end end
function CreateFamily(view) function M:CreateFamily()
view.familyType.selectedIndex = 3 self.familyType.selectedIndex = 3
view.lastType = 1 self.lastType = 1
view._view:GetController('createOrJoin').selectedIndex = 0 self._view:GetController('createOrJoin').selectedIndex = 0
end end
function JoinFamily(view) function M:JoinFamily()
view.familyType.selectedIndex = 3 self.familyType.selectedIndex = 3
view.lastType = 1 self.lastType = 1
view._view:GetController('createOrJoin').selectedIndex = 1 self._view:GetController('createOrJoin').selectedIndex = 1
end end
function PlayEdit(view) function M:PlayEdit()
view.familyType.selectedIndex = 2 self.familyType.selectedIndex = 2
view.lastType = 1 self.lastType = 1
end end
local IDENTITY_LIST = {
{
level = 0, --圈主
},
{
level = 1, --副圈主
otherList = {
{
name = "邀请朋友",
Fct = ShareWx
},
{
name = "游戏记录",
Fct = ShareWx
},
{
name = "玩法管理",
Fct = PlayEdit
},
{
name = "充值房卡",
Fct = ShareWx
},
{
name = "申请消息",
Fct = ShareWx
},
{
name = "查看成员",
Fct = ShareWx
},
{
name = "创建亲友圈",
Fct = CreateFamily
},
{
name = "高级选项",
Fct = CreateFamily
},
{
name = "添加助理",
Fct = CreateFamily
},
{
name = "加入亲友圈",
Fct = JoinFamily
},
}
},
{
level = 2, --管理员
otherList = {
{
name = "邀请朋友",
Fct = ShareWx
},
{
name = "游戏记录",
Fct = ShareWx
},
{
name = "玩法管理",
Fct = PlayEdit
},
{
name = "充值房卡",
Fct = ShareWx
},
{
name = "申请消息",
Fct = ShareWx
},
{
name = "查看成员",
Fct = ShareWx
},
{
name = "创建亲友圈",
Fct = CreateFamily
},
{
name = "高级选项",
Fct = CreateFamily
},
{
name = "添加助理",
Fct = CreateFamily
},
{
name = "加入亲友圈",
Fct = JoinFamily
},
}
},
{
level = 3, --成员
otherList = {
{
name = "邀请朋友",
Fct = ShareWx
},
{
name = "创建亲友圈",
Fct = CreateFamily
},
{
name = "加入亲友圈",
Fct = JoinFamily
},
}
},
}
function M:ChangeOther(i) function M:ChangeOther(i)
local otherList = IDENTITY_LIST[i].otherList local otherList = IDENTITY_LIST[i].otherList
local list_other = self._view:GetChild('list_other') local list_other = self._view:GetChild('list_other')
@ -248,6 +248,8 @@ function M:ChangeOther(i)
list_other:SetVirtual() list_other:SetVirtual()
list_other.itemRenderer = function(index, obj) list_other.itemRenderer = function(index, obj)
obj:GetChild('text').text = otherList[index + 1].name obj:GetChild('text').text = otherList[index + 1].name
-- print("lingmengChangeOther", otherList[index + 1].name, otherList[index + 1].Fct,
-- typeof(otherList[index + 1].Fct))
obj.onClick:Add(handler(self, otherList[index + 1].Fct)) obj.onClick:Add(handler(self, otherList[index + 1].Fct))
end end
list_other.numItems = #otherList list_other.numItems = #otherList

View File

@ -72,6 +72,7 @@ function M:initLastCard(cardList)
end end
end end
end end
self.long = temp_long == self.cardNum and self.cardNum >= 5
self.type = -1 self.type = -1
print("lingmengCheckAloneOrLong2") print("lingmengCheckAloneOrLong2")
if self:CheckAloneOrLong() then if self:CheckAloneOrLong() then

View File

@ -790,8 +790,8 @@ function M:EventInit()
m = true m = true
end end
local zdts = self._view:GetController("zidongtishi").selectedIndex local zdts = self._view:GetController("zidongtishi").selectedIndex
self._player_card_info[1]:ShowOutCardOption(ctr_number, card_type, card_number, card_length, m, play, zdts)
self._player_card_info[1]._cardCheck:initLastCard(lastCardList) self._player_card_info[1]._cardCheck:initLastCard(lastCardList)
self._player_card_info[1]:ShowOutCardOption(ctr_number, card_type, card_number, card_length, m, play, zdts)
end) end)
-- 托管 -- 托管
_gamectr:AddEventListener(RunFast_GameEvent.Game_TuoGuan, function(...) _gamectr:AddEventListener(RunFast_GameEvent.Game_TuoGuan, function(...)

View File

@ -1141,6 +1141,7 @@ function M:ShowTipsCard(index)
self:UpdateCardMove(card.btn_card, false, false) self:UpdateCardMove(card.btn_card, false, false)
end end
end end
pt(item)
self._cardCheck:initCards(item) self._cardCheck:initCards(item)
self._ctr_canSendCard.selectedIndex = self._cardCheck:CheckCards() and 1 or 0 self._ctr_canSendCard.selectedIndex = self._cardCheck:CheckCards() and 1 or 0
end end