Menu

Show posts

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

Topics - pmiloslavsky

#1
QuoteeditBox = tgui::EditBox::create();
  editBox->setSize(100, 20);
  editBox->setTextSize(14);
  editBox->setPosition("parent.left + 1200", "parent.bottom - 300");
  editBox->setDefaultText("dec triple");
  pgui->add(editBox, "interior_color_adjust");
  editBox->onTextChange(signalIntColorAdj, p_model, pgui);
  editBox->setDefaultText("dec triple");

I don't see the text "dec triple" when the gui starts up. Do you have any idea why?
I don't do anything to the box, except hide all widgets sometimes.
#2
How do I have my own custom signal for EditBox with 2 parameters, and what the text changed to on the end in the last parameter?

 auto editBox = tgui::EditBox::create();
 editBox->onTextChange(signalPower, p_model, pgui);

in signalPower I want to see the value of the text.
Do I need to pass editBox and then call getText() inside signal?

In the 0.8 old way the const String was a last implicit parameter.