void OnMapChanged() { if (ActiveMap == null) { return; } eventGroup.Lock(); UpdateMapSpinButtons(); eventGroup.UnlockAndClear(); SetRoom(ActiveMinimap.GetRoom(), ActiveMap.Season); }
protected void OnMinimapNotebookSwitchPage(object o, SwitchPageArgs args) { if (Project == null) { return; } Notebook nb = minimapNotebook; if (nb.Page == 0) { int world = worldSpinButton.ValueAsInt; ActiveMinimap.SetMap(Project.GetWorldMap(world, ActiveSeason)); } else if (nb.Page == 1) { ActiveMinimap.SetMap(Project.GetDungeon(dungeonSpinButton.ValueAsInt)); } OnMapChanged(); }
void OnMinimapTileSelected(object sender, int index) { SetRoom(ActiveMinimap.GetRoom(), ActiveSeason); }