feat(TopBar): Added Session join MenuItems

This commit is contained in:
Yimura 2021-08-05 01:28:49 +02:00
parent 5eee09f02d
commit 067f1047ef
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -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"))