I’m creating a full GUI Library wich i called FPGUI. It’s not finished and pretty unestable but there are some parts that i think can help to other people (especially the components or the GUIText).
This library have two ways to work (you can use both at the same time but they work independetly). The first one you can call directly the different components you want and add them in a world like a normal Entity. The second one is using an Skin.
Using components directly
You only need to call a constructor and you have an entity.
You can handle differents events by setting the function that you want to be called as a variable (depending of the variable, you’ll handle a different event).
Using skins
This part is not finished yet.
The way it works is importing an skin wich have an encoded data on the top (i’ve planned to make an editor). You only need to embed the .png file in a class and use it to create a new class (no more arguments needed).
To get components from an Skin, you simply use public function that have less arguments.
I would apreciate any suggestion, idea or help for my project.
GitHub link of the project