plain_speech_balloon 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,7 +24,20 @@ module PlainSpeechBalloon
24
24
  end
25
25
 
26
26
  module BalloonModule
27
- def supply_default parsed_settings
27
+ def new_speech_balloon
28
+ @new_speech_balloon
29
+ end
30
+
31
+ def new_speech_balloon= v
32
+ @new_speech_balloon = v
33
+ end
34
+
35
+ def get_speech_balloon
36
+ self.speech_balloon || @new_speech_balloon
37
+ end
38
+
39
+ def supply_default
40
+ parsed_settings = get_speech_balloon.speech_balloon_template.parsed_settings
28
41
  s = parsed_settings['all']['balloon']
29
42
  self.x = 0
30
43
  self.y = 0
@@ -41,15 +54,30 @@ module PlainSpeechBalloon
41
54
  @extend_balloon = PlainSpeechBalloon::Balloon.new params
42
55
  end
43
56
 
44
- def select_system_picture parsed_settings
57
+ def select_system_picture
58
+ parsed_settings = get_speech_balloon.speech_balloon_template.parsed_settings
45
59
  s = parsed_settings['all']['balloon']
46
60
  self.system_picture_id = s['system_picture_id']
61
+ self.system_picture_id
47
62
  end
48
63
 
49
64
  end
50
65
 
51
66
  module SpeechModule
52
- def supply_default parsed_settings
67
+ def new_speech_balloon
68
+ @new_speech_balloon
69
+ end
70
+
71
+ def new_speech_balloon= v
72
+ @new_speech_balloon = v
73
+ end
74
+
75
+ def get_speech_balloon
76
+ self.speech_balloon || @new_speech_balloon
77
+ end
78
+
79
+ def supply_default
80
+ parsed_settings = get_speech_balloon.speech_balloon_template.parsed_settings
53
81
  s = parsed_settings['all']['speech']
54
82
  self.x = s['x_rate']
55
83
  self.y = s['y_rate']
@@ -1,3 +1,3 @@
1
1
  module PlainSpeechBalloon
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
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.2
4
+ version: 0.0.3
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-06-29 00:00:00.000000000 Z
12
+ date: 2013-06-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails