예제 #1
0
    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);
    }
예제 #2
0
    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);
            }
        }
    }