コード例 #1
0
        public static void Options(Rect fullArea, Rect leftArea, Rect mainArea)
        {
            GUI.Box(fullArea, "", "backgroundBox");

            GUILayout.BeginArea(fullArea);
            optionsScrollPos = GUILayout.BeginScrollView(optionsScrollPos);
            RPGMakerGUI.Title("Stat Options");
            RPGMakerGUI.SubTitle("Exp Options");
            RPGMakerGUI.Toggle("Allow Exp To Overflow", ref ASVT.AllowExpToOverflow);
            RPGMakerGUI.SubTitle("Stat Options");
            ASVT.RegenInterval = RPGMakerGUI.FloatField("RegenInterval:", ASVT.RegenInterval);

            RPGMakerGUI.SubTitle("Titles");
            ASVT.AttributeNameTitle = RPGMakerGUI.TextField("Attribute Title:", ASVT.AttributeNameTitle);
            ASVT.StatisticNameTitle = RPGMakerGUI.TextField("Statistic Title:", ASVT.StatisticNameTitle);
            ASVT.VitalNameTitle     = RPGMakerGUI.TextField("Vital Title:", ASVT.VitalNameTitle);
            ASVT.TraitNameTitle     = RPGMakerGUI.TextField("Trait Title:", ASVT.TraitNameTitle);

            RPGMakerGUI.SubTitle("Movement");
            ASVT.JumpHeight           = RPGMakerGUI.FloatField("Player Jump Height:", ASVT.JumpHeight);
            ASVT.BaseMovementSpeed    = RPGMakerGUI.FloatField("Base Player Movement Speed:", ASVT.BaseMovementSpeed);
            ASVT.BaseNpcMovementSpeed = RPGMakerGUI.FloatField("Base NPC Movement Speed:", ASVT.BaseNpcMovementSpeed);
            if (RPGMakerGUI.Toggle("Use Stat as Movement Multiplier?", ref ASVT.UseStatForMovementSpeed))
            {
                RPGMakerGUI.PopupID <Rm_StatisticDefintion>("Statistic:", ref ASVT.StatForMovementID, 1);
                RPGMakerGUI.Help("Move Speed = BaseMoveSpeed * Stat:", 1);
            }

            GUILayout.EndScrollView();
            GUILayout.EndArea();
        }