// Token: 0x0600387A RID: 14458 RVA: 0x00198E10 File Offset: 0x00197210
 public static void close()
 {
     if (!PlayerDashboardUI.active)
     {
         return;
     }
     PlayerDashboardUI.active = false;
     if (PlayerDashboardInventoryUI.active)
     {
         PlayerDashboardInventoryUI.close();
         PlayerDashboardInventoryUI.active = true;
     }
     else if (PlayerDashboardCraftingUI.active)
     {
         PlayerDashboardCraftingUI.close();
         PlayerDashboardCraftingUI.active = true;
     }
     else if (PlayerDashboardSkillsUI.active)
     {
         PlayerDashboardSkillsUI.close();
         PlayerDashboardSkillsUI.active = true;
     }
     else if (PlayerDashboardInformationUI.active)
     {
         PlayerDashboardInformationUI.close();
         PlayerDashboardInformationUI.active = true;
     }
     PlayerDashboardUI.container.lerpPositionScale(0f, -1f, ESleekLerp.EXPONENTIAL, 20f);
 }
Пример #2
0
 // Token: 0x0600386F RID: 14447 RVA: 0x001985A6 File Offset: 0x001969A6
 public static void open()
 {
     if (PlayerDashboardSkillsUI.active)
     {
         return;
     }
     PlayerDashboardSkillsUI.active = true;
     PlayerDashboardSkillsUI.updateSelection(PlayerDashboardSkillsUI.selectedSpeciality);
     PlayerDashboardSkillsUI.container.lerpPositionScale(0f, 0f, ESleekLerp.EXPONENTIAL, 20f);
 }
 // Token: 0x0600387E RID: 14462 RVA: 0x00198F38 File Offset: 0x00197338
 private static void onClickedInformationButton(SleekButton button)
 {
     PlayerDashboardInventoryUI.close();
     PlayerDashboardCraftingUI.close();
     PlayerDashboardSkillsUI.close();
     if (PlayerDashboardInformationUI.active)
     {
         PlayerDashboardUI.close();
         PlayerLifeUI.open();
     }
     else
     {
         PlayerDashboardInformationUI.open();
     }
 }
Пример #4
0
 // Token: 0x06003877 RID: 14455 RVA: 0x001988B6 File Offset: 0x00196CB6
 private static void onSkillsUpdated()
 {
     PlayerDashboardSkillsUI.updateSelection(PlayerDashboardSkillsUI.selectedSpeciality);
 }
Пример #5
0
 // Token: 0x06003876 RID: 14454 RVA: 0x001988AA File Offset: 0x00196CAA
 private static void onBoostUpdated(EPlayerBoost newBoost)
 {
     PlayerDashboardSkillsUI.updateSelection(PlayerDashboardSkillsUI.selectedSpeciality);
 }
Пример #6
0
        // Token: 0x06003872 RID: 14450 RVA: 0x001987B0 File Offset: 0x00196BB0
        private static void onClickedSpecialityButton(SleekButton button)
        {
            byte specialityIndex = (byte)((button.positionOffset_X + 85) / 60);

            PlayerDashboardSkillsUI.updateSelection(specialityIndex);
        }
Пример #7
0
        // Token: 0x0600386E RID: 14446 RVA: 0x001981F4 File Offset: 0x001965F4
        public PlayerDashboardSkillsUI()
        {
            if (PlayerDashboardSkillsUI.icons != null)
            {
                PlayerDashboardSkillsUI.icons.unload();
            }
            PlayerDashboardSkillsUI.localization = Localization.read("/Player/PlayerDashboardSkills.dat");
            PlayerDashboardSkillsUI.icons        = Bundles.getBundle("/Bundles/Textures/Player/Icons/PlayerDashboardSkills/PlayerDashboardSkills.unity3d");
            PlayerDashboardSkillsUI.container    = new Sleek();
            PlayerDashboardSkillsUI.container.positionScale_Y  = 1f;
            PlayerDashboardSkillsUI.container.positionOffset_X = 10;
            PlayerDashboardSkillsUI.container.positionOffset_Y = 10;
            PlayerDashboardSkillsUI.container.sizeOffset_X     = -20;
            PlayerDashboardSkillsUI.container.sizeOffset_Y     = -20;
            PlayerDashboardSkillsUI.container.sizeScale_X      = 1f;
            PlayerDashboardSkillsUI.container.sizeScale_Y      = 1f;
            PlayerUI.container.add(PlayerDashboardSkillsUI.container);
            PlayerDashboardSkillsUI.active                       = false;
            PlayerDashboardSkillsUI.selectedSpeciality           = byte.MaxValue;
            PlayerDashboardSkillsUI.backdropBox                  = new SleekBox();
            PlayerDashboardSkillsUI.backdropBox.positionOffset_Y = 60;
            PlayerDashboardSkillsUI.backdropBox.sizeOffset_Y     = -60;
            PlayerDashboardSkillsUI.backdropBox.sizeScale_X      = 1f;
            PlayerDashboardSkillsUI.backdropBox.sizeScale_Y      = 1f;
            Color white = Color.white;

            white.a = 0.5f;
            PlayerDashboardSkillsUI.backdropBox.backgroundColor = white;
            PlayerDashboardSkillsUI.container.add(PlayerDashboardSkillsUI.backdropBox);
            PlayerDashboardSkillsUI.experienceBox = new SleekBox();
            PlayerDashboardSkillsUI.experienceBox.positionOffset_X = 10;
            PlayerDashboardSkillsUI.experienceBox.positionOffset_Y = -90;
            PlayerDashboardSkillsUI.experienceBox.positionScale_Y  = 1f;
            PlayerDashboardSkillsUI.experienceBox.sizeOffset_X     = -15;
            PlayerDashboardSkillsUI.experienceBox.sizeOffset_Y     = 80;
            PlayerDashboardSkillsUI.experienceBox.sizeScale_X      = 0.5f;
            PlayerDashboardSkillsUI.experienceBox.fontSize         = 14;
            PlayerDashboardSkillsUI.experienceBox.foregroundColor  = Palette.COLOR_Y;
            PlayerDashboardSkillsUI.experienceBox.foregroundTint   = ESleekTint.NONE;
            PlayerDashboardSkillsUI.backdropBox.add(PlayerDashboardSkillsUI.experienceBox);
            for (int i = 0; i < (int)PlayerSkills.SPECIALITIES; i++)
            {
                SleekButtonIcon sleekButtonIcon = new SleekButtonIcon((Texture2D)PlayerDashboardSkillsUI.icons.load("Speciality_" + i));
                sleekButtonIcon.positionOffset_X         = -85 + i * 60;
                sleekButtonIcon.positionOffset_Y         = 10;
                sleekButtonIcon.positionScale_X          = 0.5f;
                sleekButtonIcon.sizeOffset_X             = 50;
                sleekButtonIcon.sizeOffset_Y             = 50;
                sleekButtonIcon.tooltip                  = PlayerDashboardSkillsUI.localization.format("Speciality_" + i + "_Tooltip");
                sleekButtonIcon.iconImage.backgroundTint = ESleekTint.FOREGROUND;
                SleekButton sleekButton = sleekButtonIcon;
                if (PlayerDashboardSkillsUI.< > f__mg$cache2 == null)
                {
                    PlayerDashboardSkillsUI.< > f__mg$cache2 = new ClickedButton(PlayerDashboardSkillsUI.onClickedSpecialityButton);
                }
                sleekButton.onClickedButton = PlayerDashboardSkillsUI.< > f__mg$cache2;
                PlayerDashboardSkillsUI.backdropBox.add(sleekButtonIcon);
            }
            PlayerDashboardSkillsUI.skillsScrollBox = new SleekScrollBox();
            PlayerDashboardSkillsUI.skillsScrollBox.positionOffset_X = 10;
            PlayerDashboardSkillsUI.skillsScrollBox.positionOffset_Y = 70;
            PlayerDashboardSkillsUI.skillsScrollBox.sizeOffset_X     = -20;
            PlayerDashboardSkillsUI.skillsScrollBox.sizeOffset_Y     = -170;
            PlayerDashboardSkillsUI.skillsScrollBox.sizeScale_X      = 1f;
            PlayerDashboardSkillsUI.skillsScrollBox.sizeScale_Y      = 1f;
            PlayerDashboardSkillsUI.backdropBox.add(PlayerDashboardSkillsUI.skillsScrollBox);
            PlayerDashboardSkillsUI.updateSelection(0);
            PlayerSkills playerSkills        = Player.player.skills;
            Delegate     onExperienceUpdated = playerSkills.onExperienceUpdated;

            if (PlayerDashboardSkillsUI.< > f__mg$cache3 == null)
            {
                PlayerDashboardSkillsUI.< > f__mg$cache3 = new ExperienceUpdated(PlayerDashboardSkillsUI.onExperienceUpdated);
            }
            playerSkills.onExperienceUpdated = (ExperienceUpdated)Delegate.Combine(onExperienceUpdated, PlayerDashboardSkillsUI.< > f__mg$cache3);
            PlayerSkills playerSkills2  = Player.player.skills;
            Delegate     onBoostUpdated = playerSkills2.onBoostUpdated;

            if (PlayerDashboardSkillsUI.< > f__mg$cache4 == null)
            {
                PlayerDashboardSkillsUI.< > f__mg$cache4 = new BoostUpdated(PlayerDashboardSkillsUI.onBoostUpdated);
            }
            playerSkills2.onBoostUpdated = (BoostUpdated)Delegate.Combine(onBoostUpdated, PlayerDashboardSkillsUI.< > f__mg$cache4);
            PlayerSkills playerSkills3   = Player.player.skills;
            Delegate     onSkillsUpdated = playerSkills3.onSkillsUpdated;

            if (PlayerDashboardSkillsUI.< > f__mg$cache5 == null)
            {
                PlayerDashboardSkillsUI.< > f__mg$cache5 = new SkillsUpdated(PlayerDashboardSkillsUI.onSkillsUpdated);
            }
            playerSkills3.onSkillsUpdated = (SkillsUpdated)Delegate.Combine(onSkillsUpdated, PlayerDashboardSkillsUI.< > f__mg$cache5);
        }