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

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

0 Members and 5 Guests are viewing this topic.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: SFGUI
« Reply #300 on: April 05, 2012, 09:17:53 am »
Ah, forgot to reply to Nexus:
I'm not sure what exactly you're talking about. What does the macro do? (example maybe?)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFGUI
« Reply #301 on: April 05, 2012, 09:30:32 am »
Quote
If you, Laurent, are reading this: I'd suggest to add a variable that tracks the content of SFML_STATIC_LIBRARIES for FindSFML. As soon as it changes the script should automagically delete all SFML_*_LIBRARY_* variables so that they're searched for again. I guess I'll do the same for FindSFGUI.
Ok, just let me know when it's done ;D
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: SFGUI
« Reply #302 on: April 05, 2012, 02:57:13 pm »
When you write
void DoSomething( FAKE_DOC(shared_ptr<Button>, Button::Ptr button) );
the compiler sees the code like
void DoSomething( shared_ptr<Button> button )
and thus doesn't require the definition of Button, while Doxygen generates
void DoSomething( Button::Ptr button )
(if you add the macro also in Doxygen). As mentioned, ugly, but probably the only way ;)

For the specific case of shared_ptr<X> vs. X::Ptr, you could even write a shorter macro:
#define PTR(Type) shared_ptr<Type>

void DoSomething( PTR(Button) );
« Last Edit: April 05, 2012, 02:59:02 pm by Nexus »
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: SFGUI
« Reply #303 on: April 05, 2012, 03:00:46 pm »
Ah got it now. It's indeed ugly, but can save some includes. Thanks. :)

player931402

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Re: SFGUI
« Reply #304 on: April 15, 2012, 09:50:24 pm »
SFGUI support the lastest version of SFML ? ( Relased today ? )

Sorry for the question but I work with SFML and SFGUI is strongly needed.

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: SFGUI
« Reply #305 on: April 15, 2012, 10:15:19 pm »
Yeah the RC released today is based of the current master at GitHub which should work the last time I checked. What speaks against downloading SFGUI and trying it out yourself? Either it's you or me who finds out first whether it works or not ;) As always if you find anything you have a feeling is a bug don't mind reporting it, favorably on our forum in other to reduce activity in this one thread.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

Drak

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: SFGUI
« Reply #306 on: June 12, 2012, 02:19:11 pm »
I was skimming through the thread to find an answer, and I checked the docs. But was unable to find what I was looking for.

How do you load a *.theme file? I noticed the entire GUI looks Steam by default  ::)
I don't wish to change the GUI at runtime, but when the program loads.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: SFGUI
« Reply #307 on: June 12, 2012, 03:09:24 pm »
You obviously didn't spent that much time in looking for it.
I guess you'll find it in the documentation too, but it's easier just to look at the examples and you would have found this:
m_desktop.LoadThemeFromFile( "data/example.theme" );
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Rexou

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
Re: SFGUI
« Reply #308 on: June 12, 2012, 03:35:07 pm »
Hi guys,

Quote
How do you load a *.theme file? I noticed the entire GUI looks Steam by default  ::)

After reading the documentation and the samples, i guess it would be something like this :

sfg::Context::Get().GetEngine().LoadThemeFromFile("/path/to/your/file");

Btw, i was wondering, have you got any idea about the release date of the new engine ? BREW is efficient but i had like to customize the differents widgets with images.

You're doing a great and useful job guys, keep it up :)
« Last Edit: June 12, 2012, 03:38:44 pm by Rexou »

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: SFGUI
« Reply #309 on: June 12, 2012, 05:14:46 pm »
Hi guys,

Quote
How do you load a *.theme file? I noticed the entire GUI looks Steam by default  ::)

After reading the documentation and the samples, i guess it would be something like this :

sfg::Context::Get().GetEngine().LoadThemeFromFile("/path/to/your/file");
That would only apply the theme to the context active at that point in time. If you use sfg::Desktop(s) you might have multiple contexts, in which case you would use m_desktop.LoadThemeFromFile( "/path/to/your/file" ); just like in the example eXpl0it3r provided a link to (it isn't really an example, more a test bench).

Btw, i was wondering, have you got any idea about the release date of the new engine ? BREW is efficient but i had like to customize the differents widgets with images.
Bob as it is known is being developed by Iteem. If you want more info or just want to motivate him to work harder you can drop by IRC. With Bob it is possible to theme widgets using images as you have mentioned. Iteem ran into difficulties continuing development after we made the switch to VBO-based rendering. Further he had real-life obligations that prevented him from having much free time right after we made the switch so Bob has been hanging in the air since.

You're doing a great and useful job guys, keep it up :)
Nice to know another person who uses the library. We should have a guestbook-like feature somewhere but Tank is reluctant to make unneeded changes to the website ;).
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: SFGUI
« Reply #310 on: June 14, 2012, 06:50:09 am »
Quote
Nice to know another person who uses the library. We should have a guestbook-like feature somewhere but Tank is reluctant to make unneeded changes to the website.
It's generally hard to make me working on any website things, as websites are boring. ;)

Mars_999

  • Full Member
  • ***
  • Posts: 103
    • View Profile
    • Email
Re: SFGUI
« Reply #311 on: June 14, 2012, 11:45:15 am »
Quote
Nice to know another person who uses the library. We should have a guestbook-like feature somewhere but Tank is reluctant to make unneeded changes to the website.
It's generally hard to make me working on any website things, as websites are boring. ;)

Amen!!!

The Terminator

  • Full Member
  • ***
  • Posts: 224
  • Windows and Mac C++ Developer
    • View Profile
Re: SFGUI
« Reply #312 on: July 21, 2012, 03:47:54 pm »
Is SFGUI available on Mac? (Xcode)
Current Projects:
Technoport

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: SFGUI
« Reply #313 on: July 21, 2012, 03:59:26 pm »
It should compile on Mac. We don't use any OS dependent headers and CMake should take care of generating the build configuration.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

The Terminator

  • Full Member
  • ***
  • Posts: 224
  • Windows and Mac C++ Developer
    • View Profile
Re: SFGUI
« Reply #314 on: July 21, 2012, 05:22:10 pm »
I have been trying to use Cmake to compile it with Xcode, but I keep getting these weird errors like "does not appear to have cmakelists". I'm also very confused on where to point the source code part of it to. Help anyone?
Current Projects:
Technoport