public void ShowTextNotification(string Text, int Duration, Action OnClick) { if (!Settings.Instance.TrayNotify) { return; } var balloon = new TextBalloon(Text, OnClick); _trayIcon.ShowCustomBalloon(balloon, PopupAnimation.Scroll, Duration); }
public MessagePopup(Game game, SpriteFont spriteFont) : base(game) { this.spriteFont = spriteFont; spriteBatch = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch)); Content = (ContentManager)Game.Services.GetService(typeof(ContentManager)); gfxdevice = (GraphicsDevice)Game.Services.GetService(typeof(GraphicsDevice)); menu = new MenuComponent(game, spriteFont); Components.Add(menu); balloon = new TextBalloon(game); LoadContent(); }