Popup menu style verb coin confusion

Started by Sam., Thu 24/03/2005 20:55:42

Previous topic - Next topic

Sam.

I know, i know, descriptive titles, but htats the best I can do. I am struggling with code at the moment, i am working on an interface for my teams game, but I've hit a coding wall. The basic idea is this:

The user clicks once, left, to walk to a place, if the user want to interact with this object, they right click, a "windows" style menu comes up with their options (look use talk inventory), if they click on one of the verbs, this action is caried out, if they choose inventory, the inventory screen comes up and they select and item. Once an item is selected, it is automatically used. I can get the popup to turn on, in the right place. i can get the inventory window to  turn on, what i CAN't do, is to get the actions to happen automatically, all i can do is to change the cursor mode.

Helps please!
Bye bye thankyou I love you.

Goot

To get the popup in the right place, use SetGUIPosition.

Why are you changing the cursor mode if the action is supposed to happen automatically?

You probably want to use ProcessClick(mouse.x,mouse.y,MODE);
where mode is the cursor mode number that corresponds with the action you want to happen. You can put the number or MODE_LOOK, MODE_USE, MODE_TALK, and MODE_USEINV (I think).

SMF spam blocked by CleanTalk