Skip to content
Joshua Cline edited this page Aug 21, 2015 · 4 revisions

The note model for the character note is below:

{
  "name": "Character",

  "properties": [
    {
      "key": "name",
      "label": "Name",
      "type": "string",
      "default": ""
    },

    {
      "key": "gender",
      "label": "Gender",
      "type": "string",
      "default": ""
    },

    {
      "key": "age",
      "label": "Age",
      "type": "int",
      "default": 18,
      "min": -999999,
      "max": 999999
    },

    {
      "key": "summary",
      "label": "Summary",
      "type": "string",
      "default": "",
      "multiline": true,
      "size": 400
    },

    {
      "key": "image",
      "label": "Image",
      "type": "resource",
      "filter": "Image files (*.png;*.jpg;*.gif)|*.png;*.jpg;*.gif",
      "resource": "image",
      "size": 400
    }
  ],

  "view": [
    {
      "control": "label",
      "property": "name",
      "font": {
        "settings": true,
        "size": 24
      }
    },

    {
      "control": "label",
      "property": "gender",
      "textwrap": [ "Gender: " ],
      "font": {
        "settings": true,
        "size": 9
      }
    },

    {
      "control": "label",
      "property": "age",
      "textwrap": [ "Age: " ],
      "font": {
        "settings": true,
        "size": 9
      }
    },

    {
      "control": "biglabel",
      "property": "summary",
      "size": 400,
      "border": true,
      "font": {
        "settings": true,
        "size": 10
      }
    },

    {
      "control": "image",
      "property": "image",
      "size": 400,
      "border": true
    }
  ]
}

The following is a character with powers (Superhero) note: (I cant figure out how to publish to workshop so here it is. ~Jcc10)

{
  "name": "Character with Powers",

  "properties": [
    {
      "key": "name",
      "label": "Name",
      "type": "string",
      "default": ""
    },

    {
      "key": "aliases",
      "label": "Aliases",
      "type": "string",
      "default": ""
    },

    {
      "key": "gender",
      "label": "Gender",
      "type": "string",
      "default": ""
    },

    {
      "key": "dob",
      "label": "Date of birth",
      "type": "date"
    },

    {
      "key": "summary",
      "label": "Summary",
      "type": "string",
      "default": "",
      "multiline": true,
      "size": 200
    },

    {
      "key": "appearance",
      "label": "Appearance",
      "type": "string",
      "default": "",
      "multiline": true,
      "size": 200
    },

    {
      "key": "powers",
      "label": "Powers",
      "type": "string",
      "default": "",
      "multiline": true,
      "size": 200
    },
	
    {
      "key": "image",
      "label": "Image",
      "type": "resource",
      "filter": "Image files (*.png;*.jpg;*.gif)|*.png;*.jpg;*.gif",
      "resource": "image",
      "size": 400
    }
  ],

  "view": [
    {
      "control": "label",
      "property": "name",
      "font": {
        "settings": true,
        "size": 24
      }
    },

    {
      "control": "label",
      "property": "aliases",
      "textwrap": [ "Aliases: " ],
      "font": {
        "settings": true,
        "size": 9
      }
    },

    {
      "control": "label",
      "property": "gender",
      "textwrap": [ "Gender: " ],
      "font": {
        "settings": true,
        "size": 9
      }
    },

    {
      "control": "label",
      "property": "dob",
      "textwrap": [ "Date of birth: " ],
      "format": "MMMM d, yyyy",
      "font": {
        "settings": true,
        "size": 9
      }
    },

    {
      "control": "biglabel",
      "property": "summary",
      "size": 200,
      "border": true,
      "font": {
        "settings": true,
        "size": 10
      }
    },

    {
      "control": "biglabel",
      "property": "appearance",
      "size": 200,
      "border": true,
      "font": {
        "settings": true,
        "size": 10
      }
    },
	
    {
      "control": "biglabel",
      "property": "powers",
      "size": 200,
      "border": true,
      "font": {
        "settings": true,
        "size": 10
      }
    },

    {
      "control": "image",
      "property": "image",
      "size": 400,
      "border": true
    }
  ]
}
Clone this wiki locally