Quote from: strazer on Thu 03/02/2005 01:57:06
Try this:Code: ags function on_event(int event, int data) { Ã, //... Ã, Ã, if (event == GUI_MDOWN) { // if mouse button pressed when over a GUI Ã, Ã, if (IsButtonDown(RIGHT)) { // if right mouse button pressed Ã, Ã, Ã, on_mouse_click(RIGHT); // call on-mouse-click function for default right mouse button action Ã, Ã, } Ã, } Ã, //... }
and make sure on_event is located after the on_mouse_click function in the script so it can call it.
I'm afraid I don't follow you... Where in the global script am I supposed to put this? I tried putting it "after" the on_mouse_click function, but I have a feeling I really don't know what I'm doing... (How) does this correspod with the show_inventory_window() function?
Do I need a show_inventory_window() function if I want AGS to handle inventory clicks in script? Do I want AGS to handle inventory clicks in script?? *Sigh*, I've got so many questions inside my head right now...
Here's the entire global script, hoping for further directions... : global.txt