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