feat(Top Bar): Added function to join specific session types
This commit is contained in:
parent
df107a18c6
commit
531bf7a6a7
@ -56,6 +56,22 @@ namespace big
|
|||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ImGui::BeginMenu("Session"))
|
||||||
|
{
|
||||||
|
for (uint8_t i = 0; i < IM_ARRAYSIZE(sessions); i++)
|
||||||
|
{
|
||||||
|
if (ImGui::MenuItem(sessions[i].descr))
|
||||||
|
{
|
||||||
|
QUEUE_JOB_BEGIN_CLAUSE(=)
|
||||||
|
{
|
||||||
|
features::functions::join_session_type(sessions[i]);
|
||||||
|
}QUEUE_JOB_END_CLAUSE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui::EndMenu();
|
||||||
|
}
|
||||||
|
|
||||||
if (ImGui::BeginMenu("Quit"))
|
if (ImGui::BeginMenu("Quit"))
|
||||||
{
|
{
|
||||||
if (ImGui::MenuItem("Unload Menu (may crash)"))
|
if (ImGui::MenuItem("Unload Menu (may crash)"))
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include "session_type.hpp"
|
||||||
|
|
||||||
namespace big
|
namespace big
|
||||||
{
|
{
|
||||||
@ -42,4 +43,17 @@ namespace big
|
|||||||
"SNOWLIGHT",
|
"SNOWLIGHT",
|
||||||
"BLIZZARD"
|
"BLIZZARD"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inline session_type sessions[] = {
|
||||||
|
{ 0, "Join Public Session" },
|
||||||
|
{ 1, "New Public Session" },
|
||||||
|
{ 2, "Closed Crew Session" },
|
||||||
|
{ 3, "Crew Session" },
|
||||||
|
{ 6, "Closed Friend Session" },
|
||||||
|
{ 9, "Find Friend Session" },
|
||||||
|
{ 10, "Solo Session" },
|
||||||
|
{ 11, "Invite Only Session" },
|
||||||
|
{ 12, "Join Crew Session" },
|
||||||
|
{ -1, "Leave GTA Online" }
|
||||||
|
};
|
||||||
}
|
}
|
8
BigBaseV2/src/structs/session_type.hpp
Normal file
8
BigBaseV2/src/structs/session_type.hpp
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
namespace big
|
||||||
|
{
|
||||||
|
struct session_type
|
||||||
|
{
|
||||||
|
int id = 0;
|
||||||
|
char descr[32];
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user