spin_control->hideWithEffect(...)
none of the effects affects widget somehow.spin_control->getRenderer()->setOpacity(0)
nothing happens again. spin_control->getSpinButtonRenderer()->setOpacity(0.5);
spin_control->getSpinTextRenderer()->setOpacity(0.5);
it actually works. void GuiManager::OnClickColorPickerTool()
{
canDraw = false;
tgui::ColorPicker::Ptr colorPicker = tgui::ColorPicker::create();
colorPicker->onOkPress.connect(&GuiManager::Test, this);
gui.add(colorPicker);
}
void GuiManager::OnClickColorPickerTool()
{
canDraw = false;
tgui::ColorPicker::Ptr colorPicker = tgui::ColorPicker::create();
gui.add(colorPicker);
}