Skip to content

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GMUI-Kit

Interface control components for Game Maker(http://yoyogames.com/)
HTML5 Example: http://emanf.3owl.com/gmui-kit/beta/ex-0.2.2/
License: GPL v3.0 (http://www.gnu.org/licenses/gpl-3.0.html)

How To Use?

GameMaker:Studio
1. Run GMS
2. go to Import Tab.
3. Import GMUI-Kit.gmz
4. go to "Objects" directory and Copy how many control u need.
5. Use and Enjoy.

List of Control in Last Version:

  1. Button
  2. CheckBox
  3. Label
  4. TextBox
  5. ListBox
  6. Panel
  7. Window

Button:(Property)


control_type // Don't Change.(ReadOnly)
control_width // (ReadOnly)
control_height // (ReadOnly)
text // (String)
text_color // (Color)
text_alpha // (Number) between 0-1
font // (Font). Sets the font. Use -1 to set the default font (Arial 12)
font_halign // Sets the horizontal alignment. Choose one of: fa_left , fa_center , fa_right
font_valign // Sets the vertical alignment. Choose one of: fa_top , fa_middle , fa_bottom
owner // can be a obj_Window or obj_Panel or noone
x_owner // child x on owner
y_owner // child y on owner

CheckBox:(Property)


control_type // Don't Change.(ReadOnly)
control_width // (ReadOnly)
control_height // (ReadOnly)
text // String
text_color // Color
text_alpha // Number between 0-1
font // Font
font_halign // Sets the horizontal alignment. Choose one of: fa_left , fa_center , fa_right
font_valign // Sets the vertical alignment. Choose one of: fa_top , fa_middle , fa_bottom
checked // ture or false
x_move // Left Margin for Text.
y_move // Top Margin for Text.
owner // can be a obj_Window or obj_Panel or noone
x_owner // child x on owner
y_owner // child y on owner

Label:(Property)


control_type // Don't Change.(ReadOnly)
control_width // (ReadOnly)
control_height // (ReadOnly)
text // (String)
text_color // (Color)
text_alpha // (Number) between 0-1
font // (Font). Sets the font. Use -1 to set the default font (Arial 12)
font_halign // Sets the horizontal alignment. Choose one of: fa_left , fa_center , fa_right
font_valign // Sets the vertical alignment. Choose one of: fa_top , fa_middle , fa_bottom
text_width_limit // Set Limit Width For Label. Example: set 50 ("TestTestTestTest" -> "TestTes...")
owner // can be a obj_Window or obj_Panel or noone
x_owner // child x on owner
y_owner // child y on owner

TextBox:(Property)


control_type // Don't Change.(ReadOnly)
control_width // (ReadOnly)
control_height // (ReadOnly)
text // (String)
text_color // (Color)
text_alpha // (Number) between 0-1
caret_char // Caret Char. Example: "|"
focus // true or false. if its true u can type Text.
text_limit // Set Limit Char in TextBox. Example: set 10. You can just Put 10 characters in TextBox.
text_width_limit // Set Limit Width. Example: set 500. TextWidth in TextBox have to be < 500. if was larger You can't type any more.
x_move // Left Margin for Text.
y_move // Top Margin for Text.
font // (Font). Sets the font. Use -1 to set the default font (Arial 12)
font_halign // Sets the horizontal alignment. Choose one of: fa_left , fa_center , fa_right
font_valign // Sets the vertical alignment. Choose one of: fa_top , fa_middle , fa_bottom
owner // can be a obj_Window or obj_Panel or noone
x_owner // child x on owner
y_owner // child y on owner
skin_sprite // set noone to draw default sprite(sprite_index);
skin_back_color // set background color if u use skin.

ListBox:(Property, Function)

Property:
control_type // Don't Change.(ReadOnly)
control_width // (ReadOnly)
control_height // (ReadOnly)
selected_item_index // Index of Item is Selected.
selected_item_value // Value of Item is Selected.
size // Number of Items.
show_number // Number of Items to Show.
focus // true or false. if its true u can use ArrowKey(UP&DOWN) or MouseWheel (UP&DOWN) for change Selected Item.
delay // Set Delay based of Room Speed for KeyboadKey (Up&Down).
text_color // (Color)
text_alpha // (Number) between 0-1
font // (Font). Sets the font. Use -1 to set the default font (Arial 12)
font_halign // Sets the horizontal alignment. Choose one of: fa_left , fa_center , fa_right
font_valign // Sets the vertical alignment. Choose one of: fa_top , fa_middle , fa_bottom
x_move // Left and Right Margin for Text.
y_move // Top and Bottom Margin for Text.
owner // can be a obj_Window or obj_Panel or noone
x_owner // child x on owner
y_owner // child y on owner
skin_sprite // set noone to draw default sprite(sprite_index);
skin_back_color // set background color if u use skin.

Function:
listbox_add_item (obj ListBox, var Item)
listbox_remove_item (obj ListBox, int Index)
listbox_change_item_data (obj ListBox, int Index,var Value)
listbox_select_index (obj ListBox, int Index)

Panel:(Property, Function)

Property:
control_type // Don't Change.(ReadOnly)
control_width // (ReadOnly)
control_height // (ReadOnly)
owner // can be a obj_Window or obj_Panel or noone
x_owner // child x on owner
y_owner // child y on owner
gap // gap between childs
childs_width // width of childs
childs_height // height of childs
item_scale_mode // true or false, if true: childs_width and childs_height changed to bigget width and height of childs.
item_alignment // Choose one of: ALIGNMENT_HORIZONTAL, ALIGNMENT_BOTH, ALIGNMENT_VERTICAL
border_show
border_color
border_width

Function:
panel_add_child (obj Panel, obj Child)
panel_update (obj Panel)

Window:(Property)


control_type // Don't Change.(ReadOnly)
control_width // (ReadOnly)
control_height // (ReadOnly)
drag_x // x1 of Drag Area(Rectangle)
drag_y // y1 of Drag Area(Rectangle)
drag_width // width of Drag Area(Rectangle)
drag_height // height of Drag Area(Rectangle)
skin_sprite // set noone to draw default sprite(sprite_index);
skin_back_color // set background color if u use skin.
skin_header_height // set header height to window

About

Interface control components for Game Maker

Resources

Stars

4 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors