plain_speech_balloon 0.0.37 → 0.0.39

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,8 @@
9
9
  <%= f.label :y %>
10
10
  <%= f.number_field :y, balloon.field_tag_attributes(:y, no_attr, :size => 5) %>
11
11
  </div>
12
+ <div class="row_break">
13
+ </div>
12
14
 
13
15
  <div class="field">
14
16
  <%= f.label :width %>
@@ -17,6 +19,8 @@
17
19
  <%= f.label :height %>
18
20
  <%= f.number_field :height, balloon.field_tag_attributes(:height, no_attr, :size => 5) %>
19
21
  </div>
22
+ <div class="row_break">
23
+ </div>
20
24
 
21
25
  <%= f.hidden_field :system_picture_id, balloon.field_tag_attributes(:system_picture_id, no_attr) %>
22
26
  <%= f.hidden_field :settings, balloon.field_tag_attributes(:settings, no_attr) %>
@@ -8,6 +8,8 @@
8
8
  <%= f.label :caption %>
9
9
  <%= f.number_field :caption, elm.field_tag_attributes(:caption, no_attr) %>
10
10
  </div>
11
+ <div class="row_break">
12
+ </div>
11
13
  <%= f.fields_for(:speech) do |sf| %>
12
14
  <%= render elm.speech_form_template, :f => sf, :speech => elm.get_speech, :no_attr => no_attr %>
13
15
  <% end %>
@@ -23,6 +25,8 @@
23
25
  <%= f.label :t %>
24
26
  <%= f.number_field :t, elm.field_tag_attributes(:t, no_attr, :size => 5) %>
25
27
  </div>
28
+ <div class="row_break">
29
+ </div>
26
30
 
27
31
  <%= f.hidden_field :panel_id, elm.field_tag_attributes(:panel_id, no_attr) %>
28
32
  <%= f.hidden_field :classname, elm.field_tag_attributes(:classname, no_attr) %>
@@ -5,6 +5,8 @@
5
5
  <%= f.label :font_size %>
6
6
  <%= f.collection_select :font_size, t_select_items(MagicNumber['speech_font_size_items']), :last, :first, {:html => {:selected => speech.font_size}}, speech.field_tag_attributes(:font_size, no_attr) %>
7
7
  </div>
8
+ <div class="row_break">
9
+ </div>
8
10
 
9
11
  <div class="field">
10
12
  <%= f.label :text_align %>
@@ -13,11 +15,15 @@
13
15
  <%= f.label :quotes %>
14
16
  <%= f.text_field :quotes, speech.field_tag_attributes(:quotes, no_attr, :size => 5) %>
15
17
  </div>
18
+ <div class="row_break">
19
+ </div>
16
20
 
17
21
  <div class="field">
18
22
  <%= f.label :content %><br />
19
23
  <%= f.text_area :content, speech.field_tag_attributes(:content, no_attr, :size => '35x7') %>
20
24
  </div>
25
+ <div class="row_break">
26
+ </div>
21
27
 
22
28
  <div class="field">
23
29
  <%= f.label :fore_color %>
@@ -28,6 +34,8 @@
28
34
  </div>
29
35
  <% end %>
30
36
  </div>
37
+ <div class="row_break">
38
+ </div>
31
39
 
32
40
  <%= f.hidden_field :x, speech.field_tag_attributes(:x, no_attr) %>
33
41
  <%= f.hidden_field :y, speech.field_tag_attributes(:y, no_attr) %>
@@ -0,0 +1,43 @@
1
+ # -*- encoding: utf-8 -*-
2
+ class PlainSpeechBalloonImport0038 < ActiveRecord::Migration
3
+ def up
4
+ SpeechBalloonTemplate.import_text(<<-HD
5
+ {
6
+ "plain@pettan.com": {
7
+ "classname": "PlainSpeechBalloon",
8
+ "caption": "透明",
9
+ "settings": {
10
+ "speech_balloon": {
11
+ "quotes": "「 」 『 』",
12
+ "default_width": 150,
13
+ "default_height": 150,
14
+ "default_font_size": 1.0,
15
+ "default_text_align": 0,
16
+ "default_fore_color": 0
17
+ },
18
+ "all": {
19
+ "balloon": {
20
+ "system_picture_id": {
21
+ "text": "iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAABl0lEQVR4nO3SwQ3AIBDAsNL9dz6WIEJC9gR5ZM3MB6f9twN4k7FIGIuEsUgYi4SxSBiLhLFIGIuEsUgYi4SxSBiLhLFIGIuEsUgYi4SxSBiLhLFIGIuEsUgYi4SxSBiLhLFIGIuEsUgYi4SxSBiLhLFIGIuEsUgYi4SxSBiLhLFIGIuEsUgYi4SxSBiLhLFIGIuEsUgYi4SxSBiLhLFIGIuEsUgYi4SxSBiLhLFIGIuEsUgYi4SxSBiLhLFIGIuEsUgYi4SxSBiLhLFIGIu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AAAAElFTkSuQmCC"
34
+ }
35
+ }
36
+ }
37
+ HD
38
+ ) {|name, attr| SpeechBalloonTemplate.store(name, attr)}
39
+ end
40
+
41
+ def down
42
+ end
43
+ end
@@ -1,3 +1,3 @@
1
1
  module PlainSpeechBalloon
2
- VERSION = "0.0.37"
2
+ VERSION = "0.0.39"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plain_speech_balloon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.37
4
+ version: 0.0.39
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: 2013-09-02 00:00:00.000000000 Z
12
+ date: 2013-10-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -82,6 +82,7 @@ files:
82
82
  - db/migrate/20130628082206_create_plain_speech_balloon_balloons.rb
83
83
  - db/migrate/20130628082225_create_plain_speech_balloon_speeches.rb
84
84
  - db/migrate/20130820100014_plain_speech_balloon_import_0_0_35.rb
85
+ - db/migrate/20130905100014_plain_speech_balloon_import_0_0_38.rb
85
86
  - db/plain.png
86
87
  - db/plain_speech_balloon_templates.json
87
88
  - db/work/icon.png