SFML community forums
General => SFML projects => Topic started 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:
- Element interface
- The usual gui elements: Buttons, Sliders, Text-boxes, etc.
- Color theming
Planned features:
- Making creating new GUIs even easier!
- Finding ways to comply with Google's Material Design (That might make it to pretty).
- Adding new default elements: Combo box, color picker, etc.
- Fixing and adding bugs
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.
[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
-
Nice! ;)
How much can the style be modified?
-
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
-
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
-
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!
-
SASSY: Straight-forward And Super Simple... Yeah...
-
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".
-
I recently implementer basic View class and Button inherited from it for my main menu. Almost the same code, actually. :D
-
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.
-
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?