spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * GUI InvWindow functions and properties

ItemAtIndex property

readonly InventoryItem* InvWindow.ItemAtIndex[];
Gets the inventory item that is currently displayed at the specified index in this inventory window. The number of items in the window can be retrieved with the ItemCount property. Indexes range from 0 to ItemCount - 1.

If an invalid index is supplied, null is returned.

Example:

String firstOne = invMain.ItemAtIndex[0].Name;
Display("First item is %s.", firstOne);
will display the name of the first item displayed in the invMain inventory window.

See Also: InvWindow.ItemCount


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.