Example #1
0
    protected override void EditPart()
    {
        RPGArmor s = (RPGArmor)currentItem;

        /*if (s.ID > 0 && !s.IsCopy && updateMode)
         * {
         *      if (GUILayout.Button("Generater stronger versions", GUILayout.Width(400)))
         *      {
         *              generator = new ArmorGenerator();
         *              generator.Calculate(s);
         *              MenuMode = MenuModeEnum.ThirdWindow;
         *      }
         * }*/

        EditorUtils.Separator();

        s.ArmorClassValue = EditorUtils.IntField(s.ArmorClassValue, "Armor value");

        EditorGUILayout.PrefixLabel("has ability?");

        s.HasAbility = EditorGUILayout.Toggle(s.HasAbility, GUILayout.Width(300));

        //s.AbilityIconPath = EditorUtils.TextField(s.AbilityIconPath, "ability icon path");
        s.AbilityIconPath = EditorGUILayout.TextField(s.AbilityIconPath, GUILayout.Width(500));

        s.AbilityString = EditorGUILayout.TextField(s.AbilityString, GUILayout.Width(1000));



        ItemUtils.DisplayItemPart(s, Data);

        ItemUtils.AddEquiped(s, Data);

        //EditorUtils.Label("Effects on hit");

        //EffectUtils.EffectsEditor(s.EffectsOnHit, Data, EffectTypeUsage.ArmorTakeHit);

        //EditorUtils.Separator();

        currentItem = s;
    }