(Formerly known as game.items_per_line, which is now obsolete)
readonly int InvWindow.ItemsPerRow;
Gets the number of items that can be displayed in each row of the inventory window.
This is calculated by the width of the inventory window divided by the individual ItemWidth.
Example:
Display("The inventory window can show %d items at a time", invMain.ItemsPerRow * invMain.RowCount);
displays how many items can be visible in the invMain window at once.
See Also: InvWindow.ItemWidth,
InvWindow.RowCount
|