mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-08 18:33:37 +08:00
feat(session): cleaned up switcher GUI (#324)
This commit is contained in:
parent
5fee670282
commit
0fcd27f9ed
@ -4,13 +4,18 @@
|
||||
|
||||
namespace big
|
||||
{
|
||||
void view::session() {
|
||||
|
||||
for (const SessionType& session_type : sessions)
|
||||
void view::session()
|
||||
{
|
||||
components::small_text("Session Switcher");
|
||||
if (ImGui::ListBoxHeader("###session_switch"))
|
||||
{
|
||||
components::button(session_type.name, [session_type] {
|
||||
session::join_type(session_type);
|
||||
});
|
||||
for (const auto& session_type : sessions)
|
||||
{
|
||||
components::selectable(session_type.name, false, [session_type] {
|
||||
session::join_type(session_type);
|
||||
});
|
||||
}
|
||||
ImGui::EndListBox();
|
||||
}
|
||||
if (ImGui::TreeNode("Local Time"))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user