Example code no longer worked with new callback system

0.8
Bruno Van de Velde 2017-07-10 13:53:50 +02:00
parent a038cfddbd
commit b101814673
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ void loadWidgets( tgui::Gui& gui )
gui.add(button);
// Call the login function when the button is pressed and pass the edit boxes that we created as parameters
button->connect("pressed", login, editBoxUsername, editBoxPassword);
button->onPress->connect([=]{ login(editBoxUsername, editBoxPassword); });
}
int main()