Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Cubefiend on Fri 19/07/2013 03:34:03

Title: Problem selecting items in GUI and clumped items in GUI
Post by: Cubefiend on Fri 19/07/2013 03:34:03
I have two problems with my GUI.

First: There seems to be only a small space on all items from which I can select said items, this makes it hard to progress in my game.
Is there some way to make the selection space larger?
(http://i.imgur.com/2ZEeKXl.gif)
In this GIF, I try to click the item to no avail.

Second: When I have multiple items in my inventory they clump together. This won't effect the early game, but later you'll need more than one item to excel.

Please help.
Title: Re: Problem selecting items in GUI and clumped items in GUI
Post by: Kitai on Fri 19/07/2013 08:44:54
Quote from: Cubefiend on Fri 19/07/2013 03:34:03There seems to be only a small space on all items from which I can select said items, this makes it hard to progress in my game.
Is there some way to make the selection space larger?
Sounds like the hotspot of your cursor is not placed at the desired coordinates. I guess you want the tip of the arrow to be the hotspot: check in the Cursors panel in the Editor where you put it.

Quote from: Cubefiend on Fri 19/07/2013 03:34:03When I have multiple items in my inventory they clump together. This won't effect the early game, but later you'll need more than one item to excel.
You should take a look at ItemWidth (http://www.adventuregamestudio.co.uk/wiki/GUI_InvWindow_functions_and_properties#InvWindow.ItemWidth) and ItemHeight (http://www.adventuregamestudio.co.uk/wiki/GUI_InvWindow_functions_and_properties#InvWindow.ItemHeight): these define the space that each of your items occupies in the inventory window.
Title: Re: Problem selecting items in GUI and clumped items in GUI
Post by: Khris on Fri 19/07/2013 09:11:17
Actually, both issues are due to ItemWidth and ItemHeight being to small. You can change them in the properties section when you select the InventoryWindow in the GUI Editor.
Title: Re: Problem selecting items in GUI and clumped items in GUI
Post by: Cubefiend on Fri 19/07/2013 18:26:05
Quote from: Khris on Fri 19/07/2013 09:11:17
Actually, both issues are due to ItemWidth and ItemHeight being to small. You can change them in the properties section when you select the InventoryWindow in the GUI Editor.

(http://i.imgur.com/XqUQpdh.gif)

Yep! That's the solution. Thank you very much.

And if anyone is asking what program i used to make the gifs, it's LICEcap (http://www.cockos.com/licecap/)