Main Menu
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 - BruceBoc

#1
Help requests / check if a widget is already
10 February 2014, 15:49:34
Hello,
I have a button that will open a childwindow, but i want only one instance of chilwindow even if i click several time on the button.
Here the code :

void cVanne::afficherWidget(tgui::Gui &gui)
{
widget.fenêtre = tgui::ChildWindow::Ptr(gui, "fenetre");
widget.fenêtre->load(THEME_CONFIG_FILE);
widget.fenêtre->setSize(100, 100);
widget.fenêtre->setBackgroundColor(sf::Color(80, 80, 80, 125));
widget.fenêtre->setPosition(sprite.posX, sprite.posY+sprite.tailleY);
widget.fenêtre->setTransparency(125);
widget.fenêtre->setBorders(2,2,2,2);
widget.fenêtre->setCallbackId(1);

}


What should i do if i want to check if childwindows is already open?
#2
Installation help / Where is the lib folder?
08 February 2014, 01:21:36
Hello,

To install Tgui 0.6, i have test 2 methods :

- first i tried to configure visual studio 2012 with pre-precompiled libs.
i have read this tuto "https://old.tgui.eu/tutorials/v06/visual-studio-precompiled-libs/", but in "TGUI-0.6.0 Visual C++11 (2012) - 32bit.zip", there is no folder lib for SFML witch should be included.

- secondly i have compiled TGUI-0.6.0 using CMake with the gui.
it's seems to work but there are no folder lib.

I specify that I am a beginner, and sorry for my bad english, i'm a french user.