This project is superseded by deadcell-gui-2.
Unfortunately the DEADCELL 'remake' was never finished, therefore this GUI is lacking a lot of features. I believe it is a good base to build from into something nice. It features some nice things such as window managing, event handling, and some other small things.
Event-driven UI library for gamehacking. Platform and rendering independent code is handled by ImGui.
Clone the project and submodules.
git clone --recurse-submodules --remote-submodules https://github.com/EternityX/deadcell-gui.git
Or clone the project and manually clone the submodules.
git clone https://github.com/EternityX/deadcell-gui.git
git submodule init
git submodule update
- Link and include the project
#include <deadcell_gui.h>
- Initialize
auto dc_gui = std::make_shared<gui::deadcell_gui>();
- Add a window
auto main_window = dc_gui->add<gui::window>("Window title", "unique_window_id");
- Add controls
bool test_var = false;
auto checkbox1 = dc_gui->add<gui::checkbox>("Checkbox", "unique_checkbox_id", &test_var, [&]() {
test_var = !test_var;
});
main_window->add_child(checkbox1);
- Inside your render loop
gui::drawing::set_draw_list(gui::drawing::draw_list_foreground);
dc_gui->new_frame();
Here are some recommended options to enable/disable in imconfig.h
.
#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS
#define IMGUI_DISABLE_DEMO_WINDOWS
#define IMGUI_DISABLE_METRICS_WINDOW
#define IMGUI_DISABLE_FILE_FUNCTIONS
#define IMGUI_USE_WCHAR32
#define IMGUI_ENABLE_FREETYPE
Below are some bonus design prototypes I made which I intended to use for the DEADCELL project, please note that this is not actually included within this repository and is merely a design.
If you bought a menu design looking like the two prototypes below, thinking it was original, you got scammed.