You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Removing anything related to the gui. I gonna make the console adapt itself to the situation of the room. Still didn't figured out how I will bring the red shape with the cross...
- Removed dynamic positions from the time being.
- You can now do every type of click you want on the instance followers.
- Optimized a bit the drawing steps.
-
if point_in_rectangle(mouse_x,mouse_y,Instance_to_track.bbox_left,Instance_to_track.bbox_top,Instance_to_track.bbox_right,Instance_to_track.bbox_bottom){
104
105
hover = true;
105
106
}
106
107
else{
107
108
hover = false;
108
109
}
109
110
}
110
111
112
+
113
+
111
114
//Follows the mouse cursor
112
115
if (focus){
113
116
hover = true;
114
-
xx = -mx + object_main_console.x_mouse;
115
-
yy = -my + object_main_console.y_mouse;
116
-
//Clamp the values to the border of the screen.
117
-
xx = clamp(xx,((__spse_string_size(Instance_name)/2)+2),display_get_gui_width()-((__spse_string_size(Instance_name)/2)+2));
118
-
yy = clamp(yy,7,display_get_gui_height()-7);
117
+
xx = -mx + mouse_x;
118
+
yy = -my + mouse_y;
119
+
if object_main_console.View != -1{
120
+
//Clamp the values to the border of the screen.
121
+
xx = clamp(xx,((__spse_string_size(Instance_name)/2)+2),view_wview[object_main_console.View]-((__spse_string_size(Instance_name)/2)+2));
0 commit comments