Ok, yeah for the instance I showed with only the grid in it, but in my program I have more than one
So I tested with the fix and it works great, thanks for your support !
So I tested with the fix and it works great, thanks for your support !
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
container_ = tgui::Group::create({ "30%", "100% " });
container_->setPosition({ "70%", "0%" });
verticalLayout_ = tgui::VerticalLayout::create();
tgui::Button::Ptr button = tgui::Button::create("");
button->getRenderer()->setTexture(ResourceManager::GetInstance().getTextureByName("panel"));
button->setSize(75, 75);
grid_ = tgui::Grid::create();
for (int i = 0; i < 12; ++i) {
tgui::Button::Ptr butt = tgui::Button::copy(button);
grid_->addWidget(butt, i / 5, i % 5);
}
verticalLayout_->add(grid_);
container_->add(verticalLayout_);
Gui.add(container_);