- raise Pettanr::NotWork unless @operators.author.working_panel
- @speech_balloon_template = SpeechBalloonTemplate.show params[:speech_balloon_template_id], @operators
-
- @panel = Panel.edit(@operators.author.working_panel, @operators)
- @speech_balloon = SpeechBalloon.new :panel_id => @panel.id, :speech_balloon_template_id => @speech_balloon_template.id
- @speech_balloon.boost
- @speech_balloon.supply_default
- @speech_balloon.get_balloon.supply_default
- @speech_balloon.get_speech.supply_default
-
- respond_to do |format|
- format.html {
- render @speech_balloon_template.engine_name + '/speech_balloons/new'
- }
- format.json { render :json => @speech_balloon.to_json(SpeechBalloon.show_json_opt) }
- end