Ejemplo n.º 1
0
 // Token: 0x060012F9 RID: 4857 RVA: 0x000991A4 File Offset: 0x000973A4
 private void Start()
 {
     this.MainCamera = Camera.main;
     this.Affection  = DatingGlobals.Affection;
     this.AffectionBar.localScale = new Vector3(this.Affection / 100f, this.AffectionBar.localScale.y, this.AffectionBar.localScale.z);
     this.CalculateAffection();
     this.OriginalColor            = this.ComplimentBGs[1].color;
     this.ComplimentSet.localScale = Vector3.zero;
     this.GiveGift.localScale      = Vector3.zero;
     this.ShowOff.localScale       = Vector3.zero;
     this.Topics.localScale        = Vector3.zero;
     this.DatingSimHUD.gameObject.SetActive(false);
     this.DatingSimHUD.alpha = 0f;
     for (int i = 1; i < 26; i++)
     {
         if (DatingGlobals.GetTopicDiscussed(i))
         {
             UISprite uisprite = this.TopicIcons[i];
             uisprite.color = new Color(uisprite.color.r, uisprite.color.g, uisprite.color.b, 0.5f);
         }
     }
     for (int j = 1; j < 11; j++)
     {
         if (DatingGlobals.GetComplimentGiven(j))
         {
             UILabel uilabel = this.ComplimentLabels[j];
             uilabel.color = new Color(uilabel.color.r, uilabel.color.g, uilabel.color.b, 0.5f);
         }
     }
     this.UpdateComplimentHighlight();
     this.UpdateTraitHighlight();
     this.UpdateGiftHighlight();
 }
Ejemplo n.º 2
0
    // Token: 0x060019F5 RID: 6645 RVA: 0x000FD56C File Offset: 0x000FB76C
    public static DatingSaveData ReadFromGlobals()
    {
        DatingSaveData datingSaveData = new DatingSaveData();

        datingSaveData.affection      = DatingGlobals.Affection;
        datingSaveData.affectionLevel = DatingGlobals.AffectionLevel;
        foreach (int num in DatingGlobals.KeysOfComplimentGiven())
        {
            if (DatingGlobals.GetComplimentGiven(num))
            {
                datingSaveData.complimentGiven.Add(num);
            }
        }
        foreach (int num2 in DatingGlobals.KeysOfSuitorCheck())
        {
            if (DatingGlobals.GetSuitorCheck(num2))
            {
                datingSaveData.suitorCheck.Add(num2);
            }
        }
        datingSaveData.suitorProgress = DatingGlobals.SuitorProgress;
        foreach (int num3 in DatingGlobals.KeysOfSuitorTrait())
        {
            datingSaveData.suitorTrait.Add(num3, DatingGlobals.GetSuitorTrait(num3));
        }
        foreach (int num4 in DatingGlobals.KeysOfTopicDiscussed())
        {
            if (DatingGlobals.GetTopicDiscussed(num4))
            {
                datingSaveData.topicDiscussed.Add(num4);
            }
        }
        foreach (int num5 in DatingGlobals.KeysOfTraitDemonstrated())
        {
            datingSaveData.traitDemonstrated.Add(num5, DatingGlobals.GetTraitDemonstrated(num5));
        }
        return(datingSaveData);
    }