Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: barefoot on Sun 27/06/2010 20:22:46

Title: DisplayTopBar on longer
Post by: barefoot on Sun 27/06/2010 20:22:46
Hi

I was wondering if there is a way to have DisplayTopBar on longer rather then use a gui etc..


DisplayTopBar(25, 8, 7, "Weight Task", "9.92080 lbs")


cheers for any help/comments

UPDATE: I'de still like to know if its possible.... until then i have made  GUI to cover the situation..

-barefoot-
Title: Re: DisplayTopBar on longer
Post by: Khris on Mon 28/06/2010 16:41:21
What do you mean by "longer"; are you talking about it being displayed while the game continues?
Title: Re: DisplayTopBar on longer
Post by: Crimson Wizard on Mon 28/06/2010 17:11:39
I think he needs GUI.
Yeah, barefoot, I think you need GUI :) AFAIK there's no way to make display box hang on background.


.... oh wait... or....   :P
Title: Re: DisplayTopBar on longer
Post by: barefoot on Mon 28/06/2010 18:13:54
Quote from: Crimson Wizard on Mon 28/06/2010 17:11:39
I think he needs GUI.
Yeah, barefoot, I think you need GUI :) AFAIK there's no way to make display box hang on background.


.... oh wait... or....   :P

Yarr.. that's exactly what I have done.. show gui... wait x amount time... hide gui...


gweight.Visible = true;
Wait(200);
 gweight.Visible = false;


works a treat..  thanks for your comments.

-barefoot-
Title: Re: DisplayTopBar on longer
Post by: Monsieur OUXX on Mon 09/10/2017 15:36:15
Digging out this topic because it's describing the issue I'm encountering.

According to the manual, DisplayTopBar "has the same behaviour as Display".

However, it's not true (in 3.4.0.x) :
- Display remains on screen as long as the user does not click or press a key
- DisplaytopBar disappears automatically after a (very!) short time.

Also just so you know, for what I'm doing at the moment I can absolutely not use a GUI; only an absolutely blocking function such as "Display" will do. I planned on switching to DisplayTopBar for cosmetic reasons (choice of color, etc.) but atm it won't do for the reason I described (different behaviour).

Title: Re: DisplayTopBar on longer
Post by: Crimson Wizard on Mon 09/10/2017 15:54:38
Quote from: Monsieur OUXX on Mon 09/10/2017 15:36:15
- DisplaytopBar disappears automatically after a (very!) short time.

Yeah... it does. AGS 3.2.1 does that too. Never paid attention to this, to be honest.

Apparently it uses same skipping rules as speech. I guess AGS assumes that DisplayTopBar is another speech style.
So, a workaround might be:
Code (ags) Select

Speech.SkipStyle = eSkipKeyMouse;
DisplayTopBar(...);
Speech.SkipStyle = old style;


EDIT: Also, this means that game.text_speed and game.text_speed_modifier should affect its duration. Which kinda finally answers barefoot/Slasher's question from 2010 (roll)
Title: Re: DisplayTopBar on longer
Post by: Monsieur OUXX on Mon 09/10/2017 19:16:56
Quote from: Crimson Wizard on Mon 09/10/2017 15:54:38
Code (ags) Select

Speech.SkipStyle = eSkipKeyMouse;
DisplayTopBar(...);
Speech.SkipStyle = old style;



PERFECT. Thank you!!!