Exemple #1
0
 public Popup(string text, string title, TimeSpan lifetime, string hint, EnumPopupDecoratorToUse popupDecoratorToUse = EnumPopupDecoratorToUse.Default)
 {
     Text                = text;
     Title               = title;
     LifeTime            = lifetime;
     Hint                = hint;
     QueuedOn            = DateTime.Now;
     PopUpDecoratorTouse = popupDecoratorToUse;
 }
Exemple #2
0
 public void Show(string text, string title, int duration, string hint = null, EnumPopupDecoratorToUse popupDecoratorToUse = EnumPopupDecoratorToUse.Default)
 {
     Hud.Queue.AddItem(new Popup(text, title, new TimeSpan(0, 0, 0, 0, duration), hint, popupDecoratorToUse));
 }