Help with Unresponsive Inventory Window (SOLVED)

Started by lsb, Sat 07/02/2009 23:09:55

Previous topic - Next topic

lsb

Hi,

I've been having trouble getting my custom inventory gui to work properly. The cursors change correctly when the buttons are clicked. for example:

function btnInvLook_OnClick(GUIControl *control, MouseButton button)
{
    mouse.Mode = eModeLookat;   //changes icon to look
}

causes the look button in the gui to change the cursor into look mode so you can look at objects. That part works fine. My inventory objects also appear in the inventory correctly when I pick them up as well. However when I try to do something like say:

function iCoathanger_Look()
{
   
    Display("It's a coat hanger.");
   
}

nothing happens.

I have "handle inventory clicks in script" set to true. The itemheight and itemwidth for my inventory matches the sizes of the inventory sprites I use as well. I dunno what else to try and was hoping someone would have any ideas. any help would be appreciated.

Pumaman

Change "handle inventory clicks in script" to false. It's a rather misleadingly named option, that actually means that you want to override the built-in AGS handling of inventory clicks. When it's set to true, you have to manually process the click in the on_mouse_click function instead.

lsb

Wow, it worked! I could've swore I had it set to false before and it didn't work, but whatever. It's all good now, thanks!  ;D

SMF spam blocked by CleanTalk