房间刷新修复

master
1076390229 2025-08-04 21:20:23 +08:00
parent 7d3040640c
commit 170e97b473
8 changed files with 8 additions and 1 deletions

View File

@ -663,7 +663,14 @@ function M:UpdateFamilyRoom(fgCtr, id)
roomName = string.format("%s%s", playList[newIndex].game_name, roomName) roomName = string.format("%s%s", playList[newIndex].game_name, roomName)
obj:GetChild('game_type').text = roomName obj:GetChild('game_type').text = roomName
obj:GetChild('btn_joinGame'):GetController('type').selectedIndex = 0 obj:GetChild('btn_joinGame'):GetController('type').selectedIndex = 0
obj:GetController('type').selectedIndex = 0
obj:GetController('num').selectedIndex = playList[newIndex].maxPlayers - 2 obj:GetController('num').selectedIndex = playList[newIndex].maxPlayers - 2
obj:GetChild('Label_joinPlayers').text = ""
for i = 1, 4 do
local btn = obj:GetChild(string.format("player%d", i))
btn:GetChild("icon").url = "ui://Family/btn_mainGameNumberHead"
--ImageLoad.Load("ui://Family/btn_mainGameNumberHead", obj:GetChild(string.format("player%d", i))._iconObject)
end
obj:GetChild('btn_joinGame').onClick:Set(function() obj:GetChild('btn_joinGame').onClick:Set(function()
roomCtr:PublicJoinRoom( roomCtr:PublicJoinRoom(
Protocol.WEB_FG_MATCH_ROOM, Protocol.WEB_FG_MATCH_ROOM,

View File

@ -107,7 +107,7 @@
<image id="jrro7cy5" name="btn_mainListStart.png" path="/Main/Image/"/> <image id="jrro7cy5" name="btn_mainListStart.png" path="/Main/Image/"/>
<image id="jrro7cy6" name="btn_mainListOn.png" path="/Main/Image/"/> <image id="jrro7cy6" name="btn_mainListOn.png" path="/Main/Image/"/>
<image id="jrro7cy7" name="btn_mainListJoin.png" path="/Main/Image/"/> <image id="jrro7cy7" name="btn_mainListJoin.png" path="/Main/Image/"/>
<image id="jrro7cy8" name="btn_mainGameNumberHead.png" path="/Main/Image/"/> <image id="jrro7cy8" name="btn_mainGameNumberHead.png" path="/Main/Image/" exported="true"/>
<image id="jrro7cy9" name="btn_hideRoom.png" path="/Main/Image/"/> <image id="jrro7cy9" name="btn_hideRoom.png" path="/Main/Image/"/>
<image id="jrro7cya" name="btn_familyName_on.png" path="/Main/Image/"/> <image id="jrro7cya" name="btn_familyName_on.png" path="/Main/Image/"/>
<image id="jrro7cyb" name="btn_familyName_off.png" path="/Main/Image/"/> <image id="jrro7cyb" name="btn_familyName_off.png" path="/Main/Image/"/>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 MiB

After

Width:  |  Height:  |  Size: 4.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 303 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 716 KiB

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 484 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 274 KiB

After

Width:  |  Height:  |  Size: 1.4 MiB