Fabseven
Member
Hello there,
As a windev programmer i wanted to make simple button objet.
So i created a obj_button with a spr_button (something rectangular with a text inside)
I used mouse_over , mouse_pressed and others event to make it a real button but it only work on the draw level not on the gui level.
I mean : if i use the draw gui event then i have to draw the objet myself with draw_sprite and others and the mouse_over and mouse_pressed wont work because the position of the gui <> position of the object.
Is there no ways to make a simple button in the gui event?
As a windev programmer i wanted to make simple button objet.
So i created a obj_button with a spr_button (something rectangular with a text inside)
I used mouse_over , mouse_pressed and others event to make it a real button but it only work on the draw level not on the gui level.
I mean : if i use the draw gui event then i have to draw the objet myself with draw_sprite and others and the mouse_over and mouse_pressed wont work because the position of the gui <> position of the object.
Is there no ways to make a simple button in the gui event?