Disable all but 'Look' at an Inventory item and keep Look mode

Started by barefoot, Tue 05/04/2011 07:14:57

Previous topic - Next topic

barefoot

Hi

I have an inventory item that I only want to look at.. this causes another GUI to appear.. This works ok.. However, I wish to disable all other clicks for that inv item and to keep the Look mouse mode until it's changed by the mouse right click as normal..

I could of course have the item as a button, if all else fails..

I sure there is a way but have not come across it yet.

cheers if you can assist me

barefoot



I May Not Be Perfect but I Have A Big Heart ..

Khris

Quote from: barefoot on Tue 05/04/2011 07:14:57I wish to disable all other clicks for that inv item and to keep the Look mouse mode until it's changed by the mouse right click as normal..

Again, I'm having a hard time understanding what exactly you want to achieve.
Is your game's inventory permanently visible or is it in a separate window?
What do you mean by "keep the Look mouse mode"; when do you want to keep it? As long as the mouse is over that item?
Please explain what you want do to as if you are talking to somebody who has absolutely no idea what your game looks like or how your interface works, aka us here in the forums.

In general, mouse modes are enabled/disabled using Mouse.Enable(mode)/Mouse.Disable(mode).
Example:
Code: ags
  mouse.DisableMode(eModeInteract);


Also, yes of course there's a solution for your I assume relatively simple problem, but you won't find it if you don't start figuring out how to use the manual.

SMF spam blocked by CleanTalk