 CocoClass = require 'core/CocoClass'
 createjs = require 'lib/createjs-parts'
+
+# Default parameters are using short name (char)
+DEFAULT_STYLE_CHAR = {dialogue: 'D', say: 'S', name: 'N', variable: 'V', text: 'T'}
+DEFAULT_LABEL_OPTIONS  = {
+  marginX: {D: 5, S: 6, N: 3, V: 0, T: 0},
+  marginY: {D: 6, S: 4, N: 3, V: 0, T: 0},
+  fontWeight: {D: 'bold', S: 'bold', N: 'bold', V: 'bold', T: 'bold'},
+  shadow: {D: false, S: true, N: true, V: true, T: false},
+  shadowColor: {D: '#FFF', S: '#000', N: '#000', V: "#000", T: "#FFF"},
+  fontSize: {D: 25, S: 12, N: 24, V: 18, T: 20},
+  lineSpacing: {D: 2, S: 2, N: 2, V: 2, T: 2},
+  fontFamily: {D: 'Arial', S: 'Arial', N: 'Arial', B: 'Arial', V: 'Arial', T: 'Arial'},
+  textAlign: {D: 'left', S: 'left', N: 'left', B: 'left', V: 'left', T: 'left'},
+  fontColor: {D: '#000', S: '#FFF', N: '#6c6', V: '#fff', T: '#000'},
+  backgroundFillColor: {D: 'white', S: 'rgba(0,0,0,0.4)', N: 'rgba(0,0,0,0.7)', V: 'rgba(0,0,0,0.7)', T: 'rgba(0,0,0,0)'},
+  backgroundStrokeColor: {D: 'black', S: 'rgba(0,0,0,0.6)', N: 'rgba(0,0,0,0)', V: 'rgba(0,0,0,0)', T: 'rgba(0,0,0,0)'},
+  backgroundStrokeStyle: {D: 2, S: 1, N: 1, V: 1, T: 0},
+  backgroundBorderRadius: {D: 10, S: 3, N: 3, V: 3, T: 0},
+  layerPriority: {D: 10, S: 5, N: 5, V: 5, T: 10},
+  maxWidth: {D: 300, S: 300, N: 180, V: 100, T: 100},
+  maxLength: {D: 100, S: 100, N: 30, V: 30, T: 100}
+}
+
 
 module.exports = class Label extends CocoClass
   @STYLE_DIALOGUE = 'dialogue'  # A speech bubble from a script


  update: ->
    return unless @text and @sprite.sprite
    offset = @sprite.getOffset? (if @style in ['dialogue', 'say'] then 'mouth' else 'aboveHead')
    offset ?= { x: 0, y: 0 }  # temp (if not Lank)
    offset.y += 10 if @style is 'variable'
    rotation = @sprite.getRotation()
    offset.x *= -1 if rotation >= 135 or rotation <= -135
    @label.x = @background.x = @sprite.sprite.x + offset.x

      g.quadraticCurveTo(0, 0, radius, 0)
    else
      # Just draw a rounded rectangle
      o.hPos ?= "middle"
      o.vPos ?= "middle"
      pointerHeight = 0
      g.drawRoundRect(o.label.x - o.marginX, o.label.y - o.marginY, w, h, o.backgroundBorderRadius)
