Author: gmsgui

Sample Code Snippets

Sample Code Snippets

Button uiTextValue=’Home’; uiTextColor=c_navy; uiYscale=2.0; uiXscale=2.0; uiAlign=fa_center; uiAlignV=fa_middle; uiDrawBackColor=false; uiButtonSprite=spr_home; uiSpriteAlign=fa_center; uiSpriteAlignV=fa_middle; uiSpriteScale=0; uiDownColor=c_yellow;   Toggle Buttons uiAlign=fa_center; uiAlignV=fa_middle; uiDrawBackColor=false; uiSpriteAlign=fa_center; uiSpriteAlignV=fa_middle; uiSpriteScale=0; uiBackColor=c_white; //blend with white when down (use sprite) uiIsToggle=true;uiHoverMode=0; uiButtonSprite=spr_volume; uiSpriteIndex=0; uiButtonSpriteDown=spr_volume;...

Animations

Animations

Animations Button and Label Animations uiAnimated=false; The best method to see it in action is through the sample project (button animation room). That way you can play with different speed and rotations. To animate...

Button Hovering

Button Hovering

Button Hovering Button hover is what to do with Button Widgets when you mouse over them. You have the option of setting uiHoverMode to determine what to do. uiHoverMode=1; 0 = None (no hover)...

Widget Sounds

Widget Sounds

Widget Sounds The widget library supports a simple method in playing sounds on presses. uiClickSound = snd_yoursound; If you set this on your widget then it will automatically play the sound for the widget....

Anchoring

Anchoring

Anchoring Anchoring allows you to setup a Parent/Child relationship for GUI widgets. For example, we could create a ui_panel widget (Parent, lets call the instance “myInstPanel”) and then we create many controls on the...

Custom Draw Scripts

Custom Draw Scripts

Custom Draw Scripts This is an advanced section, that you should be comfortable with GML/scripts to accomplish. It is a powerful feature that allows you draw within a cell/line, and have the widget handle...

ui Defaults

ui Defaults

ui_defaults   All objects descend from ui_defaults. An advantage of that is you can set the defaults for your project like uiTextColor, uiFont, uiBackColor by changing it within the create method of the ui_defaults...

ui Button Ani

ui Button Ani

ui Button Ani Button widget have abilities to draw sprites at different locations within the instance size, you can have the a background drawn or be transparent. It supports text alignment, toggle option and...

ui Button

ui Button

ui Button This button widget is a ‘lite’ version of the ui_button_ani. It doesn’t support animations and such, but if you need a very fast button without the overhead of the animated version then...

ui CheckBox

ui CheckBox

ui Checkbox Checkbox widget that will display a string and a checkbox sprite to the right of the text. The user can select or deselected the checkbox on mouse press. The current sprites used...