2 Questions

Started by dahui58, Tue 28/09/2010 17:02:27

Previous topic - Next topic

dahui58

Hey I have 2 questions if anyone can help with either that'd be great.

1. For my inventory items if you click it anywhere other than the top left corner of the icon it doesn't become the active inventory item, for some reason you have to click the very top left of the image. Is this because my image is too big and needs to be scaled down? Is there a way I can change it so clicking the image anywhere will select it, or at least in the very centre rather than the top corner.

2. Normally text made with the "Display" function comes in a box right, well I set it to appear as Dialogue from the character in the general settings, so now whenever I click things it looks like he is thinking or saying it, which is what I want. However when I look at items in the inventory the dialogue is hidden by the inventory. IS there anyway to make a specific display use the box rather than dialogue like I have set it to. I would like to keep the setting but want to make specific boxes for certain things.
Such as Display.Box ("blah blah."); or whatever.

Thanks :D

Khris

1. I answered this in your other thread; you'll have to change the ItemWidth and ItemHeight setting in your InventoryWindow.
The thing is, if those are way smaller than the sprites you're using, the items should all overlap and be hard to click on anyway, not sure why that doesn't bother you or if it means something else is wrong.
On the other hand, AGS might use the sprite dimensions to place the items but only react to clicks in the top left corner then.

2. Change the setting back, then use player.Say("Blah"); when you want text over the character's head and Display("Blah"); when you want the box.

dahui58

Quote from: Khris on Tue 28/09/2010 17:13:16
1. I answered this in your other thread; you'll have to change the ItemWidth and ItemHeight setting in your InventoryWindow.
The thing is, if those are way smaller than the sprites you're using, the items should all overlap and be hard to click on anyway, not sure why that doesn't bother you or if it means something else is wrong.
On the other hand, AGS might use the sprite dimensions to place the items but only react to clicks in the top left corner then.

2. Change the setting back, then use player.Say("Blah"); when you want text over the character's head and Display("Blah"); when you want the box.

Ok I got 2 sorted then thanks.

Also I replied to your post in the other thread just now, I didn't realise you had posted there sorry. Here's the reply i posted there anyway

the inventory has a height of 156 and a width of 220
I can't find any ItemWidth/Height variables, the size of my inventory item is about 55 wide 40 high

Creator

Quote from: Khris on Tue 28/09/2010 17:13:16
you'll have to change the ItemWidth and ItemHeight setting in your InventoryWindow.
The thing is, if those are way smaller than the sprites you're using, the items should all overlap and be hard to click on

Ha. I always wondered why my inventory items overlapped. Now it's fixed. Thanks Khris.

Quote from: dahui58 on Tue 28/09/2010 17:21:13
I can't find any ItemWidth/Height variables, the size of my inventory item is about 55 wide 40 high

In your inventory GUI, click on the inventory window. Under 'Appearance' (first catagory) you should see ItemHeight and ItemWidth.

SMF spam blocked by CleanTalk