zombie_mp/Assets/HQ FPS Weapons/Scripts/_Events/Attributes/Reorderable.cs
Sewmina Dilshan 68183e5317 initial
2021-08-23 13:28:33 +05:30

45 lines
1.4 KiB
C#

using UnityEngine;
namespace HQFPSWeapons {
public class Reorderable : PropertyAttribute {
public bool add;
public bool remove;
public bool draggable;
public bool singleLine;
public string elementNameProperty;
public string elementNameOverride;
public string elementIconPath;
public Reorderable()
: this(null) {
}
public Reorderable(string elementNameProperty)
: this(true, true, true, elementNameProperty, null, null) {
}
public Reorderable(string elementNameProperty, string elementIconPath)
: this(true, true, true, elementNameProperty, null, elementIconPath) {
}
public Reorderable(string elementNameProperty, string elementNameOverride, string elementIconPath)
: this(true, true, true, elementNameProperty, elementNameOverride, elementIconPath) {
}
public Reorderable(bool add, bool remove, bool draggable, string elementNameProperty = null, string elementIconPath = null)
: this(add, remove, draggable, elementNameProperty, null, elementIconPath) {
}
public Reorderable(bool add, bool remove, bool draggable, string elementNameProperty = null, string elementNameOverride = null, string elementIconPath = null) {
this.add = add;
this.remove = remove;
this.draggable = draggable;
this.elementNameProperty = elementNameProperty;
this.elementNameOverride = elementNameOverride;
this.elementIconPath = elementIconPath;
}
}
}