mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
test
This commit is contained in:
parent
5e542225c7
commit
317aa710c4
2 changed files with 76 additions and 67 deletions
|
|
@ -19,6 +19,7 @@
|
|||
#include "graphics/core/DrawContext.hpp"
|
||||
#include "graphics/core/Shader.hpp"
|
||||
#include "gui_util.hpp"
|
||||
#include "util/platform.hpp"
|
||||
#include "window/Camera.hpp"
|
||||
#include "window/Window.hpp"
|
||||
#include "window/input.hpp"
|
||||
|
|
@ -204,6 +205,13 @@ void GUI::act(float delta, const glm::uvec2& vp) {
|
|||
container->act(delta);
|
||||
auto prevfocus = focus;
|
||||
|
||||
if (input.jpressed(Keycode::BACKSPACE)) {
|
||||
platform::new_engine_instance({
|
||||
"--res", engine.getPaths().getResourcesFolder().u8string(),
|
||||
"--dir", engine.getPaths().getUserFilesFolder().u8string()
|
||||
});
|
||||
}
|
||||
|
||||
updateTooltip(delta);
|
||||
|
||||
const auto& cursor = input.getCursor();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue