Disable inventory for the verb coin template

Started by stepsoversnails, Fri 25/03/2011 06:43:51

Previous topic - Next topic

stepsoversnails

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.

barefoot

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
Code: ags

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


Assuming this is what you mean?

barefoot



I May Not Be Perfect but I Have A Big Heart ..

stepsoversnails

No.
Unfortunately that doesn't work with the verb coin's inventory.

TomatoesInTheHead

This should help:
Code: ags
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.

Khris

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, somebody should point this out to CJ.

stepsoversnails


monkey0506

@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.

SMF spam blocked by CleanTalk