Exemple #1
0
        public PluginState(DollmasterPlugin dm)
        {
            personalityChoice = new JSONStorableStringChooser("personality", dm.personas.personalityNames, defaultPersonalityName, "Personality", (string choice) =>
            {
                dm.SetPersonality(choice);
            });

            dm.SetPersonality(personalityChoice.val);

            dm.RegisterStringChooser(personalityChoice);

            UIPopup popup = dm.ui.CreatePopup("Personality", 300, 80);

            popup.transform.Translate(0.7f, 0.065f, 0, Space.Self);
            popup.showSlider        = true;
            personalityChoice.popup = popup;

            //UIDynamicPopup personalityPopup = dm.CreatePopup(personalityChoice);
            //personalityPopup.popup.topButton.image.color = new Color(0.8f, 0.65f, 0.13f);
            //dm.CreateSpacer();
        }
        public PluginState(DollmasterPlugin dm)
        {
            personalityChoice = new JSONStorableStringChooser("personality", dm.personas.personalityNames, defaultPersonalityName, "Personality", (string choice) =>
            {
                dm.SetPersonality(choice);
            });

            dm.RegisterStringChooser(personalityChoice);
            UIDynamicPopup personalityPopup = dm.CreatePopup(personalityChoice);

            personalityPopup.popup.topButton.image.color = new Color(0.8f, 0.65f, 0.13f);

            dm.CreateSpacer();
        }