feat(GUI): Added world tab

This commit is contained in:
Yimura 2020-12-28 01:23:27 +01:00
parent 110b76120f
commit d4857729f1
2 changed files with 27 additions and 0 deletions

View File

@ -17,6 +17,7 @@ namespace big
static void render_tunables();
static void render_teleport();
static void render_vehicle();
static void render_world();
static void render_network();
static void render_misc();
static void render_spawn();

View File

@ -0,0 +1,26 @@
#include "tab_bar.hpp"
namespace big
{
static int clock[3];
void tabbar::render_world()
{
if (ImGui::BeginTabItem("World"))
{
ImGui::Text("Set Local Time");
if (ImGui::InputInt3(": H:M:s", clock))
{
QUEUE_JOB_BEGIN_CLAUSE()
{
CLOCK::SET_CLOCK_TIME(clock[0], clock[1], clock[3]);
}QUEUE_JOB_END_CLAUSE
}
//ImGui::Text("Set Weather:");
//MISC::SET_OVERRIDE_WEATHER();
ImGui::EndTabItem();
}
}
}