调整邀请朋友渲染顺序,优化断开连接按钮显示逻辑
This commit is contained in:
@@ -188,8 +188,6 @@ int main()
|
||||
{
|
||||
ImGui::Text("已连接到游戏房间。邀请朋友!");
|
||||
ImGui::Separator();
|
||||
renderInviteFriends();
|
||||
ImGui::Separator();
|
||||
if (ImGui::Button("断开连接"))
|
||||
{
|
||||
roomManager.leaveLobby();
|
||||
@@ -200,6 +198,8 @@ int main()
|
||||
server.reset();
|
||||
}
|
||||
}
|
||||
ImGui::Separator();
|
||||
renderInviteFriends();
|
||||
}
|
||||
|
||||
ImGui::End();
|
||||
|
||||
Reference in New Issue
Block a user