minor refactor + Block.uiLayout

This commit is contained in:
MihailRis
2024-02-16 22:51:47 +03:00
parent af7c828d73
commit 38f9805ca7
16 changed files with 48 additions and 38 deletions
+2 -2
View File
@@ -9,7 +9,7 @@
#include <glm/glm.hpp>
#include "gui/GUI.h"
#include "gui/panels.h"
#include "gui/containers.h"
#include "gui/controls.h"
#include "screens.h"
@@ -401,7 +401,7 @@ void create_new_world_panel(Engine* engine) {
panel->add(std::make_shared<Label>(langs::get(L"Name", L"world")));
auto nameInput = std::make_shared<TextBox>(L"New World", vec4(6.0f));
nameInput->textValidator([=](const std::wstring& text) {
nameInput->setTextValidator([=](const std::wstring& text) {
EnginePaths* paths = engine->getPaths();
std::string textutf8 = util::wstr2str_utf8(text);
return util::is_valid_filename(text) &&