合并冲突
|
|
@ -10,5 +10,9 @@ wb_unity_pro/Assets/*
|
||||||
!wb_unity_pro/Assets/ART/
|
!wb_unity_pro/Assets/ART/
|
||||||
|
|
||||||
!lua_probject/**
|
!lua_probject/**
|
||||||
|
<<<<<<< HEAD
|
||||||
!wb_unity_pro/Assets/ART/**
|
!wb_unity_pro/Assets/ART/**
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
=======
|
||||||
|
!wb_unity_pro/Assets/ART/**
|
||||||
|
>>>>>>> 9cc8415a0cfae87c6dc49e927ee054dfac98e95a
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,8 @@ function M:FG_GroupList(callback)
|
||||||
group.option = tem.option
|
group.option = tem.option
|
||||||
group.show_num = tem.show_num
|
group.show_num = tem.show_num
|
||||||
group.isShow = tem.isShow
|
group.isShow = tem.isShow
|
||||||
|
group.isOpenChatRoom = tem.isOpenChatRoom
|
||||||
|
group.isWatch = tem.isWatch
|
||||||
l_groups:add(group)
|
l_groups:add(group)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -1267,12 +1269,11 @@ end
|
||||||
|
|
||||||
-- 设置添加&禁止同桌 2025.6.21
|
-- 设置添加&禁止同桌 2025.6.21
|
||||||
-- 添加同桌时 tableId = -1 table = {}
|
-- 添加同桌时 tableId = -1 table = {}
|
||||||
---@param id 亲友圈id
|
---@param id 亲友圈id
|
||||||
---@param tableId 同桌id
|
---@param tableId 同桌id
|
||||||
---@param table 同桌玩家
|
---@param table 同桌玩家
|
||||||
---@param tableName 同桌备注&名字
|
---@param tableName 同桌备注&名字
|
||||||
function M:FG_SetBanTable1(id, tableId, players, name, callback)
|
function M:FG_SetBanTable1(id, tableId, players, name, callback)
|
||||||
|
|
||||||
local _data = {}
|
local _data = {}
|
||||||
_data.id = id
|
_data.id = id
|
||||||
_data.tableId = tableId
|
_data.tableId = tableId
|
||||||
|
|
@ -1299,7 +1300,6 @@ end
|
||||||
-- 获取禁止同桌 2025.6.21
|
-- 获取禁止同桌 2025.6.21
|
||||||
---@param group_id 亲友圈id
|
---@param group_id 亲友圈id
|
||||||
function M:FG_GetBanTable1(group_id, callback)
|
function M:FG_GetBanTable1(group_id, callback)
|
||||||
|
|
||||||
local _data = {}
|
local _data = {}
|
||||||
_data.id = group_id
|
_data.id = group_id
|
||||||
|
|
||||||
|
|
@ -1582,7 +1582,7 @@ function M:FG_SetGroupShow(isShow, groupId, callback)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
--聊天室
|
--聊天室数据
|
||||||
---@groupId 亲友圈id
|
---@groupId 亲友圈id
|
||||||
function M:GetChatRoom(groupId, callback)
|
function M:GetChatRoom(groupId, callback)
|
||||||
local _client = ControllerManager.GroupClient
|
local _client = ControllerManager.GroupClient
|
||||||
|
|
@ -1592,3 +1592,27 @@ function M:GetChatRoom(groupId, callback)
|
||||||
callback(res)
|
callback(res)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--禁止&允许成员查看聊天室
|
||||||
|
function M:SetIsOpenChatRoom(groupId, value, callback)
|
||||||
|
print("能否查看聊天室 groupId = ", groupId)
|
||||||
|
local _client = ControllerManager.GroupClient
|
||||||
|
local _data = {}
|
||||||
|
_data.id = groupId
|
||||||
|
_data.isOpenChatRoom = value
|
||||||
|
_client:send(Protocol.WEB_FG_SET_ISOPEN_CHATROOM, _data, function(res)
|
||||||
|
callback(res)
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- 设置是否允许观战
|
||||||
|
function M:SetCanWatch(groupId, value, callback)
|
||||||
|
print("设置是否能观战 groupId = ", groupId)
|
||||||
|
local _client = ControllerManager.GroupClient
|
||||||
|
local _data = {}
|
||||||
|
_data.id = groupId
|
||||||
|
_data.isWatch = value
|
||||||
|
_client:send(Protocol.WEB_FG_SET_CANWATCH, _data, function(res)
|
||||||
|
callback(res)
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
|
||||||
|
|
@ -273,7 +273,12 @@ Protocol = {
|
||||||
WEB_FG_SET_Family_Heartbeat = "group/set_group_heartbeat",
|
WEB_FG_SET_Family_Heartbeat = "group/set_group_heartbeat",
|
||||||
|
|
||||||
-- 亲友圈聊天室
|
-- 亲友圈聊天室
|
||||||
WEB_FG_GETCHATROOM = 'group/get_chat_rooms',
|
WEB_FG_GETCHATROOM = "group/get_chat_rooms",
|
||||||
|
-- 设置是否允许成员查看聊天室
|
||||||
|
WEB_FG_SET_ISOPEN_CHATROOM = "group/set_open_chatroom",
|
||||||
|
-- 设置是否允许观战
|
||||||
|
WEB_FG_SET_CANWATCH = "group/set_group_guest",
|
||||||
|
|
||||||
-------------- group-log---------------------
|
-------------- group-log---------------------
|
||||||
-- 获取奖励日志
|
-- 获取奖励日志
|
||||||
WEB_FG_GET_REWARDS_LOG = "group/log/get_reward_log",
|
WEB_FG_GET_REWARDS_LOG = "group/log/get_reward_log",
|
||||||
|
|
|
||||||
|
|
@ -20,63 +20,125 @@ end
|
||||||
|
|
||||||
local function GetIconFromGroupData(playerId, group)
|
local function GetIconFromGroupData(playerId, group)
|
||||||
local player = group.memberMap[playerId]
|
local player = group.memberMap[playerId]
|
||||||
if player then
|
if player then
|
||||||
return player.portrait
|
return player.portrait
|
||||||
end
|
end
|
||||||
|
|
||||||
print("玩家不在group中,无法找到头像 玩家id=",playerId)
|
print("玩家不在group中,无法找到头像 玩家id=", playerId)
|
||||||
|
|
||||||
return ""
|
return ""
|
||||||
end
|
end
|
||||||
|
|
||||||
local function AllUid(deskList)
|
local function RemoveItem(table, condition)
|
||||||
|
for _, item in pairs(table) do
|
||||||
|
if condition(item) then
|
||||||
|
table[_] = nil
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
--修复下标
|
||||||
|
local re = {}
|
||||||
|
for _, item in pairs(table) do
|
||||||
|
re[#re + 1] = item
|
||||||
|
end
|
||||||
|
|
||||||
|
return re
|
||||||
|
end
|
||||||
|
|
||||||
|
local function GetPlayerFromGroupData(playerId, group)
|
||||||
|
local player = group.memberMap[playerId]
|
||||||
|
if player then
|
||||||
|
return player
|
||||||
|
end
|
||||||
|
|
||||||
|
print("玩家不在group中, 玩家id=", playerId)
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
|
local function AllUid(deskList)
|
||||||
local re = {}
|
local re = {}
|
||||||
pt(deskList)
|
pt(deskList)
|
||||||
for _, player in pairs(deskList) do
|
for _, player in pairs(deskList) do
|
||||||
re[#re + 1] = player.uid
|
re[#re + 1] = player.uid
|
||||||
end
|
end
|
||||||
return re
|
return re
|
||||||
end
|
end
|
||||||
|
|
||||||
local function AddPlayer(data, self)
|
local function AddPlayer(data, self)
|
||||||
|
if self.sending then
|
||||||
|
ViewUtil.ShowBannerOnScreenCenter("正在操作中。。")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
-- 点击弹出选择成员界面
|
-- 点击弹出选择成员界面
|
||||||
local view = FamilySelectNumber.New()
|
local view = FamilySelectNumber.New()
|
||||||
view:Show(self.root._group.id, function(number)
|
view:Show(self.root._group.id, function(number)
|
||||||
local players = AllUid(data.deskList)
|
local players = AllUid(data.deskList)
|
||||||
players[#players + 1] = number.uid
|
players[#players + 1] = number.uid
|
||||||
|
self.sending = true
|
||||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
fgCtr:FG_SetBanTable1(self.root._group.id, data.deskId, players, data.deskName, function() self:ReflashDesk() end)
|
fgCtr:FG_SetBanTable1(self.root._group.id, data.deskId, players, data.deskName, function(res)
|
||||||
|
self.sending = false
|
||||||
|
if res.ReturnCode ~= 0 then
|
||||||
|
ViewUtil.ShowBannerOnScreenCenter("设置失败")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
data.deskList[#data.deskList + 1] = { uid = number.uid }
|
||||||
|
self:ReflashDesk()
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function DelPalyer(data, uid, self)
|
local function DelPalyer(data, uid, self)
|
||||||
|
--print("删除玩家", uid)
|
||||||
|
|
||||||
|
if self.sending then
|
||||||
|
ViewUtil.ShowBannerOnScreenCenter("正在操作中。。")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local players = AllUid(data.deskList)
|
local players = AllUid(data.deskList)
|
||||||
for _, id in pairs(players) do
|
for _, id in pairs(players) do
|
||||||
if id == uid then
|
if id == uid then
|
||||||
players[_] = nil
|
players[_] = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 修复下标的连续性,不然json.encode会吧空下标也解析出来
|
-- 修复下标的连续性,不然json.encode会吧空下标也解析出来
|
||||||
local fix = {}
|
local fix = {}
|
||||||
for _, id in pairs(players) do
|
for _, id in pairs(players) do
|
||||||
fix[#fix + 1] = id
|
fix[#fix + 1] = id
|
||||||
end
|
end
|
||||||
players = fix
|
players = fix
|
||||||
|
|
||||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
fgCtr:FG_SetBanTable1(self.root._group.id, data.deskId, players, data.deskName, function() self:ReflashDesk() end)
|
fgCtr:FG_SetBanTable1(self.root._group.id, data.deskId, players, data.deskName, function() self:ReflashDesk() end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local function DelDesk(data, self)
|
local function DelDesk(data, self)
|
||||||
|
if self.sending then
|
||||||
|
ViewUtil.ShowBannerOnScreenCenter("正在操作中。。")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
self.sending = true
|
||||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
fgCtr:FG_SetBanTable1(self.root._group.id, data.deskId, {}, data.deskName, function() self:Reflash() end)
|
fgCtr:FG_SetBanTable1(self.root._group.id, data.deskId, {}, data.deskName, function()
|
||||||
|
self.sending = false
|
||||||
|
self:Reflash()
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function ChangeName(deskData, name, self)
|
local function ChangeName(deskData, name, self)
|
||||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
fgCtr:FG_SetBanTable1(self.root._group.id, deskData.deskId, AllUid(deskData.deskList), name, function()
|
fgCtr:FG_SetBanTable1(self.root._group.id, deskData.deskId, AllUid(deskData.deskList), name, function(res)
|
||||||
|
if res.ReturnCode ~= 0 then
|
||||||
|
ViewUtil.ShowBannerOnScreenCenter("删除失败")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
deskData.deskName = name
|
||||||
self:ReflashDesk()
|
self:ReflashDesk()
|
||||||
self:CloseRemaskWindow()
|
self:CloseRemaskWindow()
|
||||||
end)
|
end)
|
||||||
|
|
@ -85,30 +147,86 @@ end
|
||||||
local function Sort(BanData)
|
local function Sort(BanData)
|
||||||
-- 把空的桌子放到下面
|
-- 把空的桌子放到下面
|
||||||
local emtpy = {}
|
local emtpy = {}
|
||||||
for index, desk in pairs(BanData) do
|
for index, desk in pairs(BanData) do
|
||||||
if desk.deskList == nil or #desk.deskList == 0 then
|
if desk.deskList == nil or #desk.deskList == 0 then
|
||||||
emtpy[#emtpy + 1] = desk
|
emtpy[#emtpy + 1] = desk
|
||||||
BanData[index] = nil
|
BanData[index] = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local re = {}
|
local re = {}
|
||||||
for _, desk in pairs(BanData) do
|
for _, desk in pairs(BanData) do
|
||||||
re[#re + 1] = desk
|
re[#re + 1] = desk
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, desk in pairs(emtpy) do
|
for _, desk in pairs(emtpy) do
|
||||||
re[#re + 1] = desk
|
re[#re + 1] = desk
|
||||||
end
|
end
|
||||||
|
|
||||||
return re
|
return re
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function list_BanedPlayersRenderer(index, obj, data, self, fatherIndex)
|
||||||
|
local loader_icon = obj:GetChild("loader_icon")
|
||||||
|
local tex_name = obj:GetChild("tex_name")
|
||||||
|
|
||||||
|
local uid = data.deskList[index + 1].uid
|
||||||
|
local player = GetPlayerFromGroupData(uid, self.root._group)
|
||||||
|
obj:GetController("cStyle").selectedIndex = 0
|
||||||
|
tex_name.text = player.nick
|
||||||
|
local img = player.portrait
|
||||||
|
ImageLoad.Load(img, loader_icon)
|
||||||
|
|
||||||
|
local btn_delPlayer = obj:GetChild("btn_delPlayer")
|
||||||
|
btn_delPlayer.onClick:Set(function()
|
||||||
|
-- 删除玩家按钮
|
||||||
|
self.changedIndex = fatherIndex
|
||||||
|
DelPalyer(data, player.uid, self)
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
|
local function list_banItemRenderer(index, obj, self)
|
||||||
|
local data = self.BanData[index + 1]
|
||||||
|
--print("刷新关系")
|
||||||
|
--pt(data)
|
||||||
|
local tex_name = obj:GetChild("tex_name")
|
||||||
|
local list_BanedPlayers = obj:GetChild("list_BanedPlayers")
|
||||||
|
local btn_del = obj:GetChild("btn_del")
|
||||||
|
local btn_edit = obj:GetChild("btn_edit")
|
||||||
|
|
||||||
|
tex_name.text = data.deskName
|
||||||
|
obj:GetController("cStyle").selectedIndex = 0
|
||||||
|
|
||||||
|
btn_edit.onClick:Set(function()
|
||||||
|
-- 修改备注
|
||||||
|
self.changedIndex = index
|
||||||
|
self.selectBanItem = data
|
||||||
|
self:OpenRemaskWindow()
|
||||||
|
end)
|
||||||
|
|
||||||
|
btn_del.onClick:Set(function()
|
||||||
|
-- 删除整个桌子
|
||||||
|
DelDesk(data, self)
|
||||||
|
end)
|
||||||
|
|
||||||
|
list_BanedPlayers.itemRenderer = function(i, o)
|
||||||
|
list_BanedPlayersRenderer(i, o, data, self, index)
|
||||||
|
end
|
||||||
|
list_BanedPlayers.numItems = #data.deskList
|
||||||
|
|
||||||
|
local add_play = list_BanedPlayers:AddItemFromPool()
|
||||||
|
add_play:GetController("cStyle").selectedIndex = 1
|
||||||
|
add_play:GetChild("btn_addPlayer").onClick:Set(function()
|
||||||
|
-- 添加玩家按钮
|
||||||
|
self.changedIndex = index
|
||||||
|
AddPlayer(data, self)
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
--endregion
|
--endregion
|
||||||
|
|
||||||
|
|
||||||
function BanDesk:TryShow(r)
|
function BanDesk:TryShow(r)
|
||||||
|
|
||||||
local view = BanDesk.New()
|
local view = BanDesk.New()
|
||||||
|
|
||||||
self.root = r
|
self.root = r
|
||||||
|
|
@ -127,8 +245,8 @@ function BanDesk:Close()
|
||||||
end
|
end
|
||||||
|
|
||||||
function BanDesk.New()
|
function BanDesk.New()
|
||||||
setmetatable(BanDesk, {__index = BaseView})
|
setmetatable(BanDesk, { __index = BaseView })
|
||||||
local inst = setmetatable({}, {__index = BanDesk})
|
local inst = setmetatable({}, { __index = BanDesk })
|
||||||
inst._close_destroy = true
|
inst._close_destroy = true
|
||||||
inst._full = true
|
inst._full = true
|
||||||
inst._animation = false
|
inst._animation = false
|
||||||
|
|
@ -141,6 +259,7 @@ function BanDesk.New()
|
||||||
end
|
end
|
||||||
|
|
||||||
function BanDesk:Init()
|
function BanDesk:Init()
|
||||||
|
self.sending = false
|
||||||
|
|
||||||
self.btn_close = self._view:GetChild("btn_close")
|
self.btn_close = self._view:GetChild("btn_close")
|
||||||
self.list_banItem = self._view:GetChild("list_banItem")
|
self.list_banItem = self._view:GetChild("list_banItem")
|
||||||
|
|
@ -170,73 +289,51 @@ function BanDesk:Init()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
self.list_banItem.itemRenderer = function(index, obj)
|
self.list_banItem.itemRenderer = function(index, obj)
|
||||||
|
list_banItemRenderer(index, obj, self)
|
||||||
local data = self.BanData[index +1]
|
|
||||||
|
|
||||||
local tex_name = obj:GetChild("tex_name")
|
|
||||||
local list_BanedPlayers = obj:GetChild("list_BanedPlayers")
|
|
||||||
local btn_del = obj:GetChild("btn_del")
|
|
||||||
local btn_edit = obj:GetChild("btn_edit")
|
|
||||||
|
|
||||||
tex_name.text = data.deskName
|
|
||||||
obj:GetController("cStyle").selectedIndex = 0
|
|
||||||
|
|
||||||
btn_edit.onClick:Set(function()
|
|
||||||
-- 修改备注
|
|
||||||
self.changedIndex = index
|
|
||||||
self.selectBanItem = data
|
|
||||||
self:OpenRemaskWindow()
|
|
||||||
end)
|
|
||||||
|
|
||||||
btn_del.onClick:Set(function()
|
|
||||||
-- 删除整个桌子
|
|
||||||
DelDesk(data, self)
|
|
||||||
end)
|
|
||||||
|
|
||||||
list_BanedPlayers.itemRenderer = function(playerIndex, playerObj)
|
|
||||||
|
|
||||||
local loader_icon = playerObj:GetChild("loader_icon")
|
|
||||||
local tex_name = playerObj:GetChild("tex_name")
|
|
||||||
|
|
||||||
local player = data.deskList[playerIndex + 1]
|
|
||||||
playerObj:GetController("cStyle").selectedIndex = 0
|
|
||||||
tex_name.text = player.nick
|
|
||||||
local img = GetIconFromGroupData(player.uid, self.root._group)
|
|
||||||
ImageLoad.Load(img, loader_icon)
|
|
||||||
|
|
||||||
local btn_delPlayer = playerObj:GetChild("btn_delPlayer")
|
|
||||||
btn_delPlayer.onClick:Set(function()
|
|
||||||
-- 删除玩家按钮
|
|
||||||
self.changedIndex = index
|
|
||||||
DelPalyer(data, player.uid, self)
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
|
|
||||||
list_BanedPlayers.numItems = #data.deskList
|
|
||||||
|
|
||||||
local add_play = list_BanedPlayers:AddItemFromPool()
|
|
||||||
add_play:GetController("cStyle").selectedIndex = 1
|
|
||||||
add_play:GetChild("btn_addPlayer").onClick:Set(function()
|
|
||||||
-- 添加玩家按钮
|
|
||||||
self.changedIndex = index
|
|
||||||
AddPlayer(data, self)
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
-- list_BanedPlayers.itemRenderer = function(playerIndex, playerObj)
|
||||||
|
|
||||||
|
-- local loader_icon = playerObj:GetChild("loader_icon")
|
||||||
|
-- local tex_name = playerObj:GetChild("tex_name")
|
||||||
|
|
||||||
|
-- local player = data.deskList[playerIndex + 1]
|
||||||
|
-- playerObj:GetController("cStyle").selectedIndex = 0
|
||||||
|
-- tex_name.text = player.nick
|
||||||
|
-- local img = GetIconFromGroupData(player.uid, self.root._group)
|
||||||
|
-- ImageLoad.Load(img, loader_icon)
|
||||||
|
|
||||||
|
-- local btn_delPlayer = playerObj:GetChild("btn_delPlayer")
|
||||||
|
-- btn_delPlayer.onClick:Set(function()
|
||||||
|
-- -- 删除玩家按钮
|
||||||
|
-- self.changedIndex = index
|
||||||
|
-- DelPalyer(data, player.uid, self)
|
||||||
|
-- end)
|
||||||
|
-- end
|
||||||
|
|
||||||
|
-- list_BanedPlayers.numItems = #data.deskList
|
||||||
|
|
||||||
|
-- local add_play = list_BanedPlayers:AddItemFromPool()
|
||||||
|
-- add_play:GetController("cStyle").selectedIndex = 1
|
||||||
|
-- add_play:GetChild("btn_addPlayer").onClick:Set(function()
|
||||||
|
-- -- 添加玩家按钮
|
||||||
|
-- self.changedIndex = index
|
||||||
|
-- AddPlayer(data, self)
|
||||||
|
-- end)
|
||||||
|
-- end
|
||||||
end
|
end
|
||||||
|
|
||||||
function BanDesk:Reflash()
|
function BanDesk:Reflash()
|
||||||
|
|
||||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
local groupId = self.root._group.id
|
local groupId = self.root._group.id
|
||||||
|
|
||||||
fgCtr:FG_GetBanTable1(groupId,function(res)
|
fgCtr:FG_GetBanTable1(groupId, function(res)
|
||||||
self:GetBanTableCallback(res)
|
self:GetBanTableCallback(res)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
function BanDesk:GetBanTableCallback(res)
|
function BanDesk:GetBanTableCallback(res)
|
||||||
print("BanDesk:GetBanTableCallback")
|
|
||||||
|
|
||||||
self.BanData = Sort(res.Data.ban_list)
|
self.BanData = Sort(res.Data.ban_list)
|
||||||
self.list_banItem.numItems = #self.BanData
|
self.list_banItem.numItems = #self.BanData
|
||||||
|
|
||||||
|
|
@ -245,32 +342,25 @@ function BanDesk:GetBanTableCallback(res)
|
||||||
local btn_addBanItem = addBanItem:GetChild("btn_addBanItem")
|
local btn_addBanItem = addBanItem:GetChild("btn_addBanItem")
|
||||||
addBanItem:GetController("cStyle").selectedIndex = 1
|
addBanItem:GetController("cStyle").selectedIndex = 1
|
||||||
btn_addBanItem.onClick:Set(function()
|
btn_addBanItem.onClick:Set(function()
|
||||||
|
if self.sending then
|
||||||
|
ViewUtil.ShowBannerOnScreenCenter("正在操作中。。")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
self.sending = true
|
||||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
local groupId = self.root._group.id
|
local groupId = self.root._group.id
|
||||||
local banList = {}
|
local banList = {}
|
||||||
fgCtr:FG_SetBanTable1(groupId, -1, banList, "新建关系", function()
|
fgCtr:FG_SetBanTable1(groupId, -1, banList, "新建关系", function()
|
||||||
|
self.sending = false
|
||||||
self:Reflash()
|
self:Reflash()
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
function BanDesk:ReflashDesk()
|
function BanDesk:ReflashDesk()
|
||||||
-- 只刷新一个元素,暂时怎么处理,有时间优化
|
|
||||||
local data = self.BanData[self.changedIndex +1]
|
|
||||||
local obj = self.list_banItem:GetChildAt(self.changedIndex)
|
local obj = self.list_banItem:GetChildAt(self.changedIndex)
|
||||||
local tex_name = obj:GetChild("tex_name")
|
list_banItemRenderer(self.changedIndex, obj, self)
|
||||||
local list_BanedPlayers = obj:GetChild("list_BanedPlayers")
|
|
||||||
tex_name.text = data.deskName
|
|
||||||
obj:GetController("cStyle").selectedIndex = 0
|
|
||||||
list_BanedPlayers.numItems = #data.deskList
|
|
||||||
|
|
||||||
local add_play = list_BanedPlayers:AddItemFromPool()
|
|
||||||
add_play:GetController("cStyle").selectedIndex = 1
|
|
||||||
add_play:GetChild("btn_addPlayer").onClick:Set(function()
|
|
||||||
-- 添加玩家按钮
|
|
||||||
self.changedIndex = self.changedIndex
|
|
||||||
AddPlayer(data, self)
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 打开备注界面
|
-- 打开备注界面
|
||||||
|
|
@ -282,5 +372,4 @@ function BanDesk:CloseRemaskWindow()
|
||||||
self.cSetName.selectedIndex = 0
|
self.cSetName.selectedIndex = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return BanDesk
|
||||||
return BanDesk
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,41 @@
|
||||||
require 'FairyGUI'
|
require 'FairyGUI'
|
||||||
|
|
||||||
|
--region LOCAL
|
||||||
|
|
||||||
|
local function PlayersItemRenderer(index, obj, self)
|
||||||
|
local loader_icon = obj:GetChild("")
|
||||||
|
local tex_name = obj:GetChild("tex_name")
|
||||||
|
local tex_id = obj:GetChild("tex_id")
|
||||||
|
local tex_score = obj:GetChild("tex_score")
|
||||||
|
local cWiner = obj:GetController("cWiner")
|
||||||
|
|
||||||
|
tex_name.text = "wenb"
|
||||||
|
tex_id.text = "wenb"
|
||||||
|
tex_score.text = "wenb"
|
||||||
|
end
|
||||||
|
|
||||||
|
local function ChatItemRenderer(index, obj, self)
|
||||||
|
local list_players = obj:GetChild("list_players")
|
||||||
|
local tex_time = obj:GetChild("tex_time")
|
||||||
|
local tex_name = obj:GetChild("tex_name")
|
||||||
|
|
||||||
|
tex_time.text = "000"
|
||||||
|
tex_name.text = "000"
|
||||||
|
|
||||||
|
list_players.itemRenderer = PlayersItemRenderer
|
||||||
|
list_players.numItems = 3
|
||||||
|
end
|
||||||
|
|
||||||
|
local function GetIsOpenChatRoom(groupId, self)
|
||||||
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
|
fgCtr:GetIsOpenChatRoom(groupId, function(res)
|
||||||
|
print("收到是否打开聊天室协议")
|
||||||
|
pt(res)
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
|
--endregion
|
||||||
|
|
||||||
local FamilyChatRoom = {}
|
local FamilyChatRoom = {}
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|
@ -20,13 +56,15 @@ function FamilyChatRoom:Init(com, root)
|
||||||
--self._full_offset = false
|
--self._full_offset = false
|
||||||
--self._animation = false
|
--self._animation = false
|
||||||
--BaseWindow.init(self, "ui://Family/com_chatRoom")
|
--BaseWindow.init(self, "ui://Family/com_chatRoom")
|
||||||
|
self.rendererData = {}
|
||||||
self.root = root
|
self.root = root
|
||||||
self._view = com
|
self._view = com
|
||||||
|
|
||||||
self.list_chat = self._view:GetChild("list_chat")
|
self.list_chat = self._view:GetChild("list_chat")
|
||||||
self.btn_quit = self._view:GetChild("btn_quit")
|
self.btn_quit = self._view:GetChild("btn_quit")
|
||||||
|
|
||||||
|
self.list_chat.itemRenderer = ChatItemRenderer
|
||||||
|
|
||||||
self.btn_quit.onClick:Set(function()
|
self.btn_quit.onClick:Set(function()
|
||||||
self:Close()
|
self:Close()
|
||||||
end)
|
end)
|
||||||
|
|
@ -43,15 +81,19 @@ function FamilyChatRoom:Show()
|
||||||
local cChatRoom = self.root._view:GetController("cIsChatRoom")
|
local cChatRoom = self.root._view:GetController("cIsChatRoom")
|
||||||
cChatRoom.selectedIndex = 1
|
cChatRoom.selectedIndex = 1
|
||||||
|
|
||||||
|
GetIsOpenChatRoom(self.root._group.id, self)
|
||||||
|
|
||||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
fgCtr:GetChatRoom(self.root._group.id, function(res)
|
fgCtr:GetChatRoom(self.root._group.id, function(res)
|
||||||
self:GetChatCallBack(res)
|
self:GetChatCallBack(res)
|
||||||
end)
|
end)
|
||||||
|
self.list_chat.numItems = 4
|
||||||
end
|
end
|
||||||
|
|
||||||
function FamilyChatRoom:GetChatCallBack(res)
|
function FamilyChatRoom:GetChatCallBack(res)
|
||||||
print("收到聊天室协议")
|
print("收到聊天室协议")
|
||||||
pt(res)
|
pt(res)
|
||||||
|
pt(res.Data.records.totalScore)
|
||||||
end
|
end
|
||||||
|
|
||||||
return FamilyChatRoom
|
return FamilyChatRoom
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,8 @@ function FamilyJoinAndCreate:init(root)
|
||||||
fgCtr:FG_GroupList(function(res)
|
fgCtr:FG_GroupList(function(res)
|
||||||
fgCtr:FG_CreateGroup(self.input_name.text, 1, 2, function(res)
|
fgCtr:FG_CreateGroup(self.input_name.text, 1, 2, function(res)
|
||||||
if res.ReturnCode == 0 then
|
if res.ReturnCode == 0 then
|
||||||
--self.familyType.selectedIndex = 1
|
root.familyType.selectedIndex = 1
|
||||||
self:ConnetFamily(1, DataManager.groups.groupList, true)
|
root:ConnetFamily(1, DataManager.groups.groupList, true)
|
||||||
else
|
else
|
||||||
ViewUtil.ErrorTip(res.ReturnCode, '创建大联盟失败!')
|
ViewUtil.ErrorTip(res.ReturnCode, '创建大联盟失败!')
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,41 @@
|
||||||
|
local FamilyMsgRecord = {}
|
||||||
|
|
||||||
|
function FamilyMsgRecord.New(callback)
|
||||||
|
setmetatable(FamilyMsgRecord, { __index = BaseWindow })
|
||||||
|
local inst = setmetatable({}, { __index = FamilyMsgRecord })
|
||||||
|
inst._close_destroy = true
|
||||||
|
inst._full = true
|
||||||
|
inst._animation = false
|
||||||
|
inst._full_offset = false
|
||||||
|
inst._anim_pop = 0
|
||||||
|
BaseWindow.init(inst, 'ui://Family/com_FamilyMsgRecord')
|
||||||
|
inst:Init()
|
||||||
|
inst._root_view:GetChild("win_mode").visible = false
|
||||||
|
|
||||||
|
inst.closeCallback = callback
|
||||||
|
|
||||||
|
return inst
|
||||||
|
end
|
||||||
|
|
||||||
|
function FamilyMsgRecord:Show()
|
||||||
|
BaseWindow.Show(self)
|
||||||
|
end
|
||||||
|
|
||||||
|
function FamilyMsgRecord:Init()
|
||||||
|
self.btn_quit = self._view:GetChild("btn_quit")
|
||||||
|
|
||||||
|
self.btn_quit.onClick:Set(function()
|
||||||
|
self:Close()
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
|
function FamilyMsgRecord:Close()
|
||||||
|
|
||||||
|
if self.closeCallback then
|
||||||
|
self.closeCallback()
|
||||||
|
end
|
||||||
|
|
||||||
|
BaseWindow.Close(self)
|
||||||
|
end
|
||||||
|
|
||||||
|
return FamilyMsgRecord
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
local FamilyRoomCardRecord = import(".FamilyRoomCardRecord")
|
local FamilyRoomCardRecord = import(".FamilyRoomCardRecord")
|
||||||
|
local RoomCardRecord = import(".RoomCardRecord")
|
||||||
|
|
||||||
--region LOCAL
|
--region LOCAL
|
||||||
|
|
||||||
|
|
@ -15,6 +16,34 @@ local function ShowMainView()
|
||||||
root.familyType.selectedIndex = rootLastIndex or 1
|
root.familyType.selectedIndex = rootLastIndex or 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function ChangeNotice(self)
|
||||||
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
|
fgCtr:FG_UpdateGroupInfo(
|
||||||
|
self.family.id,
|
||||||
|
self.family.name,
|
||||||
|
self.input_notice.text,
|
||||||
|
not self.family.ban,
|
||||||
|
self.family.dissolve_opt,
|
||||||
|
self.family.kick_opt,
|
||||||
|
self.family.apply,
|
||||||
|
self.family.ban_chat1,
|
||||||
|
self.family.ban_chat2,
|
||||||
|
self.family.option,
|
||||||
|
0,
|
||||||
|
function(res)
|
||||||
|
if res.ReturnCode ~= 0 then
|
||||||
|
ViewUtil.ErrorTip(res.ReturnCode, "更改公告失败,请稍后再试")
|
||||||
|
else
|
||||||
|
ViewUtil.ErrorTip(res.ReturnCode, "修改成功!")
|
||||||
|
self.family.notice = self.input_notice.text
|
||||||
|
self:Refalsh()
|
||||||
|
self.cWindow.selectedIndex = 0
|
||||||
|
end
|
||||||
|
end
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
--endregion
|
--endregion
|
||||||
|
|
||||||
function FamilyMyFamily:TryShow(groupId, r)
|
function FamilyMyFamily:TryShow(groupId, r)
|
||||||
|
|
@ -25,7 +54,6 @@ function FamilyMyFamily:TryShow(groupId, r)
|
||||||
end
|
end
|
||||||
|
|
||||||
function FamilyMyFamily:Show()
|
function FamilyMyFamily:Show()
|
||||||
|
|
||||||
self:Refalsh()
|
self:Refalsh()
|
||||||
|
|
||||||
HideMainView()
|
HideMainView()
|
||||||
|
|
@ -38,7 +66,6 @@ function FamilyMyFamily:Close()
|
||||||
end
|
end
|
||||||
|
|
||||||
function FamilyMyFamily:Refalsh()
|
function FamilyMyFamily:Refalsh()
|
||||||
|
|
||||||
self.family = DataManager.groups.groupMap[self.groupId]
|
self.family = DataManager.groups.groupMap[self.groupId]
|
||||||
|
|
||||||
self.tex_fName.text = self.family.name
|
self.tex_fName.text = self.family.name
|
||||||
|
|
@ -48,12 +75,10 @@ function FamilyMyFamily:Refalsh()
|
||||||
self.tex_nocice.text = self.family.notice
|
self.tex_nocice.text = self.family.notice
|
||||||
ImageLoad.Load(self.family.o_portrait, self.loader_icon)
|
ImageLoad.Load(self.family.o_portrait, self.loader_icon)
|
||||||
|
|
||||||
self.cStyle.selectedIndex = self.family.lev -1
|
self.cStyle.selectedIndex = self.family.lev - 1
|
||||||
|
|
||||||
-- index = 0 是显示隐藏按钮
|
-- index = 0 是显示隐藏按钮
|
||||||
self.showNumber = self.family.isShow
|
self.showNumber = self.family.isShow
|
||||||
print("self.family.isShow",self.family.isShow)
|
|
||||||
pt(self.family)
|
|
||||||
if self.showNumber == 0 then
|
if self.showNumber == 0 then
|
||||||
self.cDisplayNumber.selectedIndex = 1
|
self.cDisplayNumber.selectedIndex = 1
|
||||||
self.tex_fNumber.text = "*"
|
self.tex_fNumber.text = "*"
|
||||||
|
|
@ -85,6 +110,7 @@ function FamilyMyFamily:Init()
|
||||||
self.tex_cradNum = self._view:GetChild("tex_cradNum")
|
self.tex_cradNum = self._view:GetChild("tex_cradNum")
|
||||||
self.tex_nocice = self._view:GetChild("tex_nocice")
|
self.tex_nocice = self._view:GetChild("tex_nocice")
|
||||||
self.tex_playerName = self._view:GetChild("tex_playerName")
|
self.tex_playerName = self._view:GetChild("tex_playerName")
|
||||||
|
self.tex_changeTitle = self._view:GetChild("tex_changeTitle")
|
||||||
|
|
||||||
self.btn_quitFamily = self._view:GetChild("btn_quitFamily")
|
self.btn_quitFamily = self._view:GetChild("btn_quitFamily")
|
||||||
self.btn_playSet = self._view:GetChild("btn_playSet")
|
self.btn_playSet = self._view:GetChild("btn_playSet")
|
||||||
|
|
@ -122,7 +148,9 @@ function FamilyMyFamily:Init()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
self.btn_czRecord.onClick:Set(function()
|
self.btn_czRecord.onClick:Set(function()
|
||||||
local view = FamilyRoomCardRecord.New()
|
--local view = FamilyRoomCardRecord.New()
|
||||||
|
--view:Show()
|
||||||
|
local view = RoomCardRecord.New()
|
||||||
view:Show()
|
view:Show()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
@ -138,9 +166,14 @@ function FamilyMyFamily:Init()
|
||||||
|
|
||||||
self.btn_quitFamily.onClick:Set(function()
|
self.btn_quitFamily.onClick:Set(function()
|
||||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
print("发送了退出协议 familyid = ",self.family.id)
|
print("发送了退出协议 familyid = ", self.family.id)
|
||||||
fgCtr:FG_ExitGroup(self.family.id, function(res)
|
fgCtr:FG_ExitGroup(self.family.id, function(res)
|
||||||
pt(res)
|
if res.ReturnCode ~= 0 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
self:Close()
|
||||||
|
ControllerManager.ChangeController(NewGroupController)
|
||||||
|
ViewManager.ChangeView(ViewManager.View_Family)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
@ -156,36 +189,10 @@ function FamilyMyFamily:Init()
|
||||||
self.cWindow.selectedIndex = 1
|
self.cWindow.selectedIndex = 1
|
||||||
end)
|
end)
|
||||||
|
|
||||||
self.btn_confirmNotice.onClick:Set(function()
|
self.btn_confirmNotice.onClick:Set(ChangeNotice)
|
||||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
|
||||||
fgCtr:FG_UpdateGroupInfo(
|
|
||||||
self.family.id,
|
|
||||||
self.family.name,
|
|
||||||
self.input_notice.text,
|
|
||||||
not self.family.ban,
|
|
||||||
self.family.dissolve_opt,
|
|
||||||
self.family.kick_opt,
|
|
||||||
self.family.apply,
|
|
||||||
self.family.ban_chat1,
|
|
||||||
self.family.ban_chat2,
|
|
||||||
self.family.option,
|
|
||||||
0,
|
|
||||||
function(res)
|
|
||||||
if res.ReturnCode ~= 0 then
|
|
||||||
ViewUtil.ErrorTip(res.ReturnCode, "更改公告失败,请稍后再试")
|
|
||||||
else
|
|
||||||
ViewUtil.ErrorTip(res.ReturnCode, "修改成功!")
|
|
||||||
self.family.notice = self.input_notice.text
|
|
||||||
self:Refalsh()
|
|
||||||
self.cWindow.selectedIndex = 0
|
|
||||||
end
|
|
||||||
end
|
|
||||||
)
|
|
||||||
end)
|
|
||||||
|
|
||||||
self.btn_hideNumber.onClick:Set(function()
|
self.btn_hideNumber.onClick:Set(function()
|
||||||
|
if self.isShowContenting == true then
|
||||||
if self.isShowContenting == true then
|
|
||||||
ViewUtil.ShowBannerOnScreenCenter("设置中,请稍后再试。。")
|
ViewUtil.ShowBannerOnScreenCenter("设置中,请稍后再试。。")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
@ -193,12 +200,12 @@ function FamilyMyFamily:Init()
|
||||||
print("点击了")
|
print("点击了")
|
||||||
|
|
||||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
self.isShowContenting = true
|
self.isShowContenting = true
|
||||||
fgCtr:FG_SetGroupShow(0, self.family.id, function (res)
|
fgCtr:FG_SetGroupShow(0, self.family.id, function(res)
|
||||||
print("收到协议M:FG_SetGroupShow")
|
print("收到协议M:FG_SetGroupShow")
|
||||||
pt(res)
|
pt(res)
|
||||||
self.isShowContenting = false
|
self.isShowContenting = false
|
||||||
if res.ReturnCode ~= 0 then
|
if res.ReturnCode ~= 0 then
|
||||||
ViewUtil.ShowBannerOnScreenCenter("设置失败,请稍后再试。。")
|
ViewUtil.ShowBannerOnScreenCenter("设置失败,请稍后再试。。")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
@ -209,7 +216,7 @@ function FamilyMyFamily:Init()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
self.btn_showNumber.onClick:Set(function()
|
self.btn_showNumber.onClick:Set(function()
|
||||||
if self.isShowContenting == true then
|
if self.isShowContenting == true then
|
||||||
ViewUtil.ShowBannerOnScreenCenter("设置中,请稍后再试。。")
|
ViewUtil.ShowBannerOnScreenCenter("设置中,请稍后再试。。")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
@ -217,12 +224,60 @@ function FamilyMyFamily:Init()
|
||||||
print("点击了")
|
print("点击了")
|
||||||
|
|
||||||
local fgCtr = ControllerManager.GetController(NewGroupController)
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
self.isShowContenting = true
|
self.isShowContenting = true
|
||||||
fgCtr:FG_SetGroupShow(1, self.family.id, function (res)
|
fgCtr:FG_SetGroupShow(1, self.family.id, function(res)
|
||||||
print("收到协议M:FG_SetGroupShow")
|
print("收到协议M:FG_SetGroupShow")
|
||||||
pt(res)
|
pt(res)
|
||||||
self.isShowContenting = false
|
self.isShowContenting = false
|
||||||
if res.ReturnCode ~= 0 then
|
if res.ReturnCode ~= 0 then
|
||||||
|
ViewUtil.ShowBannerOnScreenCenter("设置失败,请稍后再试。。")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
self.family.isShow = 1
|
||||||
|
self:Refalsh()
|
||||||
|
ViewUtil.ShowBannerOnScreenCenter("设置成功")
|
||||||
|
end)
|
||||||
|
end)
|
||||||
|
|
||||||
|
self.btn_hideNumber.onClick:Set(function()
|
||||||
|
if self.isShowContenting == true then
|
||||||
|
ViewUtil.ShowBannerOnScreenCenter("设置中,请稍后再试。。")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
print("点击了")
|
||||||
|
|
||||||
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
|
self.isShowContenting = true
|
||||||
|
fgCtr:FG_SetGroupShow(0, self.family.id, function(res)
|
||||||
|
print("收到协议M:FG_SetGroupShow")
|
||||||
|
pt(res)
|
||||||
|
self.isShowContenting = false
|
||||||
|
if res.ReturnCode ~= 0 then
|
||||||
|
ViewUtil.ShowBannerOnScreenCenter("设置失败,请稍后再试。。")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
self.family.isShow = 0
|
||||||
|
self:Refalsh()
|
||||||
|
ViewUtil.ShowBannerOnScreenCenter("设置成功")
|
||||||
|
end)
|
||||||
|
end)
|
||||||
|
|
||||||
|
self.btn_showNumber.onClick:Set(function()
|
||||||
|
if self.isShowContenting == true then
|
||||||
|
ViewUtil.ShowBannerOnScreenCenter("设置中,请稍后再试。。")
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
print("点击了")
|
||||||
|
|
||||||
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
|
self.isShowContenting = true
|
||||||
|
fgCtr:FG_SetGroupShow(1, self.family.id, function(res)
|
||||||
|
print("收到协议M:FG_SetGroupShow")
|
||||||
|
pt(res)
|
||||||
|
self.isShowContenting = false
|
||||||
|
if res.ReturnCode ~= 0 then
|
||||||
ViewUtil.ShowBannerOnScreenCenter("设置失败,请稍后再试。。")
|
ViewUtil.ShowBannerOnScreenCenter("设置失败,请稍后再试。。")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
@ -235,4 +290,4 @@ function FamilyMyFamily:Init()
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
return FamilyMyFamily
|
return FamilyMyFamily
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
local RoomCardRecord = {}
|
||||||
|
|
||||||
|
function RoomCardRecord.New()
|
||||||
|
setmetatable(RoomCardRecord, { __index = BaseWindow })
|
||||||
|
local inst = setmetatable({}, { __index = RoomCardRecord })
|
||||||
|
inst._close_destroy = true
|
||||||
|
inst._full = true
|
||||||
|
inst._animation = false
|
||||||
|
inst._full_offset = false
|
||||||
|
inst._anim_pop = 0
|
||||||
|
BaseWindow.init(inst, 'ui://Family/com_familyRoomCardRecord')
|
||||||
|
inst:Init()
|
||||||
|
inst._root_view:GetChild("win_mode").visible = false
|
||||||
|
return inst
|
||||||
|
end
|
||||||
|
|
||||||
|
function RoomCardRecord:Show()
|
||||||
|
BaseWindow.Show(self)
|
||||||
|
end
|
||||||
|
|
||||||
|
function RoomCardRecord:Init()
|
||||||
|
self.list_record = self._view:GetChild("list_record")
|
||||||
|
end
|
||||||
|
|
||||||
|
return RoomCardRecord
|
||||||
|
|
@ -16,6 +16,7 @@ local FamilyMyFamily = import(".Family.FamilyMyFamily")
|
||||||
local FamilyRoomCard = import(".Family.FamilyRoomCard")
|
local FamilyRoomCard = import(".Family.FamilyRoomCard")
|
||||||
local FamilyMyfamilyList = import(".Family.FamilyMyfamilyList")
|
local FamilyMyfamilyList = import(".Family.FamilyMyfamilyList")
|
||||||
local FamilyChatRoom = import(".Family.FamilyChatRoom")
|
local FamilyChatRoom = import(".Family.FamilyChatRoom")
|
||||||
|
local FamilyMsgRecord = import(".Family.FamilyMsgRecord")
|
||||||
---
|
---
|
||||||
FamilyView = {}
|
FamilyView = {}
|
||||||
|
|
||||||
|
|
@ -126,6 +127,57 @@ function M:ShareWx()
|
||||||
familyInviteFamilyView:Show()
|
familyInviteFamilyView:Show()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function M:MsgView()
|
||||||
|
self.lastType = self.familyType.selectedIndex
|
||||||
|
self.familyType.selectedIndex = 0
|
||||||
|
local view = FamilyMsgRecord.New(function()
|
||||||
|
self.familyType.selectedIndex = self.lastType
|
||||||
|
end)
|
||||||
|
view:Show()
|
||||||
|
end
|
||||||
|
|
||||||
|
function M:SetIsOpenChatRoom()
|
||||||
|
local value = 1
|
||||||
|
if self._group.isOpenChatRoom == 1 then
|
||||||
|
value = 0
|
||||||
|
elseif self._group.isOpenChatRoom == 0 then
|
||||||
|
value = 1
|
||||||
|
end
|
||||||
|
|
||||||
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
|
fgCtr:SetIsOpenChatRoom(self._group.id, value, function(res)
|
||||||
|
print("设置开启聊天室协议")
|
||||||
|
pt(res)
|
||||||
|
|
||||||
|
if res.ReturnCode ~= 0 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
self._group.isOpenChatRoom = value
|
||||||
|
self:RefalshMoreBtn()
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
|
function M:SetCanWatch()
|
||||||
|
local value = 1
|
||||||
|
if self._group.isWatch == 1 then
|
||||||
|
value = 0
|
||||||
|
elseif self._group.isWatch == 0 then
|
||||||
|
value = 1
|
||||||
|
end
|
||||||
|
|
||||||
|
local fgCtr = ControllerManager.GetController(NewGroupController)
|
||||||
|
fgCtr:SetCanWatch(self._group.id, value, function(res)
|
||||||
|
print("设置是否观战")
|
||||||
|
pt(res)
|
||||||
|
|
||||||
|
if res.ReturnCode ~= 0 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
self._group.isWatch = value
|
||||||
|
self:RefalshMoreBtn()
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
function M:FamilyRecord()
|
function M:FamilyRecord()
|
||||||
if not self._ViewChild_Record or not self._ViewChild_Record.ShouRanks then
|
if not self._ViewChild_Record or not self._ViewChild_Record.ShouRanks then
|
||||||
self._ViewChild_Record = FamilyRecord.New(self, self._group.id)
|
self._ViewChild_Record = FamilyRecord.New(self, self._group.id)
|
||||||
|
|
@ -198,6 +250,7 @@ function M:MoreBtn()
|
||||||
end)
|
end)
|
||||||
ctr_more.selectedIndex = 1
|
ctr_more.selectedIndex = 1
|
||||||
self:ChangeMore()
|
self:ChangeMore()
|
||||||
|
self:RefalshMoreBtn()
|
||||||
end
|
end
|
||||||
|
|
||||||
function M:BanFamily()
|
function M:BanFamily()
|
||||||
|
|
@ -288,7 +341,10 @@ function M:UpdateFamilyRoom(fgCtr, id)
|
||||||
roomList[newIndex].id)
|
roomList[newIndex].id)
|
||||||
obj:GetChild('btn_joinGame'):GetController('type').selectedIndex = 1
|
obj:GetChild('btn_joinGame'):GetController('type').selectedIndex = 1
|
||||||
obj:GetController('num').selectedIndex = roomList[newIndex].maxPlayers - 2
|
obj:GetController('num').selectedIndex = roomList[newIndex].maxPlayers - 2
|
||||||
obj:GetController('type').selectedIndex = 1
|
if self._group.isWatch == 1 then
|
||||||
|
-- 允许观战
|
||||||
|
obj:GetController('type').selectedIndex = 1
|
||||||
|
end
|
||||||
local plist = roomList[newIndex].plist
|
local plist = roomList[newIndex].plist
|
||||||
local insertName = ""
|
local insertName = ""
|
||||||
for i = 1, #plist do
|
for i = 1, #plist do
|
||||||
|
|
@ -644,7 +700,7 @@ local MORE_LIST = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "消息记录",
|
name = "消息记录",
|
||||||
Fct = M.ShareWx
|
Fct = M.MsgView
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "禁止同桌",
|
name = "禁止同桌",
|
||||||
|
|
@ -652,7 +708,11 @@ local MORE_LIST = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "关闭聊天室",
|
name = "关闭聊天室",
|
||||||
Fct = M.ShareWx
|
Fct = M.SetIsOpenChatRoom
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "关闭旁观",
|
||||||
|
Fct = M.SetCanWatch
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -682,4 +742,26 @@ function M:ChangeMore()
|
||||||
list_other.numItems = #moreList
|
list_other.numItems = #moreList
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function M:RefalshMoreBtn()
|
||||||
|
-- 有空优化吧
|
||||||
|
|
||||||
|
local tex = ""
|
||||||
|
if self._group.isOpenChatRoom == 1 then
|
||||||
|
tex = "关闭聊天室"
|
||||||
|
elseif self._group.isOpenChatRoom == 0 then
|
||||||
|
tex = "打开聊天室"
|
||||||
|
end
|
||||||
|
MORE_LIST[4].name = tex
|
||||||
|
|
||||||
|
local tex = ""
|
||||||
|
if self._group.isWatch == 1 then
|
||||||
|
tex = "关闭观战"
|
||||||
|
elseif self._group.isWatch == 0 then
|
||||||
|
tex = "打开观战"
|
||||||
|
end
|
||||||
|
MORE_LIST[5].name = tex
|
||||||
|
|
||||||
|
self:ChangeMore()
|
||||||
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ function Main()
|
||||||
typeof(UnityEngine.AudioClip)))
|
typeof(UnityEngine.AudioClip)))
|
||||||
FairyGUI.UIConfig.defaultFont = "FZDaBiaoSong-B06S"
|
FairyGUI.UIConfig.defaultFont = "FZDaBiaoSong-B06S"
|
||||||
FairyGUI.FontManager.RegisterFont(FairyGUI.DynamicFont.New("SIYUAN", "base/static/fonts/SIYUAN.TTF"), null)
|
FairyGUI.FontManager.RegisterFont(FairyGUI.DynamicFont.New("SIYUAN", "base/static/fonts/SIYUAN.TTF"), null)
|
||||||
|
FairyGUI.FontManager.RegisterFont(FairyGUI.DynamicFont.New("方正胖娃_GBK", "base/static/fonts/方正胖娃_GBK.TTF"), null)
|
||||||
--FairyGUI.FontManager.RegisterFont(FairyGUI.DynamicFont.New("FZCuYuan-M03","base/static/fonts/FZCuYuan-M03.TTF"),null)
|
--FairyGUI.FontManager.RegisterFont(FairyGUI.DynamicFont.New("FZCuYuan-M03","base/static/fonts/FZCuYuan-M03.TTF"),null)
|
||||||
--FairyGUI.FontManager.RegisterFont(FairyGUI.DynamicFont.New("HYFangLiJ","base/static/fonts/HYFangLiJ.ttf"),null)
|
--FairyGUI.FontManager.RegisterFont(FairyGUI.DynamicFont.New("HYFangLiJ","base/static/fonts/HYFangLiJ.ttf"),null)
|
||||||
_game_info = json.decode(GameApplication.Instance.GameInfo)
|
_game_info = json.decode(GameApplication.Instance.GameInfo)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,11 @@
|
||||||
<text id="n2_ieus" name="tex_time" xy="36,9" size="562,56" font="ui://27vd145bg2mo7ij0" fontSize="42" autoSize="none" text="游戏结算:10月29号 03:42:36"/>
|
<text id="n2_ieus" name="tex_time" xy="36,9" size="562,56" font="ui://27vd145bg2mo7ij0" fontSize="42" autoSize="none" text="游戏结算:10月29号 03:42:36"/>
|
||||||
<text id="n3_ieus" name="tex_name" xy="36,94" size="148,49" font="Alimama FangYuanTi VF" fontSize="36" color="#8e0305" align="center" vAlign="middle" autoSize="none" bold="true" text="利川麻将"/>
|
<text id="n3_ieus" name="tex_name" xy="36,94" size="148,49" font="Alimama FangYuanTi VF" fontSize="36" color="#8e0305" align="center" vAlign="middle" autoSize="none" bold="true" text="利川麻将"/>
|
||||||
<text id="n4_ieus" name="n4" xy="56,142" size="107,97" font="ui://27vd145bg2mo7ij0" fontSize="36" color="#333333" align="center" leading="-2" autoSize="none" text="99999
99"/>
|
<text id="n4_ieus" name="n4" xy="56,142" size="107,97" font="ui://27vd145bg2mo7ij0" fontSize="36" color="#333333" align="center" leading="-2" autoSize="none" text="99999
99"/>
|
||||||
|
<<<<<<< HEAD
|
||||||
<list id="n12_ieus" name="list_players" xy="216,73" size="1293,168" layout="row" selectionMode="none" overflow="hidden" defaultItem="ui://htcn7v3rieus7d1l" vAlign="middle">
|
<list id="n12_ieus" name="list_players" xy="216,73" size="1293,168" layout="row" selectionMode="none" overflow="hidden" defaultItem="ui://htcn7v3rieus7d1l" vAlign="middle">
|
||||||
|
=======
|
||||||
|
<list id="n12_ieus" name="list_players" xy="216,73" size="1293,168" layout="row" selectionMode="none" overflow="hidden" defaultItem="ui://htcn7v3rieus7d1l" vAlign="middle" autoClearItems="true">
|
||||||
|
>>>>>>> 9cc8415a0cfae87c6dc49e927ee054dfac98e95a
|
||||||
<item/>
|
<item/>
|
||||||
<item/>
|
<item/>
|
||||||
</list>
|
</list>
|
||||||
|
|
|
||||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
|
@ -10,7 +10,11 @@
|
||||||
<image id="n2_ieus" name="n2" src="ieus7d1f" fileName="Main/Image/Rectangle 123.png" xy="474,162" size="2034,834">
|
<image id="n2_ieus" name="n2" src="ieus7d1f" fileName="Main/Image/Rectangle 123.png" xy="474,162" size="2034,834">
|
||||||
<relation target="" sidePair="width-width,height-height"/>
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
</image>
|
</image>
|
||||||
|
<<<<<<< HEAD
|
||||||
<list id="n3_ieus" name="list_chat" xy="543,189" size="1901,780" overflow="scroll" lineGap="65" defaultItem="ui://htcn7v3rieus7d1g">
|
<list id="n3_ieus" name="list_chat" xy="543,189" size="1901,780" overflow="scroll" lineGap="65" defaultItem="ui://htcn7v3rieus7d1g">
|
||||||
|
=======
|
||||||
|
<list id="n3_ieus" name="list_chat" xy="543,189" size="1901,780" overflow="scroll" lineGap="65" defaultItem="ui://htcn7v3rieus7d1g" autoClearItems="true">
|
||||||
|
>>>>>>> 9cc8415a0cfae87c6dc49e927ee054dfac98e95a
|
||||||
<relation target="" sidePair="width-width,height-height"/>
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
<item/>
|
<item/>
|
||||||
<item/>
|
<item/>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<component size="435,66" extention="ComboBox">
|
||||||
|
<controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="3"/>
|
||||||
|
<displayList>
|
||||||
|
<image id="n0_95rc" name="n0" src="95rc7d4p" fileName="FamilyRoomCardRecord/Image/Rectangle 165(2).png" xy="0,0" size="435,66">
|
||||||
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
|
</image>
|
||||||
|
<text id="n1_95rc" name="title" xy="0,-3" size="370,72" font="ui://27vd145bh35o7ill" fontSize="54" color="#ffffff" align="center" vAlign="middle" autoSize="none" singleLine="true" text="">
|
||||||
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
|
</text>
|
||||||
|
<image id="n2_95rc" name="n2" src="95rc7d4o" fileName="FamilyRoomCardRecord/Image/Group 558.png" xy="369,0"/>
|
||||||
|
</displayList>
|
||||||
|
<ComboBox dropdown="ui://htcn7v3r95rc7d4m"/>
|
||||||
|
<customProperty target="" propertyId="0"/>
|
||||||
|
<customProperty target="" propertyId="0"/>
|
||||||
|
<customProperty target="" propertyId="0"/>
|
||||||
|
</component>
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<component size="414,66" extention="Button">
|
||||||
|
<controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="0"/>
|
||||||
|
<displayList>
|
||||||
|
<text id="n1_95rc" name="title" xy="0,-3" size="414,72" font="ui://27vd145bh35o7ill" fontSize="54" color="#ffffff" align="center" vAlign="middle" autoSize="none" singleLine="true" text="99999
">
|
||||||
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
|
</text>
|
||||||
|
</displayList>
|
||||||
|
<Button mode="Radio"/>
|
||||||
|
</component>
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<component size="150,200">
|
||||||
|
<displayList>
|
||||||
|
<image id="n0_95rc" name="n0" src="95rc7d4p" fileName="FamilyRoomCardRecord/Image/Rectangle 165(2).png" xy="0,-4" size="150,208">
|
||||||
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
|
</image>
|
||||||
|
<list id="n1_95rc" name="list" xy="0,0" size="150,200" overflow="hidden" defaultItem="ui://htcn7v3r95rc7d4l">
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
</list>
|
||||||
|
</displayList>
|
||||||
|
<relation target="n1_95rc" sidePair="height-height"/>
|
||||||
|
</component>
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<component size="2004,135">
|
||||||
|
<displayList>
|
||||||
|
<image id="n0_95rc" name="n0" src="95rc7d4f" fileName="Main/Image/Group 365.png" xy="-11,-11" size="2026,157"/>
|
||||||
|
<text id="n1_95rc" name="tex_time" xy="228,31" size="546,72" font="ui://27vd145bh35o7il1" fontSize="54" color="#444444" align="center" vAlign="middle" text="2025-03-21 14:30:23"/>
|
||||||
|
<image id="n2_95rc" name="n2" src="95rc7d4h" fileName="FamilyRoomCardRecord/Image/Rectangle 186.png" xy="999,15"/>
|
||||||
|
<text id="n3_95rc" name="tex_num" xy="1230,31" size="546,72" font="ui://27vd145bh35o7il1" fontSize="54" color="#444444" align="center" vAlign="middle" autoSize="none" text="50"/>
|
||||||
|
</displayList>
|
||||||
|
</component>
|
||||||
|
After Width: | Height: | Size: 950 B |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 148 B |
|
|
@ -0,0 +1,36 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<component size="2532,1170">
|
||||||
|
<displayList>
|
||||||
|
<image id="n0_95rc" name="n0" src="mc627d05" fileName="Main/Image/Rectangle 91.png" xy="228,165" size="2076,993"/>
|
||||||
|
<image id="n1_95rc" name="n1" src="ieus7d1e" fileName="Main/Image/Rectangle 121.png" xy="246,183" size="2040,957"/>
|
||||||
|
<image id="n11_95rc" name="n11" src="yk1o7d3p" fileName="Main/Image/hall_club_common_tittle_icon1.png" xy="931,24" group="n14_95rc">
|
||||||
|
<relation target="n12_95rc" sidePair="left-left"/>
|
||||||
|
</image>
|
||||||
|
<text id="n12_95rc" name="n12" xy="1048,27" size="436,94" group="n14_95rc" font="ui://27vd145bg2mo7ij0" fontSize="72" color="#ffffff" align="center" vAlign="middle" text="充值房卡记录">
|
||||||
|
<relation target="" sidePair="center-center"/>
|
||||||
|
</text>
|
||||||
|
<image id="n13_95rc" name="n13" src="yk1o7d3p" fileName="Main/Image/hall_club_common_tittle_icon1.png" xy="1538,24" group="n14_95rc" flip="hz">
|
||||||
|
<relation target="n12_95rc" sidePair="right-right"/>
|
||||||
|
</image>
|
||||||
|
<group id="n14_95rc" name="n14" xy="931,24" size="670,99"/>
|
||||||
|
<image id="n2_95rc" name="n2" src="95rc7d4e" fileName="Main/Image/Group 557.png" xy="264,304" size="2004,72"/>
|
||||||
|
<list id="n4_95rc" name="list_record" xy="182,396" size="2168,671" layout="flow_vt" overflow="scroll" lineGap="24" defaultItem="ui://htcn7v3r95rc7d4g" align="center">
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
</list>
|
||||||
|
<text id="n5_95rc" name="n5" xy="611,312" size="309,56" font="ui://27vd145bg2mo7ij0" fontSize="42" color="#ffffff" align="center" autoSize="none" text="时间"/>
|
||||||
|
<text id="n6_95rc" name="n6" xy="1610,314" size="309,56" font="ui://27vd145bg2mo7ij0" fontSize="42" color="#ffffff" align="center" autoSize="none" text="充值房卡数"/>
|
||||||
|
<graph id="n8_95rc" name="n8" xy="1263,304" size="6,73" type="rect" lineColor="#00000000" fillColor="#fffbefd3"/>
|
||||||
|
<component id="n9_95rc" name="box_time" src="95rc7d4n" fileName="FamilyRoomCardRecord/Component/box_time.xml" xy="1811,185">
|
||||||
|
<ComboBox visibleItemCount="10">
|
||||||
|
<item title="45"/>
|
||||||
|
<item title="37537"/>
|
||||||
|
<item title="8974"/>
|
||||||
|
<item title="879871"/>
|
||||||
|
</ComboBox>
|
||||||
|
</component>
|
||||||
|
<component id="n10_95rc" name="btn_close" src="in3i7cu9" fileName="Main/Component/btn_close.xml" xy="54,6"/>
|
||||||
|
</displayList>
|
||||||
|
</component>
|
||||||
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<component size="264,78" extention="Button">
|
||||||
|
<controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="0"/>
|
||||||
|
<displayList>
|
||||||
|
<image id="n0_j0cy" name="n0" src="j0cy7d4t" fileName="MyFamily/Image/Component 1.png" xy="0,0" size="264,83">
|
||||||
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
|
</image>
|
||||||
|
</displayList>
|
||||||
|
<Button/>
|
||||||
|
</component>
|
||||||
|
After Width: | Height: | Size: 27 KiB |
|
|
@ -64,7 +64,13 @@
|
||||||
<gearDisplay controller="cStyle" pages="0,1"/>
|
<gearDisplay controller="cStyle" pages="0,1"/>
|
||||||
<relation target="" sidePair="top-top"/>
|
<relation target="" sidePair="top-top"/>
|
||||||
</component>
|
</component>
|
||||||
<component id="n34_sfjv" name="btn_editNotice" src="sfjv7d3f" fileName="MyFamily/Component/btn_editNotice.xml" xy="2142,970">
|
<component id="n50_k356" name="btn_editNotice" src="sfjv7d3f" fileName="MyFamily/Component/btn_editNotice.xml" xy="2142,987">
|
||||||
|
<gearDisplay controller="cStyle" pages="0,1"/>
|
||||||
|
</component>
|
||||||
|
<component id="n51_k356" name="btn_editName" src="sfjv7d3f" fileName="MyFamily/Component/btn_editNotice.xml" xy="2142,261">
|
||||||
|
<gearDisplay controller="cStyle" pages="0,1"/>
|
||||||
|
</component>
|
||||||
|
<component id="n34_sfjv" name="btn_editWx" src="sfjv7d3f" fileName="MyFamily/Component/btn_editNotice.xml" xy="2142,369">
|
||||||
<gearDisplay controller="cStyle" pages="0,1"/>
|
<gearDisplay controller="cStyle" pages="0,1"/>
|
||||||
</component>
|
</component>
|
||||||
<component id="n36_sfjv" name="btn_bgNotice" src="sfjv7d3g" fileName="MyFamily/Component/btn_bg.xml" xy="0,0" size="2532,1170" group="n42_sfjv">
|
<component id="n36_sfjv" name="btn_bgNotice" src="sfjv7d3g" fileName="MyFamily/Component/btn_bg.xml" xy="0,0" size="2532,1170" group="n42_sfjv">
|
||||||
|
|
@ -77,7 +83,7 @@
|
||||||
<image id="n44_sfjv" name="n44" src="ieus7d1p" fileName="MyFamily/Image/Rectangle 267.png" xy="696,318" size="1140,457" group="n42_sfjv"/>
|
<image id="n44_sfjv" name="n44" src="ieus7d1p" fileName="MyFamily/Image/Rectangle 267.png" xy="696,318" size="1140,457" group="n42_sfjv"/>
|
||||||
<text id="n45_sfjv" name="input_notice" xy="707,331" size="1129,457" group="n42_sfjv" font="ui://27vd145bh35o7il1" fontSize="54" color="#111111" autoSize="none" autoClearText="true" text="文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本" input="true"/>
|
<text id="n45_sfjv" name="input_notice" xy="707,331" size="1129,457" group="n42_sfjv" font="ui://27vd145bh35o7il1" fontSize="54" color="#111111" autoSize="none" autoClearText="true" text="文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本" input="true"/>
|
||||||
<component id="n46_sfjv" name="btn_confirmNotice" src="sfjv7d3n" fileName="MyFamily/Component/btn_confirmNotice.xml" xy="1054,805" group="n42_sfjv"/>
|
<component id="n46_sfjv" name="btn_confirmNotice" src="sfjv7d3n" fileName="MyFamily/Component/btn_confirmNotice.xml" xy="1054,805" group="n42_sfjv"/>
|
||||||
<text id="n47_sfjv" name="n47" xy="1020,133" size="492,127" group="n42_sfjv" font="ui://27vd145bh35o7ilc" fontSize="90" color="#ffffff" align="center" autoSize="none" text="修改公告"/>
|
<text id="n47_sfjv" name="tex_changeTitle" xy="1020,133" size="492,127" group="n42_sfjv" font="ui://27vd145bh35o7ilc" fontSize="90" color="#ffffff" align="center" autoSize="none" text="修改公告"/>
|
||||||
<group id="n42_sfjv" name="n42" xy="0,0" size="2532,1170" advanced="true">
|
<group id="n42_sfjv" name="n42" xy="0,0" size="2532,1170" advanced="true">
|
||||||
<gearDisplay controller="cWindow" pages="1"/>
|
<gearDisplay controller="cWindow" pages="1"/>
|
||||||
</group>
|
</group>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<component size="2532,1170">
|
||||||
|
<displayList>
|
||||||
|
<image id="n0_txni" name="n0" src="86ct7cwm" fileName="NumberList/Image/numberListTitle.png" xy="1014,19"/>
|
||||||
|
<image id="n1_txni" name="n1" src="86ct7cvc" fileName="GamePlay/Image/Rectangle 91.png" xy="387,166" size="1758,984"/>
|
||||||
|
<image id="n2_txni" name="n2" src="86ct7cvb" fileName="GamePlay/Image/Rectangle 112.png" xy="402,184" size="1728,948"/>
|
||||||
|
<image id="n3_txni" name="n3" src="c8pn7cyw" fileName="NumberList/Image/Rectangle 113.png" xy="408,190"/>
|
||||||
|
<image id="n4_txni" name="n4" src="c8pn7cyx" fileName="NumberList/Image/Rectangle 261.png" xy="444,196"/>
|
||||||
|
<text id="n5_txni" name="input_search" xy="474,196" size="1377,72" font="Alibaba PuHuiTi 3.0" fontSize="42" vAlign="middle" autoSize="none" autoClearText="true" text="测试" input="true"/>
|
||||||
|
<list id="n6_txni" name="list_number" xy="474,297" size="1584,816" layout="flow_hz" overflow="scroll" lineGap="30" colGap="24" defaultItem="ui://htcn7v3r86ct7cwj" align="center" autoClearItems="true">
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
<item/>
|
||||||
|
</list>
|
||||||
|
<component id="n7_txni" name="btn_search" src="86ct7cwi" fileName="NumberList/Component/btn_search.xml" xy="1863,196" size="204,72"/>
|
||||||
|
<component id="n9_txni" name="btn_close" src="in3i7cu9" fileName="Main/Component/btn_close.xml" xy="54,6"/>
|
||||||
|
</displayList>
|
||||||
|
</component>
|
||||||
|
|
@ -320,7 +320,11 @@
|
||||||
<image id="yk1o7d41" name="Group 556.png" path="/MyFamily/Image/"/>
|
<image id="yk1o7d41" name="Group 556.png" path="/MyFamily/Image/"/>
|
||||||
<component id="yk1o7d42" name="btn_myFamilylist.xml" path="/MyFamily/Component/"/>
|
<component id="yk1o7d42" name="btn_myFamilylist.xml" path="/MyFamily/Component/"/>
|
||||||
<component id="yk1o7d43" name="com_numberRemark.xml" path="/NumberRemark/" exported="true"/>
|
<component id="yk1o7d43" name="com_numberRemark.xml" path="/NumberRemark/" exported="true"/>
|
||||||
|
<<<<<<< HEAD
|
||||||
<component id="95rc7d4d" name="com_familyRoomCardRecord.xml" path="/FamilyRoomCardRecord/"/>
|
<component id="95rc7d4d" name="com_familyRoomCardRecord.xml" path="/FamilyRoomCardRecord/"/>
|
||||||
|
=======
|
||||||
|
<component id="95rc7d4d" name="com_familyRoomCardRecord.xml" path="/FamilyRoomCardRecord/" exported="true"/>
|
||||||
|
>>>>>>> 9cc8415a0cfae87c6dc49e927ee054dfac98e95a
|
||||||
<image id="95rc7d4e" name="Group 557.png" path="/Main/Image/" scale="9grid" scale9grid="59,36,39,0"/>
|
<image id="95rc7d4e" name="Group 557.png" path="/Main/Image/" scale="9grid" scale9grid="59,36,39,0"/>
|
||||||
<image id="95rc7d4f" name="Group 365.png" path="/Main/Image/" scale="9grid" scale9grid="33,32,96,95"/>
|
<image id="95rc7d4f" name="Group 365.png" path="/Main/Image/" scale="9grid" scale9grid="33,32,96,95"/>
|
||||||
<component id="95rc7d4g" name="item_record.xml" path="/FamilyRoomCardRecord/Component/"/>
|
<component id="95rc7d4g" name="item_record.xml" path="/FamilyRoomCardRecord/Component/"/>
|
||||||
|
|
@ -358,6 +362,11 @@
|
||||||
<image id="tgj67d4w" name="Group 109.png" path="/Main/Image/"/>
|
<image id="tgj67d4w" name="Group 109.png" path="/Main/Image/"/>
|
||||||
<image id="tgj67d4x" name="Group 96.png" path="/Main/Image/"/>
|
<image id="tgj67d4x" name="Group 96.png" path="/Main/Image/"/>
|
||||||
<component id="tgj67d4y" name="btn_head.xml" path="/NumberList/Component/"/>
|
<component id="tgj67d4y" name="btn_head.xml" path="/NumberList/Component/"/>
|
||||||
|
<component id="k3567d4z" name="com_FamilyMsgRecord.xml" path="/FamilyMsgRecord/" exported="true"/>
|
||||||
|
<image id="k3567d50" name="Group 650.png" path="/FamilyMsgRecord/Iamge/" scale="9grid" scale9grid="25,21,55,63"/>
|
||||||
|
<image id="k3567d51" name="Rectangle 291.png" path="/FamilyMsgRecord/Iamge/" scale="9grid" scale9grid="20,19,50,55"/>
|
||||||
|
<image id="k3567d52" name="Rectangle 290.png" path="/FamilyMsgRecord/Iamge/" scale="9grid" scale9grid="20,18,45,50"/>
|
||||||
|
<component id="k3567d53" name="item_msg.xml" path="/FamilyMsgRecord/Component/"/>
|
||||||
</resources>
|
</resources>
|
||||||
<publish name="Family" path="..\wb_unity_pro\Assets\ART\base\Family\ui" packageCount="2"/>
|
<publish name="Family" path="..\wb_unity_pro\Assets\ART\base\Family\ui" packageCount="2"/>
|
||||||
</packageDescription>
|
</packageDescription>
|
||||||
|
Before Width: | Height: | Size: 3.2 MiB After Width: | Height: | Size: 3.3 MiB |
|
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 1.8 MiB |
|
|
@ -0,0 +1,22 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: fc9b70dad43c41b4f995a42484aeb83c
|
||||||
|
TrueTypeFontImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 4
|
||||||
|
fontSize: 16
|
||||||
|
forceTextureCase: -2
|
||||||
|
characterSpacing: 0
|
||||||
|
characterPadding: 1
|
||||||
|
includeFontData: 1
|
||||||
|
fontName: FZPangWa-M18
|
||||||
|
fontNames:
|
||||||
|
- FZPangWa-M18
|
||||||
|
fallbackFontReferences: []
|
||||||
|
customCharacters:
|
||||||
|
fontRenderingMode: 0
|
||||||
|
ascentCalculationMode: 1
|
||||||
|
useLegacyBoundsCalculation: 0
|
||||||
|
shouldRoundAdvanceValue: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||