public void UpdateList()
 {
     this.ID = 1;
     while (this.ID < this.ServiceNames.Length)
     {
         this.CostLabels[this.ID].text = this.ServiceCosts[this.ID].ToString();
         bool servicePurchased = SchemeGlobals.GetServicePurchased(this.ID);
         this.ServiceAvailable[this.ID] = false;
         if (this.ID == 1 || this.ID == 2 || this.ID == 3)
         {
             this.ServiceAvailable[this.ID] = true;
         }
         else if (this.ID == 4)
         {
             if (!SchemeGlobals.DarkSecret)
             {
                 this.ServiceAvailable[this.ID] = true;
             }
         }
         else if (this.ID == 5)
         {
             if (!this.ServicePurchased[this.ID])
             {
                 this.ServiceAvailable[this.ID] = true;
             }
         }
         else if (this.ID == 6)
         {
             if (this.Police.Show && !this.Police.Delayed)
             {
                 this.ServiceAvailable[this.ID] = true;
             }
         }
         else if (this.ID == 7)
         {
             if (CounselorGlobals.CounselorTape == 0)
             {
                 this.ServiceAvailable[this.ID] = true;
             }
         }
         else if (this.ID == 8)
         {
             if (!SchemeGlobals.GetServicePurchased(8))
             {
                 this.ServiceAvailable[this.ID] = true;
             }
         }
         else if (this.ID == 9 && MissionModeGlobals.MissionMode)
         {
             this.ServiceAvailable[this.ID] = true;
         }
         UILabel uilabel = this.NameLabels[this.ID];
         uilabel.color = new Color(uilabel.color.r, uilabel.color.g, uilabel.color.b, (this.ServiceAvailable[this.ID] && !servicePurchased) ? 1f : 0.5f);
         this.ID++;
     }
 }
 // Token: 0x0600077C RID: 1916 RVA: 0x00070928 File Offset: 0x0006ED28
 public void UpdateList()
 {
     this.ID = 1;
     while (this.ID < this.ServiceNames.Length)
     {
         this.CostLabels[this.ID].text = this.ServiceCosts[this.ID].ToString();
         bool    servicePurchased = SchemeGlobals.GetServicePurchased(this.ID);
         UILabel uilabel          = this.NameLabels[this.ID];
         uilabel.color = new Color(uilabel.color.r, uilabel.color.g, uilabel.color.b, (!this.ServiceActive[this.ID] || servicePurchased) ? 0.5f : 1f);
         this.ID++;
     }
 }
 // Token: 0x0600077D RID: 1917 RVA: 0x00070A08 File Offset: 0x0006EE08
 public void UpdateDesc()
 {
     if (this.ServiceActive[this.Selected] && !SchemeGlobals.GetServicePurchased(this.Selected))
     {
         this.PromptBar.Label[0].text = ((PlayerGlobals.PantyShots < this.ServiceCosts[this.Selected]) ? string.Empty : "Purchase");
         this.PromptBar.UpdateButtons();
     }
     else
     {
         this.PromptBar.Label[0].text = string.Empty;
         this.PromptBar.UpdateButtons();
     }
     this.Highlight.localPosition = new Vector3(this.Highlight.localPosition.x, 200f - 25f * (float)this.Selected, this.Highlight.localPosition.z);
     this.ServiceIcon.mainTexture = this.ServiceIcons[this.Selected];
     this.ServiceLimit.text       = this.ServiceLimits[this.Selected];
     this.ServiceDesc.text        = this.ServiceDescs[this.Selected];
     this.UpdatePantyCount();
 }
 public void UpdateDesc()
 {
     if (this.ServiceAvailable[this.Selected] && !SchemeGlobals.GetServicePurchased(this.Selected))
     {
         this.PromptBar.Label[0].text = ((this.Inventory.PantyShots >= this.ServiceCosts[this.Selected]) ? "Purchase" : string.Empty);
         this.PromptBar.UpdateButtons();
     }
     else
     {
         this.PromptBar.Label[0].text = string.Empty;
         this.PromptBar.UpdateButtons();
     }
     this.Highlight.localPosition = new Vector3(this.Highlight.localPosition.x, 200f - 25f * (float)this.Selected, this.Highlight.localPosition.z);
     this.ServiceIcon.mainTexture = this.ServiceIcons[this.Selected];
     this.ServiceLimit.text       = this.ServiceLimits[this.Selected];
     this.ServiceDesc.text        = this.ServiceDescs[this.Selected];
     if (this.Selected == 5)
     {
         this.ServiceDesc.text = this.ServiceDescs[this.Selected] + "\n\nIf student portraits don't appear, back out of the menu, load the Student Info menu, then return to this screen.";
     }
     this.UpdatePantyCount();
 }
    public static SchemeSaveData ReadFromGlobals()
    {
        SchemeSaveData schemeSaveData = new SchemeSaveData();

        schemeSaveData.currentScheme = SchemeGlobals.CurrentScheme;
        schemeSaveData.darkSecret    = SchemeGlobals.DarkSecret;
        foreach (int num in SchemeGlobals.KeysOfSchemePreviousStage())
        {
            schemeSaveData.schemePreviousStage.Add(num, SchemeGlobals.GetSchemePreviousStage(num));
        }
        foreach (int num2 in SchemeGlobals.KeysOfSchemeStage())
        {
            schemeSaveData.schemeStage.Add(num2, SchemeGlobals.GetSchemeStage(num2));
        }
        foreach (int num3 in SchemeGlobals.KeysOfSchemeStatus())
        {
            if (SchemeGlobals.GetSchemeStatus(num3))
            {
                schemeSaveData.schemeStatus.Add(num3);
            }
        }
        foreach (int num4 in SchemeGlobals.KeysOfSchemeUnlocked())
        {
            if (SchemeGlobals.GetSchemeUnlocked(num4))
            {
                schemeSaveData.schemeUnlocked.Add(num4);
            }
        }
        foreach (int num5 in SchemeGlobals.KeysOfServicePurchased())
        {
            if (SchemeGlobals.GetServicePurchased(num5))
            {
                schemeSaveData.servicePurchased.Add(num5);
            }
        }
        return(schemeSaveData);
    }
    // Token: 0x0600077B RID: 1915 RVA: 0x000706E8 File Offset: 0x0006EAE8
    private void Update()
    {
        if (this.InputManager.TappedUp)
        {
            this.Selected--;
            if (this.Selected < 1)
            {
                this.Selected = this.ServiceNames.Length - 1;
            }
            this.UpdateDesc();
        }
        if (this.InputManager.TappedDown)
        {
            this.Selected++;
            if (this.Selected > this.ServiceNames.Length - 1)
            {
                this.Selected = 1;
            }
            this.UpdateDesc();
        }
        AudioSource component = base.GetComponent <AudioSource>();

        if (Input.GetButtonDown("A"))
        {
            if (!SchemeGlobals.GetServicePurchased(this.Selected))
            {
                if (this.PromptBar.Label[0].text != string.Empty)
                {
                    if (PlayerGlobals.PantyShots >= this.ServiceCosts[this.Selected])
                    {
                        PlayerGlobals.PantyShots -= this.ServiceCosts[this.Selected];
                        SchemeGlobals.SetServicePurchased(this.Selected, true);
                        AudioSource.PlayClipAtPoint(this.InfoPurchase, base.transform.position);
                        if (this.Selected == 4)
                        {
                            SchemeGlobals.SetSchemeStage(1, 2);
                            this.Schemes.UpdateInstructions();
                            SchemeGlobals.DarkSecret = true;
                            this.TextMessageManager.SpawnMessage();
                        }
                        this.UpdateList();
                        this.UpdateDesc();
                    }
                }
                else if (PlayerGlobals.PantyShots < this.ServiceCosts[this.Selected])
                {
                    component.clip = this.InfoAfford;
                    component.Play();
                }
                else
                {
                    component.clip = this.InfoUnavailable;
                    component.Play();
                }
            }
            else
            {
                component.clip = this.InfoUnavailable;
                component.Play();
            }
        }
        if (Input.GetButtonDown("B"))
        {
            this.PromptBar.ClearButtons();
            this.PromptBar.Label[0].text = "Accept";
            this.PromptBar.Label[1].text = "Exit";
            this.PromptBar.Label[5].text = "Choose";
            this.PromptBar.UpdateButtons();
            this.FavorMenu.SetActive(true);
            base.gameObject.SetActive(false);
        }
    }
 private void Update()
 {
     if (this.InputManager.TappedUp)
     {
         this.Selected--;
         if (this.Selected < 1)
         {
             this.Selected = this.ServiceNames.Length - 1;
         }
         this.UpdateDesc();
     }
     if (this.InputManager.TappedDown)
     {
         this.Selected++;
         if (this.Selected > this.ServiceNames.Length - 1)
         {
             this.Selected = 1;
         }
         this.UpdateDesc();
     }
     if (Input.GetButtonDown("A"))
     {
         if (!SchemeGlobals.GetServicePurchased(this.Selected) && (double)this.NameLabels[this.Selected].color.a == 1.0)
         {
             if (this.PromptBar.Label[0].text != string.Empty)
             {
                 if (this.Inventory.PantyShots >= this.ServiceCosts[this.Selected])
                 {
                     if (this.Selected == 1)
                     {
                         this.Yandere.PauseScreen.StudentInfoMenu.GettingInfo = true;
                         this.Yandere.PauseScreen.StudentInfoMenu.Column      = 0;
                         this.Yandere.PauseScreen.StudentInfoMenu.Row         = 0;
                         this.Yandere.PauseScreen.StudentInfoMenu.UpdateHighlight();
                         this.Yandere.PauseScreen.Sideways = true;
                         this.Yandere.PauseScreen.StudentInfoMenu.gameObject.SetActive(true);
                         base.StartCoroutine(this.Yandere.PauseScreen.StudentInfoMenu.UpdatePortraits());
                         this.Yandere.PromptBar.ClearButtons();
                         this.Yandere.PromptBar.Label[1].text = "Cancel";
                         this.Yandere.PromptBar.UpdateButtons();
                         this.Yandere.PromptBar.Show = true;
                         base.gameObject.SetActive(false);
                     }
                     if (this.Selected == 2)
                     {
                         this.Reputation.PendingRep += 5f;
                         this.Purchase();
                     }
                     else if (this.Selected == 3)
                     {
                         StudentGlobals.SetStudentReputation(this.StudentManager.RivalID, StudentGlobals.GetStudentReputation(this.StudentManager.RivalID) - 5);
                         this.Purchase();
                     }
                     else if (this.Selected == 4)
                     {
                         SchemeGlobals.SetServicePurchased(this.Selected, true);
                         SchemeGlobals.DarkSecret = true;
                         this.Purchase();
                     }
                     else if (this.Selected == 5)
                     {
                         this.Yandere.PauseScreen.StudentInfoMenu.SendingHome = true;
                         this.Yandere.PauseScreen.StudentInfoMenu.Column      = 0;
                         this.Yandere.PauseScreen.StudentInfoMenu.Row         = 0;
                         this.Yandere.PauseScreen.StudentInfoMenu.UpdateHighlight();
                         this.Yandere.PauseScreen.Sideways = true;
                         this.Yandere.PauseScreen.StudentInfoMenu.gameObject.SetActive(true);
                         this.Yandere.PauseScreen.StudentInfoMenu.GrabbedPortraits = false;
                         base.StartCoroutine(this.Yandere.PauseScreen.StudentInfoMenu.UpdatePortraits());
                         this.Yandere.PromptBar.ClearButtons();
                         this.Yandere.PromptBar.Label[1].text = "Cancel";
                         this.Yandere.PromptBar.UpdateButtons();
                         this.Yandere.PromptBar.Show = true;
                         base.gameObject.SetActive(false);
                     }
                     else if (this.Selected == 6)
                     {
                         this.Police.Timer  += 300f;
                         this.Police.Delayed = true;
                         this.Purchase();
                     }
                     else if (this.Selected == 7)
                     {
                         SchemeGlobals.SetServicePurchased(this.Selected, true);
                         CounselorGlobals.CounselorTape = 1;
                         this.Purchase();
                     }
                     else if (this.Selected == 8)
                     {
                         SchemeGlobals.SetServicePurchased(this.Selected, true);
                         for (int i = 1; i < 26; i++)
                         {
                             ConversationGlobals.SetTopicLearnedByStudent(i, 11, true);
                         }
                         this.Purchase();
                     }
                     else if (this.Selected == 9)
                     {
                         this.Yandere.PauseScreen.StudentInfoMenu.FiringCouncilMember = true;
                         this.Yandere.PauseScreen.StudentInfoMenu.Column = 0;
                         this.Yandere.PauseScreen.StudentInfoMenu.Row    = 0;
                         this.Yandere.PauseScreen.StudentInfoMenu.UpdateHighlight();
                         this.Yandere.PauseScreen.Sideways = true;
                         this.Yandere.PauseScreen.StudentInfoMenu.gameObject.SetActive(true);
                         this.Yandere.PauseScreen.StudentInfoMenu.GrabbedPortraits = false;
                         base.StartCoroutine(this.Yandere.PauseScreen.StudentInfoMenu.UpdatePortraits());
                         this.Yandere.PromptBar.ClearButtons();
                         this.Yandere.PromptBar.Label[1].text = "Cancel";
                         this.Yandere.PromptBar.UpdateButtons();
                         this.Yandere.PromptBar.Show = true;
                         base.gameObject.SetActive(false);
                     }
                 }
             }
             else if (this.Inventory.PantyShots < this.ServiceCosts[this.Selected])
             {
                 this.MyAudio.clip = this.InfoAfford;
                 this.MyAudio.Play();
             }
             else
             {
                 this.MyAudio.clip = this.InfoUnavailable;
                 this.MyAudio.Play();
             }
         }
         else
         {
             this.MyAudio.clip = this.InfoUnavailable;
             this.MyAudio.Play();
         }
     }
     if (Input.GetButtonDown("B"))
     {
         this.PromptBar.ClearButtons();
         this.PromptBar.Label[0].text = "Accept";
         this.PromptBar.Label[1].text = "Exit";
         this.PromptBar.Label[5].text = "Choose";
         this.PromptBar.UpdateButtons();
         this.FavorMenu.SetActive(true);
         base.gameObject.SetActive(false);
     }
 }