#include "gui/tab_bar.hpp" #include "pointers.hpp" #include "script_global.hpp" namespace big { const char* weatherTypes[] = { "Sunny", "Clear", "Clouds", "Smog", "Fog", "Overcast", "Rain", "Thunder", "Clearing", "Neatral (weird)", "Snow", "Blizzard", "Light Snow", "Christmas", "Halloween" }; void tabbar::render_online() { if (ImGui::BeginTabItem("Online")) { if (ImGui::TreeNode("Self")) { if (ImGui::Checkbox("Disable Chat Censoring", g_settings.options["disable_chat_censoring"].get())) g_settings.save(); if (ImGui::Checkbox("Off-Radar", g_settings.options["off_radar"].get())) g_settings.save(); if (ImGui::Checkbox("Reveal Players", g_settings.options["reveal_players"].get())) g_settings.save(); if (ImGui::Checkbox("Player Join Message", g_settings.options["join_message"].get())) g_settings.save(); ImGui::TreePop(); } ImGui::Separator(); if (ImGui::TreeNode("Money")) { ImGui::Text("Removed because is has been detected..."); ImGui::TreePop(); } ImGui::Separator(); if (ImGui::TreeNode("Spoofing")) { if (ImGui::Checkbox("Spoof Online Rank", g_settings.options["spoof_rank"].get())) g_settings.save(); ImGui::Text("Rank:"); if (ImGui::InputInt("##rank", (PINT)g_settings.options["rank"].get(), 1, 50)) g_settings.save(); ImGui::TreePop(); } ImGui::Separator(); if (ImGui::TreeNode("World")) { ImGui::Text("Time: "); ImGui::SliderInt("Hour:", &g_temp.time.hour, 0, 23); ImGui::SliderInt("Minutes:", &g_temp.time.minutes, 0, 59); if (ImGui::Button("Apply")) { QUEUE_JOB_BEGIN_CLAUSE(= ) { NETWORK::NETWORK_OVERRIDE_CLOCK_TIME(g_temp.time.hour, g_temp.time.minutes, 0); g_pointers->m_sync_local_time(1, 0); }QUEUE_JOB_END_CLAUSE } ImGui::Text("Weather:"); if (ImGui::BeginCombo("##weather", weatherTypes[g_temp.weather_type])) { for (uint8_t i = 0; i < IM_ARRAYSIZE(weatherTypes); i++) { bool is_selected = (g_temp.weather_type == i); if (ImGui::Selectable(weatherTypes[i], is_selected)) { g_temp.weather_type = i; QUEUE_JOB_BEGIN_CLAUSE(= ) { g_pointers->m_set_session_weather(1, i, 76, 0); }QUEUE_JOB_END_CLAUSE } if (is_selected) ImGui::SetItemDefaultFocus(); } ImGui::EndCombo(); } ImGui::TreePop(); } ImGui::EndTabItem(); } } }