Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ghostlady on Sun 06/04/2025 00:28:33

Title: How to Not Show Hotspots with Cursor When Inventory Box is Open
Post by: Ghostlady on Sun 06/04/2025 00:28:33
Hi, currently when the inventory box is open and it's sitting in the middle of the screen but on some hotspots, if I move the mouse around within the inventory box, and it rolls over a hotspot, it changes the cursor to the Interact graphic.  Here is the code I use in my global script.  How this works is that the Inventory box opens and there should be an "arrow" cursor.  When the mouse rolls over an inventory item, the cursor graphic changes to the interact pointer. I shouldn't be seeing hotspots within the inventory box.


  // ** CUSTOM INVENTORY WINDOW
  gInventory.Visible = true;
  // switch to the Use cursor (to select items with)
  mouse.Mode = eModeInteract;
  // But, override the appearance to look like the arrow
  mouse.UseModeGraphic(eModePointer);