Alpha GUI
Attention! 👉Starting November 2024, BlitzCoder.org will now be BlitzBasic.org.
Tweet blitz3d gui-libs toolbox
AlphaGUI is a graphical user interface (GUI) for the programming language Blitz Basic. With it you can easily create a nice looking interface for your game or perhaps application.
Feel free to modify this library anyway you like, as long as you give me credit :-)
Author: Jeppe Nielsen
You start by graphically creating/designing your GUI in the AlphaGUI editor, where you draw buttons, sliders, images, textboxes and other gadgets. These gadgets are highly customizable, through the use of templates. Your GUI can have its own unique look.
After finishing your GUI, you will need to control it in your game/application. This is done using an include file, which you simply add to your existing code with the blitz command "include". When this include file is included you will have access to the commands/functions, which will then allow you to load and interact with your gui in your game or application.
A few simple steps, are only needed to get a created gui to function inside a blitz program:
-
Include the "AlphaGUI_include.bb" file into your code.
-
call alphainit(), to initialize the gui system, must be after your Graphics command.
-
add a alphaguiload("testgui.gui") to load the gui into the program.
-
Call the alphagui() function each update to allow user to interact with the gui.
This is what is needed to add the GUI to your program, of course you can do a lot more. In the documentation, included in the download, you can see all the functions available to control the gui from within blitz.
Reply To Topic (minimum 10 characters)
Please log in to reply