public RoomNameHighlighter(IGameState gameState, HighlightSettings settings) { _gameState = gameState; _settings = settings; Matches = (s) => { return s == _gameState.Get(ComponentKeys.RoomName) || s == _gameState.Get(ComponentKeys.RoomTitle); }; Modify = (tag) => { var setting = _settings.Get(HighlightKeys.RoomName); tag.Color = setting.Color; tag.Mono = setting.Mono; tag.Matched = true; }; }