Inventory sprites overlapping

Started by Devillia59, Sun 23/08/2020 10:52:50

Previous topic - Next topic

Devillia59

Hi All,

This is my first ever post here, currently making my first point and click adventure  :smiley:

I currently have a problem with my sprite icons overlapping within the inventory window of a BASS format template.
I have checked the documentation and am not sure where I need to insert text to set the individual inventory items width and height in the inventory window within the scripts as there is no reference to an inventory window, just references to the inventory GUI?
Do I do this within the global script or the inventory GUI and if so within which section of the script or GUI?

If you can help me thank you  :smiley:

Slasher

You usually open the Inventory gui... click on inventory window and change item width and height in the properties panel on the right..

Devillia59

The inventory window is bigger than I need, at the moment the inventory items are being bunched up and I want to space these individual items out you see? Not sure where I need to do that?  :undecided:

Crimson Wizard

#3
In AGS individual items do not have Width and Height, for some reason.
But InventoryWindow has two properties: ItemWidth and ItemHeight. They determine how the items are arranged withing that window.

You may change these either in the editor, by selecting inventory window and editing values in property panel, or in script.
In BASS template inventory window is called "invCustom", so that would be "invCustom.ItemWidth = 10;" for example.

Devillia59

Ok I see what you mean, seems to work now dimensions just needs tweaking, thank you.  :)

SMF spam blocked by CleanTalk