plain_speech_balloon 0.0.51 → 0.0.52
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.
data/lib/plain_speech_balloon.rb
CHANGED
@@ -3,33 +3,34 @@ require "plain_speech_balloon/engine"
|
|
3
3
|
module PlainSpeechBalloon
|
4
4
|
module SpeechBalloonModule
|
5
5
|
def supply_default
|
6
|
-
|
7
|
-
|
8
|
-
self.settings = self.speech_balloon_template.parsed_settings['speech_balloon']
|
9
|
-
end
|
10
|
-
if self.panel
|
11
|
-
self.t = self.panel.new_t
|
12
|
-
self.z = self.panel.new_z
|
13
|
-
end
|
6
|
+
super
|
7
|
+
self.speech_balloon_template_classname = self.speech_balloon_template.classname
|
14
8
|
end
|
15
9
|
|
16
|
-
def
|
17
|
-
|
10
|
+
def speech_balloon_extend
|
11
|
+
self.new_speech_balloon unless @speech_balloon_extend
|
12
|
+
@speech_balloon_extend
|
18
13
|
end
|
19
14
|
|
20
|
-
def
|
21
|
-
|
15
|
+
def speech_balloon_extend= params
|
16
|
+
# load attributes
|
17
|
+
@speech_balloon_extend = PlainSpeechBalloon::SpeechBalloon.new params
|
18
|
+
# no supply default params
|
22
19
|
end
|
23
20
|
|
24
|
-
|
25
|
-
|
26
|
-
|
21
|
+
def new_speech_balloon params = {}
|
22
|
+
@speech_balloon_extend = PlainSpeechBalloon::SpeechBalloon.new params
|
23
|
+
@speech_balloon_extend.supply_default
|
24
|
+
end
|
27
25
|
|
28
26
|
def parsed_settings
|
29
|
-
@parsed_settings ||=
|
27
|
+
@parsed_settings ||= self.speech_balloon_template.parsed_settings
|
30
28
|
end
|
31
29
|
|
32
|
-
|
30
|
+
end
|
31
|
+
|
32
|
+
module BalloonModule
|
33
|
+
def supply_default
|
33
34
|
s = self.parsed_settings['all']['balloon']
|
34
35
|
self.x = 0
|
35
36
|
self.y = 0
|
@@ -38,12 +39,22 @@ module PlainSpeechBalloon
|
|
38
39
|
self.r = 0
|
39
40
|
end
|
40
41
|
|
41
|
-
def
|
42
|
-
|
42
|
+
def balloon_extend
|
43
|
+
self.new_balloon unless @balloon_extend
|
44
|
+
@balloon_extend ||= PlainSpeechBalloon::Balloon.new
|
45
|
+
end
|
46
|
+
|
47
|
+
def balloon_extend= params
|
48
|
+
@balloon_extend = PlainSpeechBalloon::Balloon.new params
|
43
49
|
end
|
44
50
|
|
45
|
-
def
|
46
|
-
@
|
51
|
+
def new_sballoon params = {}
|
52
|
+
@balloon_extend = PlainSpeechBalloon::Balloon.new params
|
53
|
+
@balloon_extend.supply_default
|
54
|
+
end
|
55
|
+
|
56
|
+
def parsed_settings
|
57
|
+
@parsed_settings ||= self.speech_balloon_template.parsed_settings
|
47
58
|
end
|
48
59
|
|
49
60
|
def select_system_picture
|
@@ -52,19 +63,10 @@ module PlainSpeechBalloon
|
|
52
63
|
self.system_picture_id
|
53
64
|
end
|
54
65
|
|
55
|
-
def classname
|
56
|
-
get_parent.speech_balloon_template.classname
|
57
|
-
end
|
58
|
-
|
59
66
|
end
|
60
67
|
|
61
68
|
module SpeechModule
|
62
|
-
|
63
|
-
def parsed_settings
|
64
|
-
@parsed_settings ||= get_parent.speech_balloon_template.parsed_settings
|
65
|
-
end
|
66
|
-
|
67
|
-
def supply_default
|
69
|
+
def supply_default
|
68
70
|
s = self.parsed_settings['all']['speech']
|
69
71
|
self.x = s['x_rate']
|
70
72
|
self.y = s['y_rate']
|
@@ -76,12 +78,22 @@ module PlainSpeechBalloon
|
|
76
78
|
self.fore_color = self.parsed_settings['speech_balloon']['default_fore_color']
|
77
79
|
end
|
78
80
|
|
79
|
-
def
|
80
|
-
|
81
|
+
def speech_extend
|
82
|
+
self.new_speech unless @speech_extend
|
83
|
+
@speech_extend ||= PlainSpeechBalloon::Speech.new
|
84
|
+
end
|
85
|
+
|
86
|
+
def speech_extend= params
|
87
|
+
@speech_extend = PlainSpeechBalloon::Speech.new params
|
81
88
|
end
|
82
89
|
|
83
|
-
def
|
84
|
-
@
|
90
|
+
def new_speech params = {}
|
91
|
+
@speech_extend = PlainSpeechBalloon::Speech.new params
|
92
|
+
@speech_extend.supply_default
|
93
|
+
end
|
94
|
+
|
95
|
+
def parsed_settings
|
96
|
+
@parsed_settings ||= self.speech_balloon_template.parsed_settings
|
85
97
|
end
|
86
98
|
|
87
99
|
def arrayed_quotes
|
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.
|
4
|
+
version: 0.0.52
|
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-
|
12
|
+
date: 2014-04-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sqlite3
|