speech_balloon_template_module_name: speech_balloon_template.get('module_name')\r
}\r
\r
- panel: () ->\r
- new Pettanr.Cache.Retriever(Pettanr.Panel, @get('panel_id'))\r
- \r
- speech_balloon_template: () ->\r
- new Pettanr.Cache.Retriever(Pettanr.SpeechBalloonTemplate, @get('speech_balloon_template_id'))\r
+ @trace_routes: () ->\r
+ {\r
+ symbol: ['speech_balloon_template', 'system_picture'],\r
+ }\r
\r
@has_picture: () ->\r
false\r
\r
- symbol_option: () ->\r
- @get_parent('speech_balloon_template', this, {\r
- success: (speech_balloon_template) => \r
- speech_balloon_template.get_parent('system_picture', this, {\r
- success: (system_picture) => \r
- @trigger('ready:symbol', system_picture.tmb_opt_img_tag())\r
+ filer_caption: (context, options) ->\r
+ @get_child('balloon', this, {\r
+ success: (balloon) => \r
+ @get_child('speech', this, {\r
+ success: (speech) => \r
+ plain_scenario = @plain_scenario() + balloon.plain_scenario() + speech.plain_scenario()\r
+ options.success.call(context, plain_scenario)\r
+ fail: (response, opt) =>\r
+ options.fail.call(context, response, opt)\r
})\r
- })\r
- \r
- \r
- filer_caption: () ->\r
- @retrieve(this, {\r
- success: (speech_balloon) => \r
- caption = speech_balloon.escape('caption')\r
- @trigger('ready:caption', caption)\r
+ fail: (response, opt) =>\r
+ options.fail.call(context, response, opt)\r
})\r
\r
plain_scenario: () ->\r
- @get('caption')\r
+ @escape('caption')\r
\r
element_face: () ->\r
new Pettanr.Views.SpeechBalloon.ElementFace({element: this})\r
initialize: (attr, options) ->\r
super(attr, options)\r
\r
-class Pettanr.SpeechBalloon.TraceFromBalloon\r
- \r
- constructor: (options) ->\r
- _.extend(this, Backbone.Events)\r
- \r
- trace: (balloon) ->\r
- @balloon(balloon)\r
- \r
- balloon: (balloon) ->\r
- balloon.get_parent('speech_balloon', this, {\r
- success: (speech_balloon) => \r
- @trigger('trace', speech_balloon)\r
- })\r
- \r
-class Pettanr.SpeechBalloon.TraceFromSpeech\r
- \r
- constructor: (options) ->\r
- _.extend(this, Backbone.Events)\r
- \r
- trace: (speech) ->\r
- @speech(speech)\r
- \r
- speech: (speech) ->\r
- speech.get_parent('speech_balloon', this, {\r
- success: (speech_balloon) => \r
- @trigger('trace', speech_balloon)\r
- })\r
- \r