Thang Editor now centers unit better, lists action names in a more useful order.

This commit is contained in:
Nick Winter 2015-02-13 09:03:13 -08:00
parent 7519ef3616
commit 937bbf211c

View file

@ -21,7 +21,7 @@ SaveVersionModal = require 'views/editor/modal/SaveVersionModal'
template = require 'templates/editor/thang/thang-type-edit-view'
storage = require 'core/storage'
CENTER = {x: 200, y: 300}
CENTER = {x: 200, y: 400}
commonTasks = [
'Upload the art.'
@ -189,7 +189,9 @@ module.exports = class ThangTypeEditView extends RootView
context.fileSizeString = @fileSizeString
context
getAnimationNames: -> _.keys(@thangType.get('actions') or {})
getAnimationNames: ->
_.sortBy _.keys(@thangType.get('actions') or {}), (a) ->
{move: 1, cast: 2, attack: 3, idle: 4, portrait: 6}[a] or 5
afterRender: ->
super()