refactor(GUI): Simplified calls to windows

This commit is contained in:
Yimura 2022-01-04 22:45:34 +01:00
parent 7f86a31c49
commit 1484c90226
4 changed files with 19 additions and 35 deletions

View File

@ -13,7 +13,7 @@
#include <imgui.h>
#include "gui/gui_main.hpp"
#include "gui/window.hpp"
#include "util/notify.hpp"
namespace big
@ -105,7 +105,7 @@ namespace big
{
TRY_CLAUSE
{
main_gui::draw();
window::draw_all();
}
EXCEPT_CLAUSE
}

View File

@ -1,20 +0,0 @@
#include "gui_main.hpp"
#include "window.hpp"
namespace big
{
void main_gui::draw()
{
window::top_bar();
window::log();
window::debug();
window::main();
window::handling();
window::player();
window::users();
}
}

View File

@ -1,12 +0,0 @@
#pragma once
#include "common.hpp"
#include "natives.hpp"
namespace big
{
class main_gui {
public:
static void draw();
};
}

View File

@ -1,9 +1,9 @@
#pragma once
#include "natives.hpp"
namespace big
{
class window {
public:
static void debug();
static void top_bar();
static void handling();
@ -11,5 +11,21 @@ namespace big
static void main();
static void player();
static void users();
public:
static void draw_all()
{
window::top_bar();
window::log();
window::debug();
window::main();
window::handling();
window::player();
window::users();
}
};
}