Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Zoo977 on Sun 08/11/2015 12:42:45

Title: RESOLVED --- Save screen/icon bar issues
Post by: Zoo977 on Sun 08/11/2015 12:42:45
Hello, everyone! I need warn you before I start with my writing, I know very little about coding myself. It's been years since I've fiddled around with AGS, so this is likely a simple fix, but any help would be greatly appreciated.

(http://orig08.deviantart.net/c472/f/2015/312/8/a/barproblemexample1_by_zoo977-d9fy183.png)
(Ignore the looming void of death and imposing red rectangles of judgement - I'm using base graphics to make sure everything is in working order.)

This is how the screen is going to look for the majority of the game. Regardless of whether or not the cursor is being held over the icon bar at the bottom of the screen, it will usually be visible. So, it's important that the GUIs are centered in the middle of the actual playspace.

(http://orig04.deviantart.net/a97e/f/2015/312/1/c/barproblemexample2_by_zoo977-d9fy17z.png)

Unfortunately, this means that the save and load screens look horrible without the icon bar visible. Is there any way that I can keep the icon bar visible, but deactivated, while the save and load screens are opened?

Again, thanks to all of you for your help in advance!    ââ,,¢Â¥ ;) ââ,,¢Â¥
Title: Re: Save screen/icon bar issues
Post by: Slasher on Sun 08/11/2015 16:53:27
something like this:

Global rep exec always
Code (ags) Select

{
if(gSaveGame.Visible==true || gRestoreGame.Visible==true) // if either gui is visible
gIconbar.Clickable=false; // will not take clicks.
else
gIconbar.Clickable=true;  // will take clicks.
{


nice gui by the way ;)

Title: Re: Save screen/icon bar issues
Post by: Zoo977 on Sun 08/11/2015 18:47:32
Your code worked like a charm! Thank you very much for your help! :-D
Title: Re: RESOLVED --- Save screen/icon bar issues
Post by: Khris on Sun 08/11/2015 22:06:12
  gIconbar.Clickable = !(gSaveGame.Visible || gRestoreGame.Visible);

shlasher, what's with the two opening braces in your code...? Shouldn't you know how to use them by now?
Title: Re: RESOLVED --- Save screen/icon bar issues
Post by: Slasher on Sun 08/11/2015 23:04:13
brain malfunction :(


(laugh)