Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFGUI (0.4.0 released)  (Read 287413 times)

0 Members and 1 Guest are viewing this topic.

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1404
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: SFGUI
« Reply #345 on: November 06, 2012, 01:02:12 am »
by closing using console i mean pressing the X on the console window when project is compiled as console application
This is the problem. Many people don't realize that closing the console a graphical application is running in kills the application and doesn't let it do proper cleanup. The only true way to close an SFML application that makes use of sfml-window and sfml-graphics would be to let program execution terminate by itself. Because of RAII this makes sure everything also gets cleaned up properly. When not debugging, you shouldn't have to display the console either. It is only an aid for debugging that you use purely as a place for stdout and stderr to go to, nothing else.

As such this is not a bug, but just wrong usage.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

FRex

  • Hero Member
  • *****
  • Posts: 1839
  • Not doing gamedev/using SFML lately
    • View Profile
    • Email
Re: SFGUI
« Reply #346 on: November 06, 2012, 01:22:16 am »
Yes, I know, just asking because it never caused errors like that except for def font.
I'm not using SFML nor doing any gamedev lately.

FRex

  • Hero Member
  • *****
  • Posts: 1839
  • Not doing gamedev/using SFML lately
    • View Profile
    • Email
Re: SFGUI
« Reply #347 on: December 25, 2012, 02:19:31 pm »
It seems that trying to go to http://sfgui.sfml-dev.de/download on http://sfgui.sfml-dev.de results in 500, someone confirmed that for me, and it fails on firefox and chrome on windows and firefox on fedora so it's not just my setup that suddenly broke.
I'm not using SFML nor doing any gamedev lately.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10190
    • View Profile
    • development blog
    • Email
Re: SFGUI
« Reply #348 on: December 25, 2012, 02:27:44 pm »
It seems that trying to go to http://sfgui.sfml-dev.de/download on http://sfgui.sfml-dev.de results in 500, someone confirmed that for me, and it fails on firefox and chrome on windows and firefox on fedora so it's not just my setup that suddenly broke.
Yep there seems to be a problem (again). ;)
But the git repository is still up and running: git://boxbox.org/SFGUI.git
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

FRex

  • Hero Member
  • *****
  • Posts: 1839
  • Not doing gamedev/using SFML lately
    • View Profile
    • Email
Re: SFGUI
« Reply #349 on: December 25, 2012, 02:39:19 pm »
Isn't that the bleeding edge version?
I'm not using SFML nor doing any gamedev lately.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10190
    • View Profile
    • development blog
    • Email
Re: SFGUI
« Reply #350 on: December 25, 2012, 03:01:51 pm »
Isn't that the bleeding edge version?
That's just the official git repository of SFGUI (same as the one on GitHub for SFML).
If by 'bleeding edge version'  you mean the experimental one, then you're also right, because it's just another branch with the same url, mainly the experimental branch.
If you're referring to the Nightly Builds, then I can't help you further, since I don't know the URLs to them. But they would be anyways outdated, since SFGUI in the middle of moving to a different CI (contiguous integration) tool. ;)
Just compile it on your own and everything should work fine.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

FRex

  • Hero Member
  • *****
  • Posts: 1839
  • Not doing gamedev/using SFML lately
    • View Profile
    • Email
Re: SFGUI
« Reply #351 on: January 04, 2013, 02:57:57 am »
What does IsActiveWidget() return?
I have a box packed with 20 labels, all of which have onleftclick connected to click() method of class that has pointer to box. In click I'm doing a for loop through all pointers in m_Box->GetChildren() and none of them return true for IsActiveWidget.

Strangely, simply packing 20 buttons and not touching any other code works.

A side question, how to make window vertically scrollable?
« Last Edit: January 04, 2013, 03:25:56 am by FRex »
I'm not using SFML nor doing any gamedev lately.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1485
    • View Profile
    • Blog
    • Email
Re: SFGUI
« Reply #352 on: January 04, 2013, 08:08:11 am »
Widgets *can* have 4 states: Normal, prelight, selected and active. Not all states are used/supported by all widgets. For example, a label can't get active, it does not make sense. However, when a button gets focus, it's becoming active.

What are you actually trying to do? If you want to get the label that the event was fired for, see sfg::Context::GetActiveWidget() or use functors.

Quote
A side question, how to make window vertically scrollable?
You can't, but you can put everything inside an sfg::ScrolledWindow and add that to the window.

Edit: Oh and by the way, sorry for the download page problems lately. Jenkins CI is going crazy, crashing almost every 15-20 minutes. The download page script fetches live data from Jenkins for the nightly statuses, even when it's down, and that's why it's failing with 500.

The problem will be solved with an updated website and a first binary release, i.e. nightly builds won't be available for quite some time. Instead, we plan to push out smaller releases more often.
« Last Edit: January 04, 2013, 08:11:58 am by Tank »

FRex

  • Hero Member
  • *****
  • Posts: 1839
  • Not doing gamedev/using SFML lately
    • View Profile
    • Email
Re: SFGUI
« Reply #353 on: January 04, 2013, 11:32:55 am »
I was trying to simulate a listbox(that curiosly appears in features list ;D) by having box of labels and all labels connected to same method and then fetching index of label that was actually clicked on. But I was refilling it with new labels every click so labels got invaldated mid-signal which caused weird errors so I must give it up, write own listbox(fat chance) or make weird workarounds(like if box of labels wasn't weird enough).
For download, I guess I'll just git clone SFML and SFGUI whenever I want to recompile, less hassle that way.
« Last Edit: January 04, 2013, 03:58:31 pm by FRex »
I'm not using SFML nor doing any gamedev lately.

FRex

  • Hero Member
  • *****
  • Posts: 1839
  • Not doing gamedev/using SFML lately
    • View Profile
    • Email
Re: SFGUI
« Reply #354 on: January 05, 2013, 07:30:08 pm »
I don't know if it's relevant but the type of blending used in last SFML draw call is affecting the SFGUI::Display just after it, often in bad ways that look like bugs but probably aren't.
I'm not using SFML nor doing any gamedev lately.

trilavia

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: SFGUI
« Reply #355 on: January 06, 2013, 07:34:49 pm »
The download on http://sfgui.sfml-dev.de/download gives error 500 and the github project from the first post doesn't exist. How can I download sfgui?

FRex

  • Hero Member
  • *****
  • Posts: 1839
  • Not doing gamedev/using SFML lately
    • View Profile
    • Email
Re: SFGUI
« Reply #356 on: January 06, 2013, 07:40:14 pm »
One does not simply download the best gui for sfml.
Do: git clone git://boxbox.org/SFGUI.git
You should have git bash shortcut on desktop after downloading and installing git for windows.
I'm not using SFML nor doing any gamedev lately.

trilavia

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: SFGUI
« Reply #357 on: January 06, 2013, 07:52:32 pm »
I use linux actually :P
Is there a way to theme sfgui in some way (images, css layouts, whatever)? As the default font and theme isn't good for me.

FRex

  • Hero Member
  • *****
  • Posts: 1839
  • Not doing gamedev/using SFML lately
    • View Profile
    • Email
Re: SFGUI
« Reply #358 on: January 06, 2013, 07:57:12 pm »
Then terminal work is no problem for you.
There is some way and there are examples with example theme file in /examples.
I didn't dig into it  yet, I like old steam look.
I'm not using SFML nor doing any gamedev lately.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10190
    • View Profile
    • development blog
    • Email
AW: SFGUI
« Reply #359 on: January 06, 2013, 08:19:04 pm »
Yes you can define everything in code or load an external file. I think both ways are shown in the examples. To get an understanding of the capability of the styles, you can look at the BREW headee that sets all the defaults.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/