-
Notifications
You must be signed in to change notification settings - Fork 4
1. Getting Started
As with most assets and frameworks, you must initiate the scripts for the system to work. Call this before anything else, only needed once per game:
GMUI_Init();
Currently, you should also check or modify the GMUI_Settings() to specify the Control object and Surfaces settings.
After initiated, we can create a new instance of GMUI which includes a script of controls in layers and groups. Specify the object used for controlling an instance:
newGMUI = GMUI_Create(GMUI_Object,Your_Form_Script,16,0);
// e.g. newGMUI will have id of 1, and a grid size of 16x16
The next step is simple. You have to place the draw event scripts for the instance of GMUI, and the "control" object, used in each of the controls created from your form. IN OBJECT: GMUI_Object
GMUI_DrawEvent();
IN OBJECT: GMUI_Control
GMUI_ControlDraw(true);
// e.g. True to include drawing, false to only execute functionality
And that's it! Now you can write your "Form Script" to define all of the controls you would like in your game.