Adventure Game Studio | Forums

AGS Support => Beginners' Technical Questions => Topic started by: trevbot on Mon 09/05/2022 23:36:15

Title: BASS Template - Inventory "Always Shown" not working
Post by: trevbot on Mon 09/05/2022 23:36:15
Hello!

I am working with the BASS template, and would like to have an inventory GUI displayed at all times.

However, when I set the GUI to "always shown" it is only shown briefly when the room is loaded, and disappears again. It does display when the mouse cursor crosses a y-coordinate around the top fifth of the screen.

I was led to understand from this post (https://www.adventuregamestudio.co.uk/forums/index.php?topic=52803.msg636523748#msg636523748) that the issue probably lies in the BASS template script. I was hoping that someone might be able to point me to the specific section of code that's overriding the "always shown" and forcing the hover-to-show behaviour.

Thanks!
Title: Re: BASS Template - Inventory "Always Shown" not working
Post by: Khris on Tue 10/05/2022 07:54:13
Leave the visibility set to "Normal", switch Visible to "True", then open TwoClickHandler.asc and comment out line 226:

Code (ags) Select
    // interface_inv.Visible = false;
Title: Re: BASS Template - Inventory "Always Shown" not working
Post by: trevbot on Tue 10/05/2022 08:30:44
Thanks, Khris!

It was line 242 in the version I have, but getting rid of that line in the TwoClickHandler script seems to have done the trick!