SCUMM VERBGUI Template Issues

Started by xenogia, Wed 13/05/2009 02:48:25

Previous topic - Next topic

xenogia

I have this bizarre issue where occasionally you cant right click into the inventory window.  I notice it works when you press tab.

Is it something to do with the eModeWalkTo mode on the mouse, I haven't changed the code at all??

I got it to work by putting Mouse.Mode = eModeWalkTo at the start of each room, bizarre?
But I noticed if the ShowPlayerCharacter property is false then it wont come up either way.

EDIT:
Easy enough resolved.

Instead of having the following:

Code: ags

if (mouse.Mode == eModeWalkto && inventory_disabled == false){	// and you're not holding an active item or something


I used:

Code: ags

if (inventory_disabled == false) {


That seemed to do the trick

Trent R

What's your script look like?

Quote from: Xenogia on Wed 13/05/2009 02:48:25I got it to work by putting Mouse.Mode = eModeWalkTo at the start of each room, bizarre?
Also, did you know you can create an on_event in the global script to handle this instead of having to put the same code in every room (unless you already have it set up globally)

~Trent
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

xenogia

Tis all good don't worry about it, I even removed that eModeWalkTo so it isn't a problem.  But thanks on the on_event in the global script that will come in handy.

SMF spam blocked by CleanTalk