Community

SCI Programming => SCI Syntax Help => Topic started by: gumby on October 18, 2017, 07:58:41 PM

Title: Inventory views
Post by: gumby on October 18, 2017, 07:58:41 PM
Documenting this as I haven't found this explicitly stated anywhere yet.  With SCI 1.1, when creating views, by default the template game wants/expects the following:

loop 0 = cursor view
loop 1 = inventory icon
loop 2 = icon bar

When declaring your inventory items in Inventory.sc, set the loop 1 for the views.  I noticed that if you set it to loop = 0, it'll show the loop 0 view the first time you open the inventory screen but any subsequent times it'll display loop 1.
Title: Re: Inventory views
Post by: troflip on October 19, 2017, 02:38:24 PM
It's described briefly in the inventory tutorial:

http://scicompanion.com/Documentation/Tutorial/UseInventory.html


Title: Re: Inventory views
Post by: gumby on October 19, 2017, 06:57:17 PM
I totally missed it, thanks.