From 3fa82b124122e0f41265e3581e413c1db2d09f4e Mon Sep 17 00:00:00 2001 From: 1076390229 <1076390229@qq.com> Date: Tue, 5 Aug 2025 21:09:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E5=91=98=E6=8E=92=E5=BA=8F=E5=B0=8F?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base_project/Game/View/FGAssistView.lua | 1 + lua_probject/base_project/Game/View/FamilyView.lua | 13 ++++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lua_probject/base_project/Game/View/FGAssistView.lua b/lua_probject/base_project/Game/View/FGAssistView.lua index 27f727e4..aa6a9f96 100644 --- a/lua_probject/base_project/Game/View/FGAssistView.lua +++ b/lua_probject/base_project/Game/View/FGAssistView.lua @@ -8,6 +8,7 @@ setmetatable(M, { __index = BaseWindow }) local function SortMembers(Members) + -- ↓↓↓去掉用户自己 for _,player in pairs(Members) do if player.uid == DataManager.SelfUser.account_id then Members[_] = nil diff --git a/lua_probject/base_project/Game/View/FamilyView.lua b/lua_probject/base_project/Game/View/FamilyView.lua index 03e96b93..75bce889 100644 --- a/lua_probject/base_project/Game/View/FamilyView.lua +++ b/lua_probject/base_project/Game/View/FamilyView.lua @@ -481,10 +481,17 @@ function M:ChangeNumber(fgCtr, group_id, limit, num, minus_only, sort_type) local player = self.members[index + 1] obj:GetChild('title').emojies = EmojiDitc.EmojiesDitc obj:GetChild('title').text = Utils.TextOmit(player.nick, 5, "...") - obj:GetController('type').selectedIndex = player.online and player.online or 0 - if player.playing == "startPlaying" then - obj:GetController('type').selectedIndex = 2 + + local state = 0 + if player.online == 1 and player.playing == "startPlaying" then + state = 2 + elseif player.online == 1 and player.playing == "stopPlaying" then + state = 1 + elseif player.online == 0 then + state = 0 end + + obj:GetController('type').selectedIndex = state local loader_icon = obj:GetChild("btn_head"):GetChild("icon") ImageLoad.Load(player.portrait, loader_icon) end