private void DrawHint(Graphics g) { if (_hintToDisplay == null) { return; } if (DateTime.UtcNow > _hintExpiry || !_levelReplayContext.CanShowHint(_hintToDisplay)) { _hintToDisplay = null; return; } DrawMessageInner(g, _hintToDisplay.Message); }
public void SuppressHint(Hint hint) { _levelReplayContext.SuppressHint(hint); }
public void DisplayHint(Hint hint) { _hintToDisplay = hint; _hintExpiry = DateTime.UtcNow + new TimeSpan(0, 0, 4); }
public void SuppressHint(Hint hint) { _hintsSuppressed.Add(hint); }
public bool CanShowHint(Hint hint) { return(!_hintsSuppressed.Contains(hint)); }