How do I cycle mouse modes in the inventory screen? [solved]

Started by HandsFree, Tue 23/08/2011 16:29:28

Previous topic - Next topic

HandsFree

In the default game template, the cursor goes through all available cursors by right clicking, but that doesn't happen when the inventory gui is visible.
I take it it's this bit from the on_mouse_click function:
else if (button == eMouseRight || button == eMouseWheelSouth) mouse.SelectNextMode();

Is there a way to create the same behaviour when the inventory is visible?

thanks

Khris

I more or less answered this here:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=44165.msg588314#msg588314

In General settings/Inventory, set the "Override..." option to true.
Now you can use eMouseLeftInv and eMouseRightInv.

In addition, the inventory GUI pauses the game if its visibility is set to that mode (check its properties).
So you'd have to put "if (button == eMouseLeftInv)" before "[else] if (IsGamePaused())"

HandsFree

Ok, thanks.
I need to look at this some more, but I think I can get it working now.

SMF spam blocked by CleanTalk