1 class Pettanr.Views.SpeechBalloon.ElementSymbol extends Pettanr.View
\r
3 className: 'elements-tab-face-icon'
\r
5 initialize: (options) ->
\r
6 @element = options.element
\r
10 @element.get_parent('speech_balloon_template', this, {
\r
11 success: (@speech_balloon_template) =>
\r
12 @speech_balloon_template.get_parent('system_picture', this, {
\r
13 success: (@system_picture) =>
\r
14 icon = new Pettanr.View.Icon(@system_picture.symbol_file())
\r
15 this.$el.html(icon.render().el)
\r
20 class Pettanr.Views.SpeechBalloon.ElementFace extends Pettanr.View
\r
22 className: 'elements-tab'
\r
24 initialize: (options) ->
\r
25 @element = options.element
\r
29 symbol = new Pettanr.Views.SpeechBalloon.ElementSymbol({element: @element})
\r
30 this.$el.append(symbol.render().el)
\r