What does "tgui::getDoubleClickTime()" return?
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 MenuPanelClient client;
button->connect("pressed", &PanelClient::windowChooseKey, &client, "txtWindowShowKey" );picture->connect("DoubleClicked", []() { std::cout << "Pressed" << std::endl; });grid->addWidget(button, i, j, tgui::Padding(2));QuoteJust to clarify, lines in labels in 0.8 version keep center align accordingly to each line chars?Yes, each line will be centered individually.
. My pc happily continues running without issues even after invalid memory was accessed like in this code. Although I couldn't reproduce it here, I think I know what the issue was and it should be fixed in the latest version.
void f1() { std::cout << "Item selected" << std::endl; }
void f2(const sf::String& item) { std::cout << "Item selected: " << item.toAnsiString() << std::endl; }
void f3(std::string item, std::string id) { std::cout << "Item selected: " << item << " with id: " << id << std::endl; }
listBox->connect("ItemSelected", &f1);
listBox->connect("ItemSelected", &f2);
listBox->connect("ItemSelected", &f3);
QuoteBut i can't build my project using tgui.You should provide more details about what isn't working exactly. If the problem is with setting up codeblocks then have a look at the following tutorial: https://tgui.eu/tutorials/v0.7/codeblocks-precompiled/
QuoteEven the FullExample.cpp won't compile.Won't compile? If it really doesn't compile then you should show the compile errors.