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

Author Topic: Sassy GUI  (Read 6948 times)

0 Members and 1 Guest are viewing this topic.

Verra

  • Newbie
  • *
  • Posts: 23
    • View Profile
Sassy GUI
« 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.



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.
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
« Last Edit: August 06, 2015, 11:26:57 pm by Verra »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Sassy GUI
« Reply #1 on: August 06, 2015, 10:29:46 am »
Nice! ;)

How much can the style be modified?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

victorlevasseur

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Re: Sassy GUI
« Reply #2 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
« Last Edit: August 06, 2015, 02:21:50 pm by victorlevasseur »

Verra

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Sassy GUI
« Reply #3 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
« Last Edit: August 06, 2015, 10:54:20 pm by Verra »

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Sassy GUI
« Reply #4 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!
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

DingusKhan

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Sassy GUI
« Reply #5 on: August 13, 2015, 06:05:02 pm »
SASSY: Straight-forward And Super Simple... Yeah...

Hydra

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: Sassy GUI
« Reply #6 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".

Satus

  • Guest
Re: Sassy GUI
« Reply #7 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

Verra

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Sassy GUI
« Reply #8 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.

JackPS9

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Sassy GUI
« Reply #9 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?
« Last Edit: August 31, 2015, 12:57:47 am by JackPS9 »