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

Messages - BruceBoc

#1
Help requests / Re: check if a widget is already
10 February 2014, 18:18:36
Thank, it's working.
I think i will to revise a little c++ therorie...
#2
Help requests / Re: check if a widget is already
10 February 2014, 17:48:58
Thank you very much, its working.

Other problem, in this fonction i have :

void cVanne::afficherWidget(tgui::Gui &gui)
{
//tgui::ChildWindow::Ptr child(gui);
if (gui.get("fenetre") == nullptr) {
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);
widget.fenêtre->bindCallbackEx(cVanne::fermerWidget, tgui::ChildWindow::Closed);
}

}

void cVanne::fermerWidget(const tgui::Callback& callback)
{



}


but the compiler don't accepte the bindCallbackEx.
#3
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?
#4
Installation help / Re: Where is the lib folder?
08 February 2014, 23:29:22
Thanks, i have download the new precompiled library and it's work very well.  ;)
#5
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.