1
Technical forum / Inventory Scrolling & Inspection
« on: March 10, 2004, 04:43:18 PM »
Ungh, another question! Okay, 2 questions.
First, I'm going back to refining my inventory menu and need to scroll up and down, and see that in the inventory definition there are two buttons already (">" & "<") but to what script are those buttons linked to? I am replacing them entirely with my own graphic buttons but cannot seem to find where the scroll code for them is located. I did notice that there are scroll buttons located in the load game window and traced their properties to the load game script. Do I need to write a script for the inventory buttons concerning the scrolling? If so, where?
Question #2: I want to be able to inspect the objects in my inventory and created a magnifying lens graphic to drag and click over the inventory items. I am going to place it's button off to the side on the inventory menu (under the scroll buttons). Where should I begin to code that? Is the magnifying lens a window (coded in the inventory definition) or an object already loaded into the inventory menu similar to the objects already there for interaction? My goal is that there will be a magnifying lens button that once it is clicked, a graphic (of the magnifying glass) will pop up above the button (OR turn into the mouse cursor itself) and thus be dragged along as the mouse moves over to an inventory object for click-interaction.
I'm really trying to work these things out and have made some really great strides, but alas, I'm only a graphic artist...sigh...
-W
First, I'm going back to refining my inventory menu and need to scroll up and down, and see that in the inventory definition there are two buttons already (">" & "<") but to what script are those buttons linked to? I am replacing them entirely with my own graphic buttons but cannot seem to find where the scroll code for them is located. I did notice that there are scroll buttons located in the load game window and traced their properties to the load game script. Do I need to write a script for the inventory buttons concerning the scrolling? If so, where?
Question #2: I want to be able to inspect the objects in my inventory and created a magnifying lens graphic to drag and click over the inventory items. I am going to place it's button off to the side on the inventory menu (under the scroll buttons). Where should I begin to code that? Is the magnifying lens a window (coded in the inventory definition) or an object already loaded into the inventory menu similar to the objects already there for interaction? My goal is that there will be a magnifying lens button that once it is clicked, a graphic (of the magnifying glass) will pop up above the button (OR turn into the mouse cursor itself) and thus be dragged along as the mouse moves over to an inventory object for click-interaction.
I'm really trying to work these things out and have made some really great strides, but alas, I'm only a graphic artist...sigh...
-W