RESOLVED --- Save screen/icon bar issues

Started by Zoo977, Sun 08/11/2015 12:42:45

Previous topic - Next topic

Zoo977

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.


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



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!    ââ,,¢Â¥ ;) ââ,,¢Â¥
☆**☆.ãâ,¬â€š.:*ãÆ'»ã‚Å"☆.ãâ,¬â€š.*  s  u  f  f  e  r  i  n  g .ãâ,¬â€š.☆ã‚Å"ãÆ'»*:.ãâ,¬â€š.☆**☆.ãâ,¬â€š

Slasher

#1
something like this:

Global rep exec always
Code: ags

{
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 ;)


Zoo977

Your code worked like a charm! Thank you very much for your help! :-D
☆**☆.ãâ,¬â€š.:*ãÆ'»ã‚Å"☆.ãâ,¬â€š.*  s  u  f  f  e  r  i  n  g .ãâ,¬â€š.☆ã‚Å"ãÆ'»*:.ãâ,¬â€š.☆**☆.ãâ,¬â€š

Khris

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

Slasher

#4
brain malfunction :(


(laugh)

SMF spam blocked by CleanTalk