SFML community forums

General => SFML projects => Topic started by: Verra on August 05, 2015, 11:34:17 pm

Title: Sassy GUI
Post by: Verra on August 05, 2015, 11:34:17 pm
Sassy stands for "straight-forward and su-".... well screw it it doesn't stand for anything it's not an acronym anyways! That's how simple it is. Here is a list of words that could be used to describe Sassy: quick, simple, dirty, straight-forward, robust-ish, ugly, unsafe (currently has scary pointers. That's right you heard me).

Sassy is a GUI made for sfml apps. It contains some generic GUI elements and a simple interface for creating new elements. However it doesn't do much of the work for you, basically just override the processEvent/draw methods and go to town. The purpose of this collection is just to make a GUI in as little time as possible. there is no compiled library just a folder with some headers/source.

(http://i.imgur.com/lnNjixT.png)

Current Features:

Planned features:

If you want to get some debug interface up and running quickly I think Sassy might be for you, if you want a sleek UI that players can use, I recommend making something nice and custom. However note that you can still use Sassy for that it'll just require a little more work.

Here's the repo which contains the Sassy source, an example and some other stuff (Debug folder just has a font).
https://bitbucket.org/Verrazano/sassy

Feel free to make suggestions and ask for features. I'll be willing to hear you out.

P.S. Thanks jagoly for the name.
Quote
[01:19:00] <Verra> hmm
[01:19:08] <Verra> need to think of a dumb name for a library
[01:19:16] <Verra> or rather just collection of clases
[01:19:37] <jagoly> call it "SQCC"
[01:19:47] <Verra> what's that stand for?
[01:20:06] <jagoly> Sassy Quick Collection of Classes :D
[01:20:22] <Verra> I like sassy
[01:20:30] <Verra> and so it shall be called sassy
Title: Re: Sassy GUI
Post by: eXpl0it3r on August 06, 2015, 10:29:46 am
Nice! ;)

How much can the style be modified?
Title: Re: Sassy GUI
Post by: victorlevasseur on August 06, 2015, 01:46:32 pm
Hi, nice work ! :)

I'm currently looking for a lightweight GUI for SFML in which the widget can be draw independently (so it doesn't need a "global" class to be constructed at the beginning of the program). Can we draw each elements independently ? For example, I want to draw a textbox, do I need to create a sy::GUI object or can I use directly the Textbox draw method ?

I have seen some problems : almost everything in the public scope and you use std::string instead of sf::String (to have a better support for Unicode). I may do some pull requests to improve these things (if you want) for your project. :)

Thanks
Title: Re: Sassy GUI
Post by: Verra on August 06, 2015, 09:11:27 pm
Nice! ;)

How much can the style be modified?

Currently the theme only modifies colors, outline thickness and font.

Hi, nice work ! :)

I'm currently looking for a lightweight GUI for SFML in which the widget can be draw independently (so it doesn't need a "global" class to be constructed at the beginning of the program). Can we draw each elements independently ? For example, I want to draw a textbox, do I need to create a sy::GUI object or can I use directly the Textbox draw method ?

I have seen some problems : almost everything in the public scope and you use std::string instead of sf::String (to have a better support for Unicode). I may do some pull requests to improve these things (if you want) for your project. :)

Thanks

You can have as many or as few sy::GUI components as you like. They are only there for convenience. Feel free to make a pull request, I am going to be updating the repo pretty frequently at least for the next week or two.

http://paste.unixcube.org/k/f50dbc
Title: Re: Sassy GUI
Post by: Hapax on August 07, 2015, 04:40:23 pm
My favourite part of this thread is:
Sassy stands for "straight-forward and su-".... well screw it it doesn't stand for anything it's not an acronym anyways!
Title: Re: Sassy GUI
Post by: DingusKhan on August 13, 2015, 06:05:02 pm
SASSY: Straight-forward And Super Simple... Yeah...
Title: Re: Sassy GUI
Post by: Hydra on August 17, 2015, 08:32:38 pm
Well. I searched on Google for synonyms and though about it and I managed to get this:

Simple Advanced Sleek SFML

SASS

We just need something for the "Y".
Title: Re: Sassy GUI
Post by: Satus on August 17, 2015, 10:57:07 pm
I recently implementer basic View class and Button inherited from it for my main menu. Almost the same code, actually.  :D
Title: Re: Sassy GUI
Post by: Verra on August 18, 2015, 12:47:31 am
Sassy will never be a an acronym, it's just a name. :P
Yea I'm not surprised that it's similar to many other peoples button/gui code, it's probably the most straight forward way I could think of doing it.
Title: Re: Sassy GUI
Post by: JackPS9 on August 27, 2015, 06:59:08 pm
So what features are you currently working on for this?

Edit: (8/30/2015)
Any chance of making it that a window doesn't have a name?