ruby-miyako-mswin32 2.1.4 → 2.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/sample/Room3/red.rb CHANGED
@@ -4,9 +4,9 @@ class Red
4
4
  include MainComponent
5
5
 
6
6
  def init
7
- @yuki = Yuki.new(message_box[:box], command_box[:box]) do |box, cbox|
8
- select_textbox(box)
9
- select_commandbox(cbox)
7
+ @yuki = Yuki.new(message_box, command_box) do |box, cbox|
8
+ select_textbox(box[:box], box)
9
+ select_commandbox(cbox[:box], cbox)
10
10
  end
11
11
  def @yuki.text_wait(txt, w = 0.3)
12
12
  text txt
@@ -14,11 +14,13 @@ class Red
14
14
  end
15
15
 
16
16
  @akamatsu = Sprite.new(:file => "image/akamatsu.png", :type => :ck)
17
+ @akamatsu.hide
17
18
  @akamatsu.center!.bottom!
18
- @yuki.regist_parts(:akamatsu, @akamatsu)
19
+ @yuki.visibles[:akamatsu] = @akamatsu
19
20
 
20
21
  @room = Sprite.new(:file=>"image/room_red.png", :type=>:as)
21
22
  @room.center!.bottom!
23
+ @yuki.bgs[:room] = @room
22
24
 
23
25
  var[:akamatsu_aisatsu] = false if var[:akamatsu_aisatsu] == nil
24
26
  var[:release_akamatsu_book] = false if var[:release_akamatsu_book] == nil
@@ -32,8 +34,8 @@ class Red
32
34
 
33
35
  def setup
34
36
  @yuki.setup
35
- message_box.start
36
- command_box.start
37
+ @yuki.textbox_all.start
38
+ @yuki.commandbox_all.start
37
39
  @yuki.start_plot(plot)
38
40
  end
39
41
 
@@ -48,8 +50,8 @@ class Red
48
50
 
49
51
  def update
50
52
  return nil if Input.quit_or_escape?
51
- message_box.update_animation
52
- command_box.update_animation
53
+ @yuki.textbox_all.update_animation
54
+ @yuki.commandbox_all.update_animation
53
55
  @yuki.update
54
56
  r = @yuki.executing? ? @now : @yuki.result
55
57
  if @yuki.is_scenario?(r)
@@ -60,10 +62,10 @@ class Red
60
62
  end
61
63
 
62
64
  def render
63
- @room.render
64
- @yuki.render
65
- message_box.render
66
- command_box.render if @yuki.selecting?
65
+ @yuki.bgs.render
66
+ @yuki.visibles.render
67
+ @yuki.textbox_all.render
68
+ @yuki.commandbox_all.render
67
69
  end
68
70
 
69
71
  def plot
@@ -216,8 +218,8 @@ class Red
216
218
  end
217
219
 
218
220
  def final
219
- message_box.stop
220
- command_box.stop
221
+ @yuki.textbox_all.stop
222
+ @yuki.commandbox_all.stop
221
223
  end
222
224
 
223
225
  def dispose
@@ -72,8 +72,8 @@ class TitleCall
72
72
  include MainComponent
73
73
 
74
74
  def init
75
- @yuki = Yuki.new(message_box[:box]){|box|
76
- select_textbox(box)
75
+ @yuki = Yuki.new(message_box){|box|
76
+ select_textbox(box[:box], box)
77
77
  }
78
78
  @man = Sprite.new(:file=>"image/start.png", :type=>:ck)
79
79
  @man.center!.bottom!
@@ -101,14 +101,14 @@ class TitleCall
101
101
  end
102
102
 
103
103
  def final
104
- message_box.stop
104
+ @yuki.textbox_all.stop
105
105
  end
106
106
 
107
107
  def view_in
108
108
  if @wait.finish?
109
109
  if @alpha == 1.0
110
110
  @exec = :exec_yuki
111
- message_box.start
111
+ @yuki.textbox_all.start
112
112
  @yuki.start_plot
113
113
  return @now
114
114
  end
@@ -120,7 +120,7 @@ class TitleCall
120
120
  end
121
121
 
122
122
  def exec_yuki
123
- message_box.update_animation
123
+ @yuki.textbox_all.update_animation
124
124
  @yuki.update
125
125
  return @yuki.result ? @yuki.result : @now
126
126
  end
@@ -184,6 +184,6 @@ class TitleCall
184
184
 
185
185
  def render
186
186
  Bitmap.dec_alpha(@man, Screen, @alpha)
187
- message_box.render if @exec == :exec_yuki
187
+ @yuki.textbox_all.render if @exec == :exec_yuki
188
188
  end
189
189
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-miyako-mswin32
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyross Makoto
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-10 00:00:00 +09:00
12
+ date: 2010-01-01 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -180,6 +180,8 @@ files:
180
180
  - ./uninstall_miyako.rb
181
181
  has_rdoc: true
182
182
  homepage: http://www.twin.ne.jp/~cyross/Miyako/
183
+ licenses: []
184
+
183
185
  post_install_message:
184
186
  rdoc_options:
185
187
  - -c utf-8
@@ -200,9 +202,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
202
  requirements: []
201
203
 
202
204
  rubyforge_project:
203
- rubygems_version: 1.3.1
205
+ rubygems_version: 1.3.5
204
206
  signing_key:
205
- specification_version: 2
207
+ specification_version: 3
206
208
  summary: Game programming library for Ruby
207
209
  test_files: []
208
210