#include "gui/window.hpp"
#include "imgui.h"
#include "fiber_pool.hpp"
#include "script.hpp"
#include "util/notify.hpp"
namespace big
{
void window::top_bar()
if (ImGui::BeginMainMenuBar())
if (ImGui::BeginMenu("Info"))
ImGui::MenuItem("Logged in as:", NULL, false, false);
ImGui::MenuItem("unknown", NULL, false, false);
if (ImGui::MenuItem("Am I lobby host?"))
QUEUE_JOB_BEGIN_CLAUSE()
notify::above_map(NETWORK::NETWORK_IS_HOST() ? "~g~Yes you are the host." : "You aren't the host.");
}
QUEUE_JOB_END_CLAUSE
if (ImGui::MenuItem("Flagged Account?"))
notify::above_map(NETWORK::NETWORK_PLAYER_IS_BADSPORT() ? "You have been ~r~reported multiple times!" : "Your account is in good standing.");
ImGui::EndMenu();
if (ImGui::BeginMenu("Extra"))
if (ImGui::MenuItem("Skip Cutscene"))
CUTSCENE::STOP_CUTSCENE_IMMEDIATELY();
if (ImGui::BeginMenu("Windows"))
ImGui::MenuItem("Main", nullptr, &g.window.main);
ImGui::MenuItem("Logs", nullptr, &g.window.log);
if (ImGui::BeginMenu("Quit"))
if (ImGui::MenuItem("Unload Menu (may crash)"))
g_running = false;
if (ImGui::MenuItem("Rage Quit (hard crash)"))
exit(0);
ImGui::EndMainMenuBar();