private void SelectItem(ListViewItem item) { WorkshopMenuItem workshopMenuItem = item as WorkshopMenuItem; if (selectedMenuItem != null) { selectedMenuItem.SetActive(active: false); } selectedMenuItem = workshopMenuItem; selectedMenuItem.SetActive(active: true); BindLevelIfNeeded(selectedMenuItem); bool flag = true; if (CouldShowFindMore()) { if (DLC.instance.SupportsDLC()) { levelBundleID = DLC.instance.LevelIsDLC(workshopMenuItem.level.workshopId); if (levelBundleID != 0) { flag = DLC.instance.BundleActive(levelBundleID); } } FindMoreButton.SetActive(!flag); } UpdateTitle(!flag); }
private void OnSelect(ListViewItem item) { WorkshopMenuItem workshopMenuItem = item as WorkshopMenuItem; if (selectedMenuItem != null) { selectedMenuItem.SetActive(active: false); } selectedMenuItem = workshopMenuItem; selectedMenuItem.SetActive(active: true); BindLevelIfNeeded(selectedMenuItem); bool flag = true; if (DLC.instance.SupportsDLC()) { levelBundleID = DLC.instance.LevelIsDLC(workshopMenuItem.level.title); if (levelBundleID != 0) { flag = DLC.instance.BundleActive(levelBundleID); } } }