Inventory GUI not working [SOLVED]

Started by En garde!, Thu 07/04/2005 15:10:19

Previous topic - Next topic

En garde!

Okaay... now I'm trying to make an inventory GUI. It's in mouse ypos, it has an icon to pop up an iconbar, and an inventory window.



When the player clicks on a hotspot, I make it run a script on any click to give the character an inventory item.

Guess what. Nothing happens.

So... what is this inventory window missing? Here's the script for the GUI

  if (interface == INVENTORY) {
    // They clicked a button on the Inventory GUI
   
     if (button == 0) {
      // They pressed the OK button, close the GUI
      GUIOn (ICONBAR);
      SetDefaultCursor();


What am I supposed to add. Feel free to tell me how stupid I am as long as you explain this to me.



Sam.

what i "THINK" it might be, is that your inventory window, is not tall enough to contain the items, the inventory boutnds are too big and therefore will not display your items, at the start of your script (of memory) put SetInventoryBounds(height, width) and set height to a pixel smaller than the height of your inventory, also, make sure that all of your inventory items are smaller than the height of your inventory window.
Bye bye thankyou I love you.

En garde!


SMF spam blocked by CleanTalk