Fixed world name label behaviour

This commit is contained in:
MihailRis
2024-01-18 20:11:47 +03:00
parent b12d242335
commit 9c110b83d3
4 changed files with 23 additions and 2 deletions
+4 -1
View File
@@ -201,7 +201,10 @@ Panel* create_worlds_panel(Engine* engine) {
auto btn = std::make_shared<RichButton>(vec2(390, 46));
btn->color(vec4(1.0f, 1.0f, 1.0f, 0.1f));
btn->setHoverColor(vec4(1.0f, 1.0f, 1.0f, 0.17f));
btn->add(std::make_shared<Label>(namews), vec2(8, 8));
auto label = std::make_shared<Label>(namews);
label->setInteractive(false);
btn->add(label, vec2(8, 8));
btn->listenAction([=](GUI*) {
open_world(name, engine);
});