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