Post by Admin on Feb 14, 2017 15:27:24 GMT
DK UMA Items are ScriptableObjects created using the DK UMA Items Manager.
They are gathering the necessary informations and Elements for both Male and Female avatars.
Variables :
[Tooltip("Is the Item available in game ?")]
public bool Active = true;
[System.Serializable]
public class ElementData {
[Tooltip("The icon (Sprite) for the item used in an inventory.")]
public Sprite Icon;
[Tooltip("The DK Slot used by the item. It can be left blank, if blank, the assigned DK Overlay will be used.")]
public DKSlotData Slot;
[Tooltip("The DK Overlay used by the Slot of the item OR the Overlay used by the Item if no Slot is assigned. " +
"If a Slot is assigned and no Overlay is assigned, the Slot requires to have a Linked Overlay in its own settings.")]
public DKOverlayData Overlay;
[Tooltip("The Color Preset assigned to the Overlay.")]
public ColorPresetData ColorPreset;
[Tooltip("")]
public Color color;
[Tooltip("A DK Overlay can use two stacked overlays to cover it. Those stacked overlays are managed by the Item Overlay.")]
public ColorPresetData Stacked1Color;
[Tooltip("A DK Overlay can use two stacked overlays to cover it. Those stacked overlays are managed by the Item Overlay.")]
public ColorPresetData Stacked2Color;
[Tooltip("")]
public ColorPresetData Dirt1Color;
public ColorPresetData DirtColor;
}
public enum GenderEnum { Both, Female, Male };
public enum OtherLayersEnum { Yes, No };
public enum LayerEnum { Sub, Main, Cover };
public enum TypeEnum { DK_UMA, Other };
public enum PlaceEnum { Head, Shoulder, Torso, ArmBand, Wrist, Hand, Belt, Legs, LegBand, Feet, Backpack, Cloak, Collar, RingLeft, RingRight, LeftHand, RightHand };
[System.Serializable]
public class OptionsData {
[Tooltip("")]
public TypeEnum Type = TypeEnum.DK_UMA;
[Tooltip("The place of the item on the avatar.")]
public PlaceEnum Place = PlaceEnum.Head;
[Tooltip("The gender able to use the item.")]
public GenderEnum Gender = GenderEnum.Both;
[Tooltip("The Layer to apply the item on the avatar.")]
public LayerEnum Layer = LayerEnum.Main;
[Tooltip("Does the item removes the other items of the other layers at the same Place ?")]
public OtherLayersEnum RemoveOtherLayers = OtherLayersEnum.Yes;
}
public OptionsData Options = new OptionsData();
[System.Serializable]
public class ElementsData {
public ElementData Male = new ElementData();
public ElementData Female = new ElementData();
}
public ElementsData Elements = new ElementsData();
They are gathering the necessary informations and Elements for both Male and Female avatars.
Variables :
[Tooltip("Is the Item available in game ?")]
public bool Active = true;
[System.Serializable]
public class ElementData {
[Tooltip("The icon (Sprite) for the item used in an inventory.")]
public Sprite Icon;
[Tooltip("The DK Slot used by the item. It can be left blank, if blank, the assigned DK Overlay will be used.")]
public DKSlotData Slot;
[Tooltip("The DK Overlay used by the Slot of the item OR the Overlay used by the Item if no Slot is assigned. " +
"If a Slot is assigned and no Overlay is assigned, the Slot requires to have a Linked Overlay in its own settings.")]
public DKOverlayData Overlay;
[Tooltip("The Color Preset assigned to the Overlay.")]
public ColorPresetData ColorPreset;
[Tooltip("")]
public Color color;
[Tooltip("A DK Overlay can use two stacked overlays to cover it. Those stacked overlays are managed by the Item Overlay.")]
public ColorPresetData Stacked1Color;
[Tooltip("A DK Overlay can use two stacked overlays to cover it. Those stacked overlays are managed by the Item Overlay.")]
public ColorPresetData Stacked2Color;
[Tooltip("")]
public ColorPresetData Dirt1Color;
public ColorPresetData DirtColor;
}
public enum GenderEnum { Both, Female, Male };
public enum OtherLayersEnum { Yes, No };
public enum LayerEnum { Sub, Main, Cover };
public enum TypeEnum { DK_UMA, Other };
public enum PlaceEnum { Head, Shoulder, Torso, ArmBand, Wrist, Hand, Belt, Legs, LegBand, Feet, Backpack, Cloak, Collar, RingLeft, RingRight, LeftHand, RightHand };
[System.Serializable]
public class OptionsData {
[Tooltip("")]
public TypeEnum Type = TypeEnum.DK_UMA;
[Tooltip("The place of the item on the avatar.")]
public PlaceEnum Place = PlaceEnum.Head;
[Tooltip("The gender able to use the item.")]
public GenderEnum Gender = GenderEnum.Both;
[Tooltip("The Layer to apply the item on the avatar.")]
public LayerEnum Layer = LayerEnum.Main;
[Tooltip("Does the item removes the other items of the other layers at the same Place ?")]
public OtherLayersEnum RemoveOtherLayers = OtherLayersEnum.Yes;
}
public OptionsData Options = new OptionsData();
[System.Serializable]
public class ElementsData {
public ElementData Male = new ElementData();
public ElementData Female = new ElementData();
}
public ElementsData Elements = new ElementsData();