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-
What do you mean by "longer"; are you talking about it being displayed while the game continues?
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
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-
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).
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:
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)
Quote from: Crimson Wizard on Mon 09/10/2017 15:54:38
Speech.SkipStyle = eSkipKeyMouse;
DisplayTopBar(...);
Speech.SkipStyle = old style;
PERFECT. Thank you!!!