public NieRAutoIntelTrackerComponent(LiveSplitState state) { this.state = state; this._intelDisplay = new IntelDisplay(); this.settings = new Settings(visible => _intelDisplay.SetVisibility(visible)); this._gameMemory = new GameMemory(_intelDisplay, fishCount => RefreshFishCount(fishCount)); this._gameMemory.StartMonitoring(); InternalComponent = new InfoTextComponent("Fish Intel", "Loading..."); ContextMenuControls = new Dictionary <string, Action> { { "Toggle NieR:Automata Intel Tracker", new Action(_intelDisplay.ToggleVisibility) } }; }
public NieRAutoIntelTrackerComponent(LiveSplitState state) { this.state = state; this._intelDisplay = new IntelDisplay(); this.settings = new Settings(visible => _intelDisplay.SetVisibility(visible)); this._gameMemory = new GameMemory(_intelDisplay); this._gameMemory.StartMonitoring(); HorizontalWidth = 0; VerticalHeight = 0; ContextMenuControls = new Dictionary <string, Action> { { "Toggle NieR:Automata Intel Tracker", new Action(_intelDisplay.ToggleVisibility) } }; }