square_speech_balloon 0.0.54 → 0.0.55

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,8 +14,8 @@
14
14
  </p>
15
15
 
16
16
  <p>
17
- <b><%= t_m 'SpeechBalloon.classname' -%>:</b>
18
- <%= @speech_balloon.classname %>
17
+ <b><%= t_m 'SpeechBalloon.module_name' -%>:</b>
18
+ <%= @speech_balloon.module_name %>
19
19
  </p>
20
20
 
21
21
  <p>
@@ -4,7 +4,7 @@ class SquareSpeechBalloonImport0035 < ActiveRecord::Migration
4
4
  SpeechBalloonTemplate.import_text(<<-HD
5
5
  {
6
6
  "square@pettan.com": {
7
- "classname": "SquareSpeechBalloon",
7
+ "module_name": "SquareSpeechBalloon",
8
8
  "caption": "長方形",
9
9
  "settings": {
10
10
  "speech_balloon": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "square@pettan.com": {
3
- "classname": "SquareSpeechBalloon",
3
+ "module_name": "SquareSpeechBalloon",
4
4
  "caption": "長方形",
5
5
  "system_picture_file": "icon.png",
6
6
  "settings": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "square@pettan.com": {
3
- "classname": "SquareSpeechBalloon",
3
+ "module_name": "SquareSpeechBalloon",
4
4
  "caption": "長方形",
5
5
  "settings": {
6
6
  "speech_balloon": {
@@ -4,7 +4,7 @@ module SquareSpeechBalloon
4
4
  module SpeechBalloonModule
5
5
  def supply_default
6
6
  super
7
- self.speech_balloon_template_classname = self.speech_balloon_template.classname
7
+ self.speech_balloon_template_module_name = self.speech_balloon_template.module_name
8
8
  end
9
9
 
10
10
  def speech_balloon_extend
@@ -1,3 +1,3 @@
1
1
  module SquareSpeechBalloon
2
- VERSION = "0.0.54"
2
+ VERSION = "0.0.55"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: square_speech_balloon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.54
4
+ version: 0.0.55
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-09 00:00:00.000000000 Z
12
+ date: 2014-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sqlite3
@@ -52,12 +52,7 @@ files:
52
52
  - app/models/square_speech_balloon/speech.rb
53
53
  - app/models/square_speech_balloon/speech_balloon.rb
54
54
  - app/views/layouts/square_speech_balloon/application.html.erb
55
- - app/views/square_speech_balloon/balloons/_form.html.erb
56
- - app/views/square_speech_balloon/speeches/_form.html.erb
57
- - app/views/square_speech_balloon/speech_balloons/edit.html.erb
58
- - app/views/square_speech_balloon/speech_balloons/new.html.erb
59
55
  - app/views/square_speech_balloon/speech_balloons/show.html.erb
60
- - app/views/square_speech_balloon/speech_balloons/_form.html.erb
61
56
  - app/views/square_speech_balloon/speech_balloons/_scenario.html.erb
62
57
  - app/views/square_speech_balloon/speech_balloons/_standard.html.erb
63
58
  - config/locales/square_speech_balloon.ja.yml
@@ -1,31 +0,0 @@
1
- <div id="<%= balloon.field_tag_id(:form) %>" classname="<%= balloon.classname %>">
2
-
3
- <%= f.hidden_field :r, balloon.field_tag_attributes(:r, no_attr, :size => 5) %>
4
-
5
- <div class="field">
6
- <%= f.label :x %>
7
- <%= f.number_field :x, balloon.field_tag_attributes(:x, no_attr, :size => 5) %>
8
-
9
- <%= f.label :y %>
10
- <%= f.number_field :y, balloon.field_tag_attributes(:y, no_attr, :size => 5) %>
11
- </div>
12
- <div class="row_break">
13
- </div>
14
-
15
- <div class="field">
16
- <%= f.label :width %>
17
- <%= f.number_field :width, balloon.field_tag_attributes(:width, no_attr, :size => 5) %>
18
-
19
- <%= f.label :height %>
20
- <%= f.number_field :height, balloon.field_tag_attributes(:height, no_attr, :size => 5) %>
21
- </div>
22
- <div class="row_break">
23
- </div>
24
-
25
- <%= f.hidden_field :system_picture_id, balloon.field_tag_attributes(:system_picture_id, no_attr) %>
26
- <%= f.hidden_field :settings, balloon.field_tag_attributes(:settings, no_attr) %>
27
- <%= f.hidden_field :speech_balloon_id, balloon.field_tag_attributes(:speech_balloon_id, no_attr) %>
28
- <% unless balloon.new_record? %>
29
- <%= f.hidden_field :id, balloon.field_tag_attributes(:id, no_attr) %>
30
- <% end %>
31
- </div>
@@ -1,44 +0,0 @@
1
- <%= form_for(elm) do |f| %>
2
- <%= render 'system/error_explanation', :obj => elm %>
3
- <%= render 'system/error_explanation', :obj => elm.extend_speech_balloon %>
4
- <%= render 'system/error_explanation', :obj => elm.balloon.extend_balloon %>
5
- <%= render 'system/error_explanation', :obj => elm.speech.extend_speech %>
6
-
7
- <div class="field">
8
- <%= f.label :caption %>
9
- <%= f.number_field :caption, elm.field_tag_attributes(:caption, no_attr) %>
10
- </div>
11
- <div class="row_break">
12
- </div>
13
- <%= f.fields_for(:speech) do |sf| %>
14
- <%= render elm.speech_form_template, :f => sf, :speech => elm.get_speech, :no_attr => no_attr %>
15
- <% end %>
16
-
17
- <%= f.fields_for(:balloon) do |bf| %>
18
- <%= render elm.balloon_form_template, :f => bf, :balloon => elm.get_balloon, :no_attr => no_attr %>
19
- <% end %>
20
-
21
- <div class="field">
22
- <%= f.label :z %>
23
- <%= f.number_field :z, elm.field_tag_attributes(:z, no_attr, :size => 5) %>
24
-
25
- <%= f.label :t %><br />
26
- <%= f.number_field :t, elm.field_tag_attributes(:t, no_attr, :size => 5) %>
27
- </div>
28
- <div class="row_break">
29
- </div>
30
-
31
- <%= f.hidden_field :panel_id, elm.field_tag_attributes(:panel_id, no_attr) %>
32
- <%= f.hidden_field :classname, elm.field_tag_attributes(:classname, no_attr) %>
33
- <%= f.hidden_field :speech_balloon_template_id, elm.field_tag_attributes(:speech_balloon_template_id, no_attr) %>
34
- <% unless elm.new_record? %>
35
- <%= f.hidden_field :id, elm.field_tag_attributes(:id, no_attr) %>
36
- <% end %>
37
-
38
- <div class="actions">
39
- <%= f.submit t('speech_balloons.submit'), :class => "submit" %>
40
- </div>
41
- <% if no_attr > 0 %>
42
- <div class="submit-new-form" panel_id="<%= elm.tag_panel_id -%>" element_type="<%= elm.tag_element_type -%>"></div>
43
- <% end %>
44
- <% end %>
@@ -1,7 +0,0 @@
1
- <h1><%= t('speech_balloons.edit.title') %></h1>
2
- <p id="notice"><%= notice %></p>
3
-
4
- <h2><%= t('home.index.catch') -%></h2>
5
- <%= render 'panels/standard', :panel => @panel, :operators => @operators %>
6
- <h2><%= t('speech_balloons.update_speech_balloon') -%></h2>
7
- <%= render @speech_balloon.form_template, :elm => @speech_balloon, :no_attr => 0 %>
@@ -1,7 +0,0 @@
1
- <h1><%= t('speech_balloons.new.title') %></h1>
2
- <p id="notice"><%= notice %></p>
3
-
4
- <h2><%= t('home.index.catch') -%></h2>
5
- <%= render 'panels/standard', :panel => @panel, :operators => @operators %>
6
- <h2><%= t('speech_balloons.create_speech_balloon') -%></h2>
7
- <%= render @speech_balloon.form_template, :elm => @speech_balloon, :no_attr => 0 %>
@@ -1,49 +0,0 @@
1
- <div class="field">
2
- <%= f.label :writing_format_id %>
3
- <%= f.collection_select :writing_format_id, WritingFormat.list.map {|l| [l.caption, l.id] }, *speech.select_tag_attributes(speech.writing_format_id, :writing_format_id, no_attr) %>
4
-
5
- <%= f.label :font_size %>
6
- <%= f.collection_select :font_size, t_select_items(manifest.select_items['magic_number']['speech_font_size_items']), *speech.select_tag_attributes(speech.font_size, :font_size, no_attr) %>
7
- </div>
8
- <div class="row_break">
9
- </div>
10
-
11
- <div class="field">
12
- <%= f.label :text_align %>
13
- <%= f.collection_select :text_align, t_select_items(manifest.select_items['magic_number']['speech_text_align_items']), *speech.select_tag_attributes(speech.text_align, :text_align, no_attr) %>
14
-
15
- <%= f.label :quotes %>
16
- <%= f.text_field :quotes, speech.field_tag_attributes(:quotes, no_attr, :size => 5) %>
17
- </div>
18
- <div class="row_break">
19
- </div>
20
-
21
- <div class="field">
22
- <%= f.label :content %><br />
23
- <%= f.text_area :content, speech.field_tag_attributes(:content, no_attr, :size => '35x7') %>
24
- </div>
25
- <div class="row_break">
26
- </div>
27
-
28
- <div class="field">
29
- <%= f.label :fore_color %>
30
- <%= f.text_field :fore_color, speech.field_tag_attributes(:fore_color, no_attr, :size => 8) %>
31
- <% if speech.has_helper?(:fore_color) %>
32
- <div class="speech-fore_color-wrap">
33
- <%# render speech.form_helper_template(:fore_color), :elm => speech, :no_attr => no_attr %>
34
- </div>
35
- <% end %>
36
- </div>
37
- <div class="row_break">
38
- </div>
39
-
40
- <%= f.hidden_field :x, speech.field_tag_attributes(:x, no_attr) %>
41
- <%= f.hidden_field :y, speech.field_tag_attributes(:y, no_attr) %>
42
- <%= f.hidden_field :width, speech.field_tag_attributes(:width, no_attr) %>
43
- <%= f.hidden_field :height, speech.field_tag_attributes(:height, no_attr) %>
44
- <%= f.hidden_field :settings, speech.field_tag_attributes(:settings, no_attr) %>
45
- <%= f.hidden_field :speech_balloon_id, speech.field_tag_attributes(:speech_balloon_id, no_attr) %>
46
-
47
- <% unless speech.new_record? %>
48
- <%= f.hidden_field :id, speech.field_tag_attributes(:id, no_attr) %>
49
- <% end %>