Nice, does it work with tilemaps or just objects?
ced30
Creator of
Recent community posts
Hi, sorry for the delayed answer, i'm just back from vacations.
First of all, create a script file that will hold your callback functions, then, create the callback function itself, inside of it.
(Basically, the script files are treated like containers for callback functions, you don't call the file itself, but the functions inside of it).
For example:
function MyCallbackFunction() {
/// That's the body of your function
}
Then, when you add elements to your menu, just pass the name of the function, since it's inside a script, you can call it from anywhere, the name will be orange (a way to make sure you type it right).
Example:
var _main = Add_Group("Main Menu");
_main.Add_element(GGL_sub_button, "DoSomething", MyCallbackFunction, _dx, 0, _w, _h);
Hi there,
Thanks for the feedback, i found the bug with the panels, somehow, the sub panel doesn't find it's own sprite when trying to rescale, i made a quick and dirty fix by setting the sprite to a default value if not found, along with an error message (which you can delete if you prefer).
I'll investigate further to make it clean, in the meantime, it should work as expected.
Regarding the fonts, the "font" variable on the menu object is the font used to draw the menu's name, not the sub menu elements,
i added 3 functions to GGL_sub_container to handle the fonts:
- Set_all_fonts(font) => sets the font of the container's label and all of it's sub elements
- Set_sub_font(element, font) => sets the font of a particular element inside the container
- Set_all_sub_fonts() => sets the labels of all the sub elements inside the container
I'm not familiar with stanncam but i'll look into it, GGL relies on display_get_gui_width() and display_get_gui_height() to calculate the center position, could your camera modify the GUI size perhaps?
GGL_v1.10.0 is awailable with the aforementioned fixes!
Hey, you can drop the GUI elements directly into your scenes or you can build GUI menus by inheriting from "parent_GGL_menu",
There's a demo menu located in demo room 12, called "obj_GGL_demo_menu_inherited", check out the create event of this object, the whole menu creation process is commented.
Let me know if you have trouble setting it up.
Hey, i just found a bug that makes the app crash, on the "Burst" tab, right click on any control, then click cancel on the popup.
############################################################################################
ERROR in
action number 1
of Other Event: User Defined 2
for object obj_fl_slider_knob:
(null) argument 1 incorrect type (undefined) expecting a Number (YYGR)############################################################################################
gml_Object_obj_fl_slider_knob_Other_12 (line 4)
gml_Object_obj_fl_slider_Other_12 (line 7)
gml_Object_obj_ui_slider_hor_Step_0 (line 6)