DrawOrderOverride Property - Floogen/FashionSense GitHub Wiki

What is DrawOrderOverride?

DrawOrderOverride is a property available to all appearances which, when given, changes the draw order for the appearance.

 

Property Description Options
Preposition Specifies the draw order override to be before or after the targeted appearance type. ["Before", "After"]
AppearanceType Determines the targeted appearance type to draw before or after. ["Hair", "Accessory", "Hat", "Shirt", "Pants", "Sleeves", "Shoes", "Player"]

 

Example Usage

Below is an example usage of DrawOrderOverride, which changes the FrontAccessory to draw before the player and the BackAccessory to draw before the hair.

{
  "Name": "Priestess",
  "Format": "5.3.0",
  "FrontAccessory": {
    "DisableGrayscale": true,
    "DrawOrderOverride": {
      "Preposition": "Before",
      "AppearanceType": "Player"
    },
    "StartingPosition": {
      "X": 0,
      "Y": 0
    },
    "HeadPosition": {
      "X": 0,
      "Y": 8
    },
    "AccessorySize": {
      "Width": 16,
      "Length": 32
    },
    "UniformAnimation": [
      {
        "Frame": 0,
        "Duration": 150
      },
      {
        "Frame": 1,
        "Duration": 150
      },
      {
        "Frame": 2,
        "Duration": 150
      },
      {
        "Frame": 3,
        "Duration": 300
      },
      {
        "Frame": 4,
        "Duration": 150
      },
      {
        "Frame": 5,
        "Duration": 150
      },
      {
        "Frame": 6,
        "Duration": 150
      },
      {
        "Frame": 7,
        "Duration": 150
      },
      {
        "Frame": 8,
        "Duration": 150
      },
      {
        "Frame": 9,
        "Duration": 300
      }
    ]
  },
  "BackAccessory": {
    "DisableGrayscale": true,
    "DrawOrderOverride": {
      "Preposition": "Before",
      "AppearanceType": "Hair"
    },
    "StartingPosition": {
      "X": 0,
      "Y": 32
    },
    "HeadPosition": {
      "X": 0,
      "Y": 8
    },
    "AccessorySize": {
      "Width": 16,
      "Length": 32
    },
    "UniformAnimation": [
      {
        "Frame": 0,
        "Duration": 150
      },
      {
        "Frame": 1,
        "Duration": 150
      },
      {
        "Frame": 2,
        "Duration": 150
      },
      {
        "Frame": 3,
        "Duration": 300
      },
      {
        "Frame": 4,
        "Duration": 150
      },
      {
        "Frame": 5,
        "Duration": 150
      },
      {
        "Frame": 6,
        "Duration": 150
      },
      {
        "Frame": 7,
        "Duration": 150
      },
      {
        "Frame": 8,
        "Duration": 150
      },
      {
        "Frame": 9,
        "Duration": 300
      }
    ]
  }
}