     'click #character-modal-costume-selecter a': 'onSelectCostume'
     'click #character-modal-ok-button': 'onOk'
 
+  previewZoomLevel: 0.5
+
   initialize: ->
     @.target = null
 
     self = @
-    zoom = 2
 
     $('#character-modal-character').draggable
       containment: '#character-modal-preview'

  onChangeX: (model, value, options) ->
    @.$el.find('input[name="character[x]"]').val(value)
    $('#character_x_value').text(value)
    $('#character-modal-character').css('left', value / 2)

  onChangeY: (model, value, options) ->
    @.$el.find('input[name="character[y]"]').val(value)
    $('#character_y_value').text(value)
    $('#character-modal-character').css('top', value / 2)

  onChangeAngle: (model, value, options) ->
    @.$el.find('input[name="character[angle]"]').val(value)

# キャラクター設定ダイアログを表現するビュー
Smalruby.CharacterModalView = Backbone.View.extend
  model: new Smalruby.Character()

