mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 23:07:26 +08:00
feat(TopBar): Added Session join MenuItems
This commit is contained in:
parent
eedfc6ab2a
commit
e1ac636541
@ -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"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user