DisplayTopBar on longer

Started by barefoot, Sun 27/06/2010 20:22:46

Previous topic - Next topic

barefoot

Hi

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

Code: ags

 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-
I May Not Be Perfect but I Have A Big Heart ..

Khris

What do you mean by "longer"; are you talking about it being displayed while the game continues?

Crimson Wizard

#2
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

barefoot

#3
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...

Code: ags

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


works a treat..  thanks for your comments.

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

Monsieur OUXX

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

 

Crimson Wizard

#5
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

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)

Monsieur OUXX

Quote from: Crimson Wizard on Mon 09/10/2017 15:54:38
Code: ags

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



PERFECT. Thank you!!!

 

SMF spam blocked by CleanTalk