First release of GUIFramework - v0.0.1.0


Hello,

After a few prototype games in GameMaker, i realised i had quite a bit of common code that i was using when working on GUI's. So i've started collecting them together, making it easier for me to share fixes/solutions between projects (and for future projects). So thought id share, this basic version.

There are of course other GUI libraries/extensions out there, but i wanted to something quite light, so my current solution is just one GUI object that i make child objects from for any GUI windows i need, and that's it apart from scripts.

----------------------
Usage
----------------------

Create a child item of oGUI for each GUI window you require. By default GUIWindow[] array is created.

You can create addition windows, under one object if you prefer, just
create an array like so:-

MyExtraGUIWindow[eGUIInfo.numattributes] = 0;
InitGUIWindow(MyExtraGUIWindow);

Add/Alter scripts to use this array rather than the default GUIWindow array (in fact i might alter/add scripts to do this).

To import into your own projects just select the following folders

Sprites\nirisGUI - Several placeholder sprites (do change)
Scripts\nirisGUI - Several scripts
Objects\nirisGUI - 1 object

----------------------
Examples
----------------------
In the demo project take a look these examples:-

oScores - just a window that can show game info
oControls - a window that has a button on it (detects mouseover), checking for lmb, which shows the popup gui
oPopup - a window that has a close window button, checking for lmb

----------

Hope it helps anyone with their GUI's. I know it took me a little while to get my head around certain aspects .   That's not to say my framework doesn't have any issues, but generally ok with its use in my little prototype games. Do let me know if there are bugs, or things i'm not doing the right way!! :o)  

Cheers

 Nick

Files

GUIFramework-v0.0.1.0.yyz 79 kB
Jun 26, 2020

Get GameMaker GUI Framework - GMS2

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.