From f4876af218b547537204d8231061b5d3ca713efb Mon Sep 17 00:00:00 2001 From: "ALIENJACK\\alien" Date: Thu, 7 Nov 2024 20:33:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=AD=E4=BB=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Script/UI/RoomItem.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/AxibugEmuOnline.Client/Assets/Script/UI/RoomItem.cs b/AxibugEmuOnline.Client/Assets/Script/UI/RoomItem.cs index 19fbd0e9..aed1d9de 100644 --- a/AxibugEmuOnline.Client/Assets/Script/UI/RoomItem.cs +++ b/AxibugEmuOnline.Client/Assets/Script/UI/RoomItem.cs @@ -32,6 +32,20 @@ namespace AxibugEmuOnline.Client UpdateUI(roomInfo); } + public override bool OnEnterItem() + { + if (!m_romFile.RomReady) + { + m_romFile.BeginDownload(); + return false; + } + else + { + App.roomMgr.SendJoinRoom(roomID, 1); + return true; + } + } + private void UpdateUI(Protobuf_Room_MiniInfo roomInfo) { var hostNick = roomInfo.GetHostNickName();