feat(TopBar): Added Session join MenuItems
This commit is contained in:
parent
5eee09f02d
commit
067f1047ef
@ -1,8 +1,9 @@
|
||||
#include "fiber_pool.hpp"
|
||||
#include "gui/window.hpp"
|
||||
#include "imgui.h"
|
||||
#include "fiber_pool.hpp"
|
||||
#include "script.hpp"
|
||||
#include "util/notify.hpp"
|
||||
#include "util/session.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
@ -18,6 +19,22 @@ namespace big
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
if (ImGui::BeginMenu("Session"))
|
||||
{
|
||||
for (const SessionType &session_type : sessions)
|
||||
{
|
||||
if (ImGui::MenuItem(session_type.name))
|
||||
{
|
||||
QUEUE_JOB_BEGIN_CLAUSE(&)
|
||||
{
|
||||
session::join_type(session_type);
|
||||
}QUEUE_JOB_END_CLAUSE
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
if (ImGui::BeginMenu("Extra"))
|
||||
{
|
||||
if (ImGui::MenuItem("Skip Cutscene"))
|
||||
|
Reference in New Issue
Block a user