refactor(GUI): Simplified calls to windows
This commit is contained in:
parent
7f86a31c49
commit
1484c90226
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include <imgui.h>
|
#include <imgui.h>
|
||||||
|
|
||||||
#include "gui/gui_main.hpp"
|
#include "gui/window.hpp"
|
||||||
#include "util/notify.hpp"
|
#include "util/notify.hpp"
|
||||||
|
|
||||||
namespace big
|
namespace big
|
||||||
@ -105,7 +105,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
TRY_CLAUSE
|
TRY_CLAUSE
|
||||||
{
|
{
|
||||||
main_gui::draw();
|
window::draw_all();
|
||||||
}
|
}
|
||||||
EXCEPT_CLAUSE
|
EXCEPT_CLAUSE
|
||||||
}
|
}
|
||||||
|
@ -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();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include "common.hpp"
|
|
||||||
#include "natives.hpp"
|
|
||||||
|
|
||||||
namespace big
|
|
||||||
{
|
|
||||||
class main_gui {
|
|
||||||
public:
|
|
||||||
static void draw();
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,9 +1,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include "natives.hpp"
|
||||||
|
|
||||||
namespace big
|
namespace big
|
||||||
{
|
{
|
||||||
class window {
|
class window {
|
||||||
public:
|
|
||||||
static void debug();
|
static void debug();
|
||||||
static void top_bar();
|
static void top_bar();
|
||||||
static void handling();
|
static void handling();
|
||||||
@ -11,5 +11,21 @@ namespace big
|
|||||||
static void main();
|
static void main();
|
||||||
static void player();
|
static void player();
|
||||||
static void users();
|
static void users();
|
||||||
|
|
||||||
|
public:
|
||||||
|
static void draw_all()
|
||||||
|
{
|
||||||
|
window::top_bar();
|
||||||
|
|
||||||
|
window::log();
|
||||||
|
|
||||||
|
window::debug();
|
||||||
|
|
||||||
|
window::main();
|
||||||
|
window::handling();
|
||||||
|
|
||||||
|
window::player();
|
||||||
|
window::users();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
Reference in New Issue
Block a user