add hand icon to inventory?

Started by , Thu 29/07/2004 13:18:28

Previous topic - Next topic

Ashen

WhoIsMonkey@yahoo.com

I'm busy this afternoon, but hopefully I'll be able to get to it at some point this evening, if you want.
I know what you're thinking ... Don't think that.

homey3

I'm trying to email it but it's 55 meg, will your email take that large of an attachment?  It's zipped and everything.  Is there another way to send it?

homey3

#22
After importing the default guis and basically starting over on the guis I got the buttons to now work on the inv.Ã,  However, the cursor goes to the "talk to" cursor when clicked on the hand.Ã,  I know it's using the "talk to" command, but I need the cursor to still look like hand.Ã,  This is pretty easy to do I'm sure I just don't know where to do it.

I'm still trying to figure out how to change the background to black and trying to get the inv items spacing right.

Edit - I had to change the spacing to get it right.  40x22 is NOT the default even though it says it is in the help contents.  Basically the only thing (besides changing the cursor) that remains a problem is the color of the inventory window.  It looks dumb being the same color as the rest.  I've tried the game.sierra_inv_color = 0; and it makes no difference.  I'm not sure what the problem is.

Ashen

To make it use the hand cursor, you need to set the button to run script, and add this to the Inventory section of the interface_click script:

    if (button == 6) {
      SetCursorMode (MODE_TALK);
      SetMouseCursor (2);
    }

As I said, I think game.sierra_inv_color only affects the default GUI, not the one you're using. However, if I'm wrong, colour 0 is transparent, not black. Try game.sierra_inv_color = 16; instead, or import a background image for the GUI.

Glad you're got it mostly working now, though I'm interested - what did you have as the default inventory size, if not 40x22?
I know what you're thinking ... Don't think that.

homey3

#24
Yay!Ã,  It worked.Ã,  Hooray for you.

There's got to be SOME way to change that background color, though!

Edit - nm, I just made a background image for it.  It was a pain, but at least I got it done!  BTW, I have no idea what the actual default is, but it was a lot wider than "22".

Jonathan Grant

SMF spam blocked by CleanTalk