Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: stepsoversnails on Fri 25/03/2011 06:43:51

Title: Disable inventory for the verb coin template
Post by: stepsoversnails on Fri 25/03/2011 06:43:51
I must be going crazy. I've looked high and low.
It even says it in this thread http://www.adventuregamestudio.co.uk/yabb/index.php?topic=32745.0
It's possible to disable the inventory. But i don't know how.
and once disabled how can i enable it?
any help on this would be much appreciated, thank you.
Title: Re: Disable inventory for the verb coin template
Post by: barefoot on Fri 25/03/2011 08:13:32
Hi

if you mean so that the Inventory GUI no longer appears then set its visibility to false and then true when you want it to show. Do this on Room Load.

EG

gInventory.Visible=false;
gInventory.Visible=true;


Assuming this is what you mean?

barefoot



Title: Re: Disable inventory for the verb coin template
Post by: stepsoversnails on Fri 25/03/2011 08:59:20
No.
Unfortunately that doesn't work with the verb coin's inventory.
Title: Re: Disable inventory for the verb coin template
Post by: TomatoesInTheHead on Fri 25/03/2011 09:26:05
This should help:
SCUMM_VERBCOIN_GUI.DisableInventory(true);

A bit confusing: DisableInventory() alone does not disable the inventory, but in fact works like DisableInventory(false), which enables the inventory again... I think this should be fixed in the verb coin template/module.
Title: Re: Disable inventory for the verb coin template
Post by: Khris on Fri 25/03/2011 10:26:11
barefoot:
That wasn't even wrong. Disabling the mechanism used to show the inventory isn't done by turning the GUI itself invisible. Thanks for trying to help, but please don't confuse people :=


The SCUMM_VERBCOIN_GUI.DisableInventory function isn't mentioned in the manual in the section about the template (http://www.adventuregamestudio.co.uk/manual/SCUMM_VERBCOIN_GUI%20functions.htm), somebody should point this out to CJ.
Title: Re: Disable inventory for the verb coin template
Post by: stepsoversnails on Fri 25/03/2011 10:38:53
thanks guys!
Title: Re: Disable inventory for the verb coin template
Post by: monkey0506 on Fri 25/03/2011 18:12:46
@Khris: The SCUMM_VERBCOIN_GUI documentation wasn't compiled by CJ, it was compiled by Elecktroshokker. Also the manual has been open-sourced, so it could be updated by anybody who has write permissions to the SVN branch for the manual.

Also, @Tomatos: This is exactly the reason why I wrote the Verbcoin module/template..a lot of the built-in template is..well, confusing.