Inventory - Having To Select The Pointer Arrow

Started by timmle, Wed 30/07/2008 22:33:51

Previous topic - Next topic

timmle

I've changed the inventory so it is permanently at the bottom of the screen using the 'Normal' command.

I want the inventory to act the same way as if in the game window itself.

I have a crosshair icon as the walk to icon, and pressing right click over and over scrolls through the different possibilities as deafult.

I would like to use my 'eye' icon in the inventory to analyse the object instead of having to click on the magnifying glass in the inventory, and i would like to use my crosshair (which is used for walk to) to pick up the object to use it.

How can i apply these commands into the inventory as well?

Khris

I explained in your other thread how to replace the right-click cycling by an auto cursor.
You'll want the same for your inventory, right?
I'll get back on this tomorrow, or somebody else will.

Ishmael

You'll need to set the Handle inventory clicks in script global preference to true, and use the eMouseLeftInv and eMouseRightInv enums to check for clicks in on_mouse_click, and put the appropriate actions there. But since ProcessClick goes through GUIs you'll need to find out which item is under the cursor and run the appropriate interaction on it directly.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SMF spam blocked by CleanTalk