ruby-miyako 2.1.13 → 2.1.14

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -1,8 +1,8 @@
1
1
  *******************************************************************************
2
2
  【 作者名 】 サイロス誠
3
3
  【 ソフト名 】 Interactive Media Authoring System "Miyako"
4
- 【 バージョン 】 2.1.13
5
- 【 作成日 】 2010/05/20
4
+ 【 バージョン 】 2.1.14
5
+ 【 作成日 】 2010/06/11
6
6
  【 種別 】 フリーウェア
7
7
  【 開発言語 】 Ruby 1.9.1
8
8
  【 ランタイム 】 Ruby 1.9.1~,Ruby/SDL 2.1~,SDL
@@ -15,7 +15,7 @@
15
15
 
16
16
  【 注意事項 】
17
17
 
18
- 本バージョンは、2.1.13公式リリース版です。
18
+ 本バージョンは、2.1.14公式リリース版です。
19
19
  本バージョンでは、ドキュメント・リファレンスは不十分ですが、「サイログ。」内や、サンプルプログラムの紹介等で随時ドキュメントを公開して行きます。
20
20
  (RDOC化を進めていますので、我こそはと思う方は是非・・・)
21
21
 
@@ -1803,5 +1803,32 @@ v2.1.13(2010.05.20)
1803
1803
  ・リファレンスマニュアルの拡充
1804
1804
   ・Bitmap,Choice,Choices,Map,MapLayer,FixedMap,FixedMapLayer,Utility,Viewport
1805
1805
 
1806
+ v2.1.14(2010.06.11)
1807
+ <バグ修正>
1808
+ ・InitiativeScenarioEngine.add_methodメソッドが用意されていなかったのを修正
1809
+ <機能改善>
1810
+ ・Slidesの背景に、任意の画像を追加できるようにした
1811
+ ・SimpleStory#run, Story#runメソッドに、初期のhand_overを渡せるようにした
1812
+ ・フォントフェースの統一化のため、梅Plusゴシック(sans_serif)と梅明朝(serif)を同梱した
1813
+ <仕様変更>
1814
+ ・プラットフォーム関係無く、Font.serifは梅明朝、Font.sans_serifは梅Plusゴシックを取り込むようにした
1815
+ <ファイル追加>
1816
+ ・フォントファイル(梅明朝・梅Plus)
1817
+ <ファイル削除>
1818
+ <グローバル変数追加>
1819
+ <定数追加>
1820
+ <定数削除>
1821
+ <構造体追加>
1822
+ <クラス追加>
1823
+ <モジュール追加>
1824
+ <mixin>
1825
+ <クラス・モジュールメソッド追加>
1826
+ <クラス・モジュールメソッド廃止>
1827
+ <モジュール関数追加>
1828
+ <モジュール関数廃止>
1829
+ <インスタンスメソッド追加>
1830
+ <インスタンスメソッド廃止>
1831
+ <ドキュメント>
1832
+
1806
1833
  *******************************************************************************
1807
1834
  このReadMeファイルは「れ~どめ~えじた~」によって作成されました。
data/defines.h CHANGED
@@ -21,6 +21,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
21
 
22
22
  #include <SDL.h>
23
23
  #include <SDL_ttf.h>
24
+ #include <SDL_mixer.h>
24
25
  #include <SDL_endian.h>
25
26
  #include <stdlib.h>
26
27
  #include <math.h>
@@ -29,15 +30,20 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29
30
 
30
31
  typedef struct
31
32
  {
32
- SDL_Surface* surface;
33
+ SDL_Surface* surface;
33
34
  } Surface;
34
35
 
35
36
  typedef struct
36
37
  {
37
- Uint32 r;
38
- Uint32 g;
39
- Uint32 b;
40
- Uint32 a;
38
+ Mix_Music* music;
39
+ } Music;
40
+
41
+ typedef struct
42
+ {
43
+ Uint32 r;
44
+ Uint32 g;
45
+ Uint32 b;
46
+ Uint32 a;
41
47
  } MiyakoColor;
42
48
 
43
49
  typedef struct
data/extconf.rb CHANGED
@@ -31,6 +31,7 @@ if enable_config("static-libs",false) then
31
31
  have_library("SDL")
32
32
  have_library("freetype")
33
33
  have_library("SGE")
34
+ have_library("SDL_mixer")
34
35
  end
35
36
 
36
37
  if have_library("SDL_ttf","TTF_Init") then
@@ -41,4 +42,8 @@ if have_library("SGE","sge_Line") then
41
42
  $CFLAGS+= " -D HAVE_SGE "
42
43
  end
43
44
 
45
+ if have_library("SDL_mixer","Mix_Init") then
46
+ $CFLAGS+= " -D HAVE_SDL_MIXER "
47
+ end
48
+
44
49
  create_makefile('miyako_no_katana')
data/install_miyako.rb CHANGED
@@ -55,6 +55,9 @@ baselibdir = Config::CONFIG["sitelibdir"]
55
55
  sitelibdir = baselibdir + "/Miyako"
56
56
  apidir = sitelibdir + "/API"
57
57
  extdir = sitelibdir + "/EXT"
58
+ fontdir = sitelibdir + "/fonts"
59
+ fontdocdir1 = fontdir + "/docs-ume"
60
+ fontdocdir2 = fontdir + "/docs-mplus"
58
61
 
59
62
  if FileTest.exist?(sitelibdir) && not_force
60
63
  puts "#{sitelibdir} is arleady exists."
@@ -66,6 +69,9 @@ FileUtils.remove_dir(sitelibdir, true)
66
69
  FileUtils.mkpath(sitelibdir, option)
67
70
  FileUtils.mkpath(apidir, option)
68
71
  FileUtils.mkpath(extdir, option)
72
+ FileUtils.mkpath(fontdir, option)
73
+ FileUtils.mkpath(fontdocdir1, option)
74
+ FileUtils.mkpath(fontdocdir2, option)
69
75
 
70
76
  if osn =~ /darwin/ # Mac OS X
71
77
  Dir.glob(ext_dir + "*.bundle"){|fname| FileUtils.install(fname, sitelibdir, option)}
@@ -76,14 +82,26 @@ Dir.glob("lib/*.rb"){|fname| FileUtils.install(fname, baselibdir, option)}
76
82
  Dir.glob("lib/Miyako/*.rb"){|fname| FileUtils.install(fname, sitelibdir, option)}
77
83
  Dir.glob("lib/Miyako/API/*.rb"){|fname| FileUtils.install(fname, apidir, option)}
78
84
  Dir.glob("lib/Miyako/EXT/*.rb"){|fname| FileUtils.install(fname, extdir, option)}
85
+ Dir.glob("lib/Miyako/fonts/*.ttf"){|fname| FileUtils.install(fname, fontdir, option)}
86
+ Dir.glob("lib/Miyako/fonts/README"){|fname| FileUtils.install(fname, fontdir, option)}
87
+ Dir.glob("lib/Miyako/fonts/ChangeLog"){|fname| FileUtils.install(fname, fontdir, option)}
88
+ Dir.glob("lib/Miyako/fonts/docs-ume/*"){|fname| FileUtils.install(fname, fontdocdir1, option)}
89
+ Dir.glob("lib/Miyako/fonts/docs-mplus/*"){|fname| FileUtils.install(fname, fontdocdir2, option)}
79
90
 
80
91
  unless osn =~ /mswin|mingw|cygwin|bccwin/
81
92
  FileUtils.chmod(0755, sitelibdir)
82
93
  FileUtils.chmod(0755, apidir)
83
94
  FileUtils.chmod(0755, extdir)
95
+ FileUtils.chmod(0755, fontdir)
84
96
  FileUtils.chmod(0644, sitelibdir+'/miyako.rb')
85
97
  Dir.glob(sitelibdir+"/*.so"){|fname| FileUtils.chmod(0644, fname)} # for linux,bsd
86
98
  Dir.glob(sitelibdir+"/*.bundle"){|fname| FileUtils.chmod(0644, fname)} # for macosx
87
99
  Dir.glob(apidir+"/*.rb"){|fname| FileUtils.chmod(0644, fname)}
88
100
  Dir.glob(extdir+"/*.rb"){|fname| FileUtils.chmod(0644, fname)}
101
+ Dir.glob(fontdir+"/*.ttf"){|fname| FileUtils.chmod(0644, fname)}
102
+ FileUtils.chmod(0644, fontdir+"/README")
103
+ FileUtils.chmod(0644, fontdir+"/ChangeLog")
104
+ Dir.glob(fontdir+"/*.ttf"){|fname| FileUtils.chmod(0644, fname)}
105
+ Dir.glob(fontdocdir1+"/*"){|fname| FileUtils.chmod(0644, fname)}
106
+ Dir.glob(fontdocdir2+"/*"){|fname| FileUtils.chmod(0644, fname)}
89
107
  end
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
  =begin
3
3
  --
4
4
  Miyako v2.1
@@ -110,6 +110,8 @@ module Miyako
110
110
  @now_loops = loops
111
111
  @loop_cnt = 1
112
112
  @cnt_up_flag = false
113
+ @offset_ticks = 0
114
+ reset_ticks
113
115
  end
114
116
 
115
117
  #===インスタンスの複写
@@ -162,6 +164,7 @@ module Miyako
162
164
  end
163
165
  @now_loops = loops ? loops : @loops
164
166
  SDL::Mixer.play_music(@bgm, @now_loops)
167
+ setup_ticks
165
168
  @loop_cnt = 1
166
169
  if block_given?
167
170
  yield self
@@ -189,6 +192,7 @@ module Miyako
189
192
  end
190
193
  @now_loops = loops ? loops : @loops
191
194
  SDL::Mixer.fade_in_music(@bgm, @now_loops)
195
+ setup_ticks
192
196
  @@playing_bgm = self
193
197
  @loop_cnt = 1
194
198
  return true
@@ -220,7 +224,10 @@ module Miyako
220
224
  #返却値:: 自分自身を返す
221
225
  def pause
222
226
  return self if $not_use_audio
223
- SDL::Mixer.pause_music if SDL::Mixer.play_music?
227
+ if SDL::Mixer.play_music?
228
+ SDL::Mixer.pause_music
229
+ @pos_ticks += SDL.get_ticks-@start_tick
230
+ end
224
231
  return self
225
232
  end
226
233
 
@@ -248,7 +255,10 @@ module Miyako
248
255
  #返却値:: 自分自身を返す
249
256
  def resume
250
257
  return self if $not_use_audio
251
- SDL::Mixer.resume_music if SDL::Mixer.pause_music?
258
+ if SDL::Mixer.pause_music?
259
+ SDL::Mixer.resume_music
260
+ @start_tick = SDL.get_ticks
261
+ end
252
262
  return self
253
263
  end
254
264
 
@@ -257,7 +267,10 @@ module Miyako
257
267
  #返却値:: 自分自身を返す
258
268
  def stop
259
269
  return self if $not_use_audio
260
- SDL::Mixer.halt_music if SDL::Mixer.play_music?
270
+ if SDL::Mixer.play_music?
271
+ SDL::Mixer.halt_music
272
+ reset_ticks
273
+ end
261
274
  @loop_cnt = @now_loops + 1
262
275
  @@playing_bgm = nil if @@playing_bgm == self
263
276
  return self
@@ -286,6 +299,42 @@ module Miyako
286
299
  @bgm = nil
287
300
  end
288
301
 
302
+ def pos
303
+ return 0 unless @start_tick
304
+ SDL.get_ticks - @start_tick + @offset_ticks + @pos_ticks
305
+ end
306
+
307
+ def offset
308
+ @offset_ticks
309
+ end
310
+
311
+ def offset
312
+ @offset_ticks
313
+ end
314
+
315
+ def offset=(val)
316
+ @offset_ticks = val
317
+ end
318
+
319
+ def setup_ticks
320
+ @start_tick = SDL.get_ticks
321
+ @pos_ticks = 0
322
+ self.offset = @offset_ticks
323
+ end
324
+
325
+ def reset_ticks
326
+ @start_tick = nil
327
+ @pos_ticks = 0
328
+ self.offset = @offset_ticks
329
+ end
330
+
331
+ def rewind
332
+ if SDL::Mixer.play_music?
333
+ SDL::Mixer.rewind_music
334
+ setup_ticks
335
+ end
336
+ end
337
+
289
338
  alias_method(:fadeOut, :fade_out)
290
339
  end
291
340
 
@@ -421,7 +470,7 @@ module Miyako
421
470
  raise MiyakoValueError.over_range(vol, 0, 255) unless (0..255).cover?(vol)
422
471
  end
423
472
  if time
424
- raise MiyakoValueError.over_range(time, 1, nil) unless time > 1
473
+ raise MiyakoValueError.over_range(time, 1, nil) unless time > 0
425
474
  end
426
475
  raise MiyakoValueError.over_range(loops, -1, nil) unless loops >= -1
427
476
  return self.play(vol, loops, time)
@@ -521,6 +570,8 @@ module Miyako
521
570
  lp = @now_loops == -1 ? -1 : @now_loops - 1
522
571
  @channel = time ? SDL::Mixer.fade_in_channel_timed(-1, @wave, lp, msec, time) : SDL::Mixer.fade_in_channel(-1, @wave, lp, msec)
523
572
  @@playings << self
573
+ @start_tick = SDL.get_ticks
574
+ @pos_ticks = 0
524
575
  SE.update
525
576
  return true
526
577
  end
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
  =begin
3
3
  --
4
4
  Miyako v2.1
@@ -44,28 +44,44 @@ module Miyako
44
44
 
45
45
  @@name_2_font_path = Hash.new
46
46
 
47
+ # check font directory in gem directory
48
+ base_pathes = []
49
+ gpath = nil
50
+ searcher = Gem::GemPathSearcher.new
51
+ spec = searcher.find("miyako")
52
+ gpath = spec.full_gem_path if spec
53
+ if spec && gpath =~ /ruby\-miyako/
54
+ gpath = gpath + "/lib/Miyako/fonts"
55
+ base_pathes << gpath if File.exist?(gpath)
56
+ end
57
+
58
+ # check font directory in library(site_ruby) directory
59
+ lpath = $LOAD_PATH.find{|path| File.exist?(path+"/Miyako/fonts") }
60
+ base_pathes << (lpath+"/Miyako/fonts") if lpath
61
+
47
62
  @@font_base_path = Hash.new
48
- @@font_base_path["win"] = ENV['SystemRoot'] ? ["./", ENV['SystemRoot'].tr("\\", "/") + "/fonts/"] : ["./"]
49
- @@font_base_path["linux"] = ["./", "/usr/share/fonts/", "/usr/X11R6/lib/X11/fonts/"]
50
- @@font_base_path["mac_osx"] = ["./", "~/Library/Fonts/", "/Library/Fonts/", "/System/Library/Fonts/",
63
+ @@font_base_path["win"] = base_pathes + (ENV['SystemRoot'] ? ["./", ENV['SystemRoot'].tr("\\", "/") + "/fonts/"] : ["./"])
64
+ @@font_base_path["linux"] = base_pathes + ["./", "/usr/share/fonts/", "/usr/X11R6/lib/X11/fonts/"]
65
+ @@font_base_path["mac_osx"] = base_pathes + ["./",
66
+ "~/Library/Fonts/", "/Library/Fonts/", "/System/Library/Fonts/",
51
67
  "/ライブラリ/Fonts/", "/システム/ライブラリ/Fonts/"]
52
68
 
53
69
  @@font_base_name = Hash.new
54
- @@font_base_name["win"] = [{:serif=>"msmincho.ttc", :sans_serif=>"msgothic.ttc"},
70
+ @@font_base_name["win"] = [{:serif=>"ume-tms3.ttf", :sans_serif=>"umeplus-gothic.ttf"},
71
+ {:serif=>"msmincho.ttc", :sans_serif=>"msgothic.ttc"},
55
72
  {:serif=>"VL-Gothic-Regular.ttf", :sans_serif=>"VL-Gothic-Regular.ttf"},
56
- {:serif=>"umeplus-gothic.ttf", :sans_serif=>"umeplus-gothic.ttf"},
57
73
  {:serif=>"msmincho.ttc", :sans_serif=>"meiryo.ttc"}]
58
- @@font_base_name["linux"] = [{:serif=>"sazanami-mincho.ttf", :sans_serif=>"sazanami-gothic.ttf"},
59
- {:serif=>"VL-Gothic-Regular.ttf", :sans_serif=>"VL-Gothic-Regular.ttf"},
60
- {:serif=>"umeplus-gothic.ttf", :sans_serif=>"umeplus-gothic.ttf"}]
61
- @@font_base_name["mac_osx"] = [{:serif=>"Hiragino Mincho Pro W3.otf", :sans_serif=>"Hiragino Kaku Gothic Pro W3.otf"},
62
- {:serif=>"Hiragino Mincho Pro W6.otf", :sans_serif=>"Hiragino Kaku Gothic Pro W6.otf"},
63
- {:serif=>"ヒラギノ明朝 Pro W3.otf", :sans_serif=>"ヒラギノ角ゴ Pro W3.otf"},
64
- {:serif=>"ヒラキ゛ノ明朝 Pro W3.otf", :sans_serif=>"ヒラキ゛ノ角コ゛ Pro W3.otf"},
65
- {:serif=>"ヒラギノ明朝 Pro W6.otf", :sans_serif=>"ヒラギノ角ゴ Pro W6.otf"},
66
- {:serif=>"ヒラキ゛ノ明朝 Pro W6.otf", :sans_serif=>"ヒラキ゛ノ角コ゛ Pro W6.otf"},
67
- {:serif=>"VL-Gothic-Regular.ttf", :sans_serif=>"VL-Gothic-Regular.ttf"},
68
- {:serif=>"umeplus-gothic.ttf", :sans_serif=>"umeplus-gothic.ttf"}]
74
+ @@font_base_name["linux"] = [{:serif=>"ume-tms3.ttf", :sans_serif=>"umeplus-gothic.ttf"},
75
+ {:serif=>"sazanami-mincho.ttf", :sans_serif=>"sazanami-gothic.ttf"},
76
+ {:serif=>"VL-Gothic-Regular.ttf", :sans_serif=>"VL-Gothic-Regular.ttf"}]
77
+ @@font_base_name["mac_osx"] = [{:serif=>"ume-tms3.ttf", :sans_serif=>"umeplus-gothic.ttf"},
78
+ {:serif=>"Hiragino Mincho Pro W3.otf", :sans_serif=>"Hiragino Kaku Gothic Pro W3.otf"},
79
+ {:serif=>"Hiragino Mincho Pro W6.otf", :sans_serif=>"Hiragino Kaku Gothic Pro W6.otf"},
80
+ {:serif=>"ヒラギノ明朝 Pro W3.otf", :sans_serif=>"ヒラギノ角ゴ Pro W3.otf"},
81
+ {:serif=>"ヒラキ゛ノ明朝 Pro W3.otf", :sans_serif=>"ヒラキ゛ノ角コ゛ Pro W3.otf"},
82
+ {:serif=>"ヒラギノ明朝 Pro W6.otf", :sans_serif=>"ヒラギノ角ゴ Pro W6.otf"},
83
+ {:serif=>"ヒラキ゛ノ明朝 Pro W6.otf", :sans_serif=>"ヒラキ゛ノ角コ゛ Pro W6.otf"},
84
+ {:serif=>"VL-Gothic-Regular.ttf", :sans_serif=>"VL-Gothic-Regular.ttf"}]
69
85
  @@initialized = false
70
86
 
71
87
  #===フォント関連の初期化処理
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
  =begin
3
3
  --
4
4
  Miyako v2.1
@@ -203,7 +203,7 @@ module Miyako
203
203
  #
204
204
  #_name_:: ブロックに渡す引数リスト
205
205
  #_block_:: メソッドとして実行させるブロック
206
- def Yuki.add_method(name, &block)
206
+ def InitiativeYuki.add_method(name, &block)
207
207
  name = name.to_sym
208
208
  raise MiyakoError, "Already added method! : #{name.to_s}" if self.methods.include?(name)
209
209
  define_method(name, block)
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
 
3
3
  =begin
4
4
  --
@@ -60,12 +60,12 @@ module Miyako
60
60
  #===Storyの実行を始める
61
61
  #"obj.run(MainScene)"と記述すると、SceneモジュールをmixinしたMainSceneクラスのインスタンスを作成し、評価を始める
62
62
  #_n_:: 最初に実行するシーン名(クラス名を定数で)
63
- def run(n)
63
+ def run(n, init_ho = nil)
64
64
  return nil if n == nil
65
65
  u = nil
66
66
  on = nil
67
67
  @stack = Array.new # reset
68
- @hand_over = nil
68
+ @hand_over = init_ho
69
69
  while n != nil
70
70
  @prev_label = on
71
71
  on = n
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
 
3
3
  =begin
4
4
  --
@@ -79,12 +79,12 @@ module Miyako
79
79
  #===Storyの実行を始める
80
80
  #"obj.run(MainScene)"と記述すると、SceneモジュールをmixinしたMainSceneクラスのインスタンスを作成し、評価を始める
81
81
  #_n_:: 最初に実行するシーン名(クラス名を定数で)
82
- def run(n)
82
+ def run(n, init_ho = nil)
83
83
  return nil if n == nil
84
84
  u = nil
85
85
  on = nil
86
86
  @stack = Array.new # reset
87
- @hand_over = nil
87
+ @hand_over = init_ho
88
88
  while n != nil
89
89
  @prev_label = on
90
90
  on = n
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
  # Miyako Extension Raster Scroll
3
3
  =begin
4
4
  Miyako Extention Library v2.1
@@ -101,6 +101,7 @@ module Miyako
101
101
  @fo_size.stop if @fo_size
102
102
  @effecting = false
103
103
  @fade_out = false
104
+ return self
104
105
  end
105
106
 
106
107
  #===ラスタスクロールを画面に描画する
@@ -122,6 +123,7 @@ module Miyako
122
123
  @src.oy = ty
123
124
  @src.oh = th
124
125
  @src.move_to!(*pos)
126
+ return self
125
127
  end
126
128
 
127
129
  #===ラスタスクロールを画像に描画する
@@ -144,6 +146,7 @@ module Miyako
144
146
  @src.oy = ty
145
147
  @src.oh = th
146
148
  @src.move_to!(*pos)
149
+ return self
147
150
  end
148
151
 
149
152
  #===ラスタスクロールをフェードアウトさせる
@@ -155,6 +158,7 @@ module Miyako
155
158
  @fo_wait = fw
156
159
  @fo_wait.start
157
160
  @fade_out = true
161
+ return self
158
162
  end
159
163
  end
160
164
  end
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
  # Miyako Extension
3
3
  =begin
4
4
  Miyako Extention Library v2.1
@@ -39,6 +39,15 @@ module Miyako
39
39
  tmp[:color] ||= Color[:white]
40
40
  tmp[:empty] ||= false
41
41
  return Parts.new(tmp[:size]) if tmp[:empty]
42
+ if tmp[:file]
43
+ sprite = Sprite.new(:file=>tmp[:file], :type=>tmp[:type])
44
+ if params[:size]
45
+ sprite.ow = size[0]
46
+ sprite.oh = size[1]
47
+ end
48
+ return Parts.new(tmp[:size]).tap{|obj| obj[:___base___] = sprite}
49
+ end
50
+ return Parts.new(tmp[:sprite].size).tap{|obj| obj[:___base___] = tmp[:sprite]} if tmp[:sprite]
42
51
  return Parts.new(tmp[:size]).tap{|obj| obj[:___base___] = Sprite.new(tmp).fill(tmp[:color])}
43
52
  end
44
53
 
@@ -127,7 +136,7 @@ module Miyako
127
136
  end
128
137
 
129
138
  #===スライド本体を返す
130
- #スライド本体を直接制御するときに使う
139
+ #スライド本体を直接制御するときに使う
131
140
  #返却値:: スライド本体
132
141
  def slide_body
133
142
  @@body[self.__id__]
@@ -0,0 +1,227 @@
1
+ 2010-06-10 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
2
+ - update M+ fonts (TESTFLIGHT-030)
3
+ - update Ume fonts (ume-416)
4
+
5
+ 2010-04-18 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
6
+ - update fontforge scripts
7
+ fontforge doesn't support [Open("./file.ttf")] now.
8
+ use [Open("file.ttf")].
9
+ - update Ume fonts (ume-414)
10
+
11
+ 2010-03-17 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
12
+ - update fontforge scripts
13
+ - update M+ fonts (TESTFLIGHT-029)
14
+ - update Ume fonts (ume-413)
15
+
16
+ 2010-02-04 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
17
+ - update Ume fonts (ume-412)
18
+
19
+ 2010-01-06 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
20
+ - update M+ fonts (TESTFLIGHT-028)
21
+ - update Ume fonts (ume-411)
22
+
23
+ 2009-12-08 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
24
+ - update Ume fonts (ume-410)
25
+
26
+ 2009-11-11 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
27
+ - update M+ fonts (TESTFLIGHT-027)
28
+ - update Ume fonts (ume-409)
29
+
30
+ 2009-10-05 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
31
+ - update Ume fonts (ume-408)
32
+
33
+ 2009-09-18 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
34
+ - update Ume fonts (ume-407)
35
+ - update M+ fonts (TESTFLIGHT-026)
36
+ - remove a hack for "ヱ"
37
+ - keep Ume's "々"
38
+
39
+ 2009-08-04 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
40
+ - update Ume fonts (ume-406)
41
+ - update M+ fonts (TESTFLIGHT-025)
42
+
43
+ 2009-07-12 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
44
+ - update README
45
+
46
+ 2009-07-06 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
47
+ - update Ume fonts (ume-405)
48
+ - update M+ fonts (CVS snapshots)
49
+ - revert "underline position to -500"
50
+
51
+ 2009-07-02 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
52
+ - fix for vertical writing in OpenOffice
53
+ - thanks Hideki Yamane
54
+
55
+ 2009-06-04 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
56
+ - update M+ fonts (CVS snapshots)
57
+ - update Ume fonts (ume-404)
58
+
59
+ 2009-05-20 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
60
+ - use M+ fonts CVS snapshots
61
+ - change the underline position to -500
62
+
63
+ 2009-05-07 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
64
+ - update Ume fonts (ume-403)
65
+ - the license of ume fonts has been changed
66
+
67
+ 2009-04-23 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
68
+ - update Ume fonts (ume-402)
69
+ - update M+ fonts (TESTFLIGHT-023)
70
+ - add latin characters to umeplus-p
71
+
72
+ 2009-02-04 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
73
+ - update Ume fonts (ume-400)
74
+ - update M+ fonts (TESTFLIGHT-020)
75
+ - add fontforge scripts to fix mplus fonts
76
+ "g"と"j"の底が欠けるのを修正。
77
+ プロポーショナルフォントの"~"の高さを固定幅フォントに合わせた。
78
+ - use yen for backslash
79
+
80
+ 2009-01-13 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
81
+ - update Ume fonts (ume-399)
82
+
83
+ 2008-12-02 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
84
+ - update Ume fonts (ume-397)
85
+
86
+ 2008-11-26 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
87
+ - Use "yen" for "backslash"
88
+
89
+ 2008-11-25 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
90
+ - use mplus-TESTFLIGHT-018
91
+ TESTFLIGHT-019だとg,jなどの底が欠ける。
92
+
93
+ 2008-11-21 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
94
+ - update Ume fonts (ume-396)
95
+ - update M+ fonts (TESTFLIGHT-019)
96
+ - update fontforge scripts
97
+
98
+ 2008-10-10 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
99
+ - update Ume fonts (ume-394)
100
+ - update M+ fonts (TESTFLIGHT-018)
101
+
102
+ 2008-09-03 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
103
+ - update Ume fonts (ume-393)
104
+
105
+ 2008-08-04 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
106
+ - update Ume fonts (ume-392)
107
+
108
+ 2008-07-11 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
109
+ - Use "yen" for "backslash"
110
+
111
+ 2008-07-07 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
112
+ - update Ume fonts (ume-391)
113
+ - update M+ fonts (cvs20080706)
114
+
115
+ 2008-05-12 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
116
+ - update Ume fonts (ume-389)
117
+
118
+ 2008-04-09 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
119
+ - update Ume fonts (ume-387)
120
+ - update M+ fonts (cvs20080404)
121
+
122
+ 2008-03-12 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
123
+ - update Ume fonts (ume-yr-385)
124
+ - update M+ fonts (cvs20080312)
125
+
126
+ 2008-02-17 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
127
+ - update Ume fonts (ume-ys-384)
128
+
129
+ 2008-02-06 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
130
+ - update Ume fonts (ume-yt-383)
131
+
132
+ 2008-01-16 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
133
+ - update Ume fonts (ume-yu-382)
134
+
135
+ 2007-12-10 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
136
+ - update Ume fonts (ume-yw-380)
137
+
138
+ 2007-12-03 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
139
+ - update Ume fonts (20071203)
140
+
141
+ 2007-10-11 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
142
+ - update Ume fonts (20071001)
143
+ - update M+ fonts (cvs20071011)
144
+ - (http://mplus-fonts.sourceforge.jp/cgi-bin/blosxom.cgi/2007/10/02)
145
+
146
+ 2007-08-06 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
147
+ - update Ume fonts (20070806)
148
+
149
+ 2007-07-03 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
150
+ - update Ume fonts (20070702)
151
+ - update M+ fonts (cvs20070703)
152
+ - (http://mplus-fonts.sourceforge.jp/cgi-bin/blosxom.cgi/2007/07/02)
153
+
154
+ 2007-06-05 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
155
+ - update Ume fonts (20070604)
156
+
157
+ 2007-05-17 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
158
+ - update the script for fontforge
159
+
160
+ 2007-05-10 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
161
+ - update Ume fonts (20070508)
162
+
163
+ 2007-04-04 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
164
+ - update Ume fonts (20070402)
165
+
166
+ 2007-02-26 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
167
+ - update Ume fonts (20070218)
168
+
169
+ 2007-01-15 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
170
+ - update M+ fonts (cvs20070115)
171
+
172
+ 2007-01-04 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
173
+ - update Ume fonts (20070104)
174
+ - update M+ fonts (cvs20070104)
175
+
176
+ 2006-12-27 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
177
+ - update M+ fonts (cvs20061225)
178
+
179
+ 2006-12-21 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
180
+ - update M+ fonts (cvs20061220)
181
+ - adjust the bottom line of the fonts
182
+
183
+ 2006-11-28 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
184
+ - update Ume fonts (20061128)
185
+
186
+ 2006-11-25 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
187
+ - update Ume fonts (20061108)
188
+ - update M+ fonts (cvs20061125)
189
+ - use M+ fonts for full width alphabet
190
+
191
+ 2006-11-07 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
192
+ - update Ume fonts
193
+
194
+ 2006-10-31 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
195
+ - update Ume fonts and M+ fonts
196
+
197
+ 2006-10-23 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
198
+ - update Ume fonts
199
+
200
+ 2006-10-16 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
201
+ - update Ume fonts
202
+
203
+ 2006-10-09 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
204
+ - follow new Ume fonts
205
+ - use Ume fonts for wide alphabet
206
+
207
+ 2006-10-04 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
208
+ - change the fontnames of umeplus
209
+ - (the author of Ume fonts requested it)
210
+ - (Ume Gothic => UmePlus Gothic)
211
+ - (Ume P Gothic => UmePlus P Gothic)
212
+ - modify "o" manually for bold face
213
+ - use new M+ fonts for alphabet
214
+
215
+ 2006-10-03 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
216
+ - 20061003b
217
+ - modify "(" manually for bold face
218
+
219
+ 2006-10-03 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
220
+ - 20061003a
221
+ - [umeplus-p]
222
+ - use sazanami-gothic for wide alphabet
223
+ - [umeplus]
224
+ - use sazanami-gothic for wide space
225
+
226
+ 2006-10-03 UTUMI Hirosi <utuhiro78@yahoo.co.jp>
227
+ - first release
@@ -0,0 +1,37 @@
1
+ UmePlus fonts
2
+
3
+ UmePlus fonts are modified Ume fonts for Japanese.
4
+ http://www.geocities.jp/ep3797/modified_fonts_01.html
5
+
6
+ I used these fonts for UmePlus:
7
+ Kanji = Ume fonts
8
+ http://horai.topaz.ne.jp/top/font.html
9
+ Alphabet/Hiragana/Katakana, Full width alphabet = M+ fonts
10
+ http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/index.html
11
+
12
+ THANKS TO
13
+ the authors of the fonts.
14
+
15
+ License
16
+ Ume fonts, M+ fonts:
17
+ See docs-{ume,mplus}.
18
+ fontforge-scripts:
19
+ Public Domain.
20
+
21
+ Author
22
+ UTUMI Hirosi <utuhiro78@yahoo.co.jp>
23
+
24
+
25
+ How to generate UmePlus
26
+ 1. Put these fonts into fontforge-scripts-umeplus
27
+ ume-tgo4.ttf
28
+ mplus-1m-regular.ttf
29
+ 2. $ ./fix-mplus-*.pe
30
+ $ ./import-mplus.pe
31
+
32
+ How to generate UmePlus-P
33
+ 1. Put these fonts into fontforge-scripts-umeplus-p
34
+ ume-pgo4.ttf
35
+ mplus-1c-regular.ttf
36
+ 2. $ ./fix-mplus-*.pe
37
+ $ ./import-mplus.pe
@@ -0,0 +1,16 @@
1
+ M+ FONTS Copyright (C) 2002-2010 M+ FONTS PROJECT
2
+
3
+ -
4
+
5
+ LICENSE_E
6
+
7
+
8
+
9
+
10
+ These fonts are free softwares.
11
+ Unlimited permission is granted to use, copy, and distribute it, with
12
+ or without modification, either commercially and noncommercially.
13
+ THESE FONTS ARE PROVIDED "AS IS" WITHOUT WARRANTY.
14
+
15
+
16
+ http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/
@@ -0,0 +1,15 @@
1
+ M+ FONTS Copyright (C) 2002-2010 M+ FONTS PROJECT
2
+
3
+ -
4
+
5
+ LICENSE_J
6
+
7
+
8
+
9
+
10
+ �����Υե���Ȥϥե꡼�ʼ�ͳ�ʡ˥��եȥ������Ǥ���
11
+ ��������Ѥ�̵ͭ�˴ؤ�餺���ޤ�����Ū�����ѤǤ��äƤ⡢��ͳ�ˤ����ѡ�
12
+ ʣ���������ۤ��뤳�Ȥ��Ǥ��ޤ���������̵�ݾڤȤ����Ƥ��������ޤ���
13
+
14
+
15
+ http://mplus-fonts.sourceforge.jp/
@@ -0,0 +1,82 @@
1
+ M+ FONTS Copyright (C) 2002-2010 M+ FONTS PROJECT
2
+
3
+ -
4
+
5
+ README_E
6
+
7
+
8
+
9
+
10
+ M+ TESTFLIGHT
11
+
12
+ The M+ OUTLINE FONTS are distributed with proportional Latin (4 variations), fixed-halfwidth Latin (3 variations) and fixed-fullwidth Japanese (2 Kana variations) character set. 7 weights from Thin to Black are included, but fixed-halfwidth Latin with 5 weights from Thin to Bold.
13
+
14
+
15
+ PROPORTIONAL FONTS (proportional Latin and fixed-fullwidth Japanese)
16
+
17
+ M+ 1P mplus-1p-thin.ttf
18
+ mplus-1p-light.ttf
19
+ mplus-1p-regular.ttf
20
+ mplus-1p-medium.ttf
21
+ mplus-1p-bold.ttf
22
+ mplus-1p-heavy.ttf
23
+ mplus-1p-black.ttf
24
+
25
+ M+ 2P mplus-2p-thin.ttf
26
+ mplus-2p-light.ttf
27
+ mplus-2p-regular.ttf
28
+ mplus-2p-medium.ttf
29
+ mplus-2p-bold.ttf
30
+ mplus-2p-heavy.ttf
31
+ mplus-2p-black.ttf
32
+
33
+ M+ 1C mplus-1c-thin.ttf
34
+ mplus-1c-light.ttf
35
+ mplus-1c-regular.ttf
36
+ mplus-1c-medium.ttf
37
+ mplus-1c-bold.ttf
38
+ mplus-1c-heavy.ttf
39
+ mplus-1c-black.ttf
40
+
41
+ M+ 2C mplus-2c-thin.ttf
42
+ mplus-2c-light.ttf
43
+ mplus-2c-regular.ttf
44
+ mplus-2c-medium.ttf
45
+ mplus-2c-bold.ttf
46
+ mplus-2c-heavy.ttf
47
+ mplus-2c-black.ttf
48
+
49
+
50
+ FIXED-WIDTH FONTS (fixed-halfwidth Latin and fixed-fullwidth Japanese)
51
+
52
+ M+ 1M mplus-1m-thin.ttf
53
+ mplus-1m-light.ttf
54
+ mplus-1m-regular.ttf
55
+ mplus-1m-medium.ttf
56
+ mplus-1m-bold.ttf
57
+
58
+ M+ 2M mplus-2m-thin.ttf
59
+ mplus-2m-light.ttf
60
+ mplus-2m-regular.ttf
61
+ mplus-2m-medium.ttf
62
+ mplus-2m-bold.ttf
63
+
64
+ M+ 1MN mplus-1mn-thin.ttf
65
+ mplus-1mn-light.ttf
66
+ mplus-1mn-regular.ttf
67
+ mplus-1mn-medium.ttf
68
+ mplus-1mn-bold.ttf
69
+
70
+
71
+
72
+
73
+ -
74
+
75
+ M+ OUTLINE FONTS
76
+ http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/
77
+
78
+ mplus-fonts-dev ML
79
+ http://lists.sourceforge.jp/mailman/listinfo/mplus-fonts-dev
80
+
81
+ M+ FONTS open forum
82
+ http://sourceforge.jp/forum/forum.php?forum_id=3403
@@ -0,0 +1,90 @@
1
+ M+ FONTS Copyright (C) 2002-2010 M+ FONTS PROJECT
2
+
3
+ -
4
+
5
+ README_J
6
+
7
+
8
+
9
+
10
+ M+ TESTFLIGHT
11
+
12
+ M+ OUTLINE FONTS �� 2 ����Τ���ʸ������ĸ�������ʸ�ե���Ȥ� 4 �����
13
+ �ץ��ݡ�����ʥ벤ʸ�ե���ȡ�3 �����Ⱦ�Ѹ�������ʸ�ե���Ȥ��Ȥ߹�碌����
14
+ �������졢���줾�� Thin ���� Black �ޤ� 7 �����Ⱦ�Ѹ������ե���Ȥ� Bold
15
+ �ޤ� 5 ����ˤΥ������ȥХꥨ������󤬤���ޤ���
16
+
17
+
18
+ �ץ��ݡ�����ʥ�ե���ȡ���ʸ�����Ѹ���������ʸ�������ϥץ��ݡ�����ʥ��
19
+
20
+ M+ 1P mplus-1p-thin.ttf
21
+ mplus-1p-light.ttf
22
+ mplus-1p-regular.ttf
23
+ mplus-1p-medium.ttf
24
+ mplus-1p-bold.ttf
25
+ mplus-1p-heavy.ttf
26
+ mplus-1p-black.ttf
27
+
28
+ M+ 2P mplus-2p-thin.ttf
29
+ mplus-2p-light.ttf
30
+ mplus-2p-regular.ttf
31
+ mplus-2p-medium.ttf
32
+ mplus-2p-bold.ttf
33
+ mplus-2p-heavy.ttf
34
+ mplus-2p-black.ttf
35
+
36
+ M+ 1C mplus-1c-thin.ttf
37
+ mplus-1c-light.ttf
38
+ mplus-1c-regular.ttf
39
+ mplus-1c-medium.ttf
40
+ mplus-1c-bold.ttf
41
+ mplus-1c-heavy.ttf
42
+ mplus-1c-black.ttf
43
+
44
+ M+ 2C mplus-2c-thin.ttf
45
+ mplus-2c-light.ttf
46
+ mplus-2c-regular.ttf
47
+ mplus-2c-medium.ttf
48
+ mplus-2c-bold.ttf
49
+ mplus-2c-heavy.ttf
50
+ mplus-2c-black.ttf
51
+
52
+
53
+ �������ե���ȡ���ʸ�����ѡ���ʸ��������Ⱦ�Ѥθ�������
54
+
55
+ M+ 1M mplus-1m-thin.ttf
56
+ mplus-1m-light.ttf
57
+ mplus-1m-regular.ttf
58
+ mplus-1m-medium.ttf
59
+ mplus-1m-bold.ttf
60
+
61
+ M+ 2M mplus-2m-thin.ttf
62
+ mplus-2m-light.ttf
63
+ mplus-2m-regular.ttf
64
+ mplus-2m-medium.ttf
65
+ mplus-2m-bold.ttf
66
+
67
+ M+ 1MN mplus-1mn-thin.ttf
68
+ mplus-1mn-light.ttf
69
+ mplus-1mn-regular.ttf
70
+ mplus-1mn-medium.ttf
71
+ mplus-1mn-bold.ttf
72
+
73
+
74
+
75
+
76
+ ����ʸ���ȶ������������Ū�ʲ�ʸ����դ�·��������Ū��ʸ�Ϥ���Ⱦ��ʸ����ɽ��
77
+ �Ǥ���褦�ˤʤ�ޤ�������­���Ƥ���ʸ����¾�Υե���Ȥ���μ�ư�䴰��
78
+ IPAG �ե���ȤȤι����ʤɤ��䤦���Ȥ��Ǥ��ޤ���
79
+ M+ OUTLINE FONTS �ξܺ١����䤤��碌�ʤɤϰʲ��� URL ���餪�ꤤ���ޤ���
80
+
81
+ -
82
+
83
+ M+ OUTLINE FONTS
84
+ http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/
85
+
86
+ mplus-fonts-dev ML
87
+ http://lists.sourceforge.jp/mailman/listinfo/mplus-fonts-dev
88
+
89
+ M+ FONTS open forum
90
+ http://sourceforge.jp/forum/forum.php?forum_id=3403
@@ -0,0 +1,75 @@
1
+ <html>
2
+
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html" charset="utf-8">
5
+ </head>
6
+ <body>
7
+
8
+ <pre>
9
+ -------------------------------------------------------------------------------
10
+ 梅フォントのライセンス (日本語 UTF-8) (UmeFont license (In Japanese UTF-8))
11
+ -------------------------------------------------------------------------------
12
+
13
+ 本ライセンスは以下の梅フォントに共通のライセンスです。
14
+
15
+ * 梅ゴシック
16
+ * 梅ゴシックC4
17
+ * 梅ゴシックS4
18
+ * 梅ゴシックO5
19
+ * 梅ゴシックC5
20
+ * 梅ゴシックS5
21
+ * 梅Pゴシック
22
+ * 梅PゴシックC4
23
+ * 梅PゴシックS4
24
+ * 梅PゴシックO5
25
+ * 梅PゴシックC5
26
+ * 梅PゴシックS5
27
+ * 梅UIゴシック
28
+ * 梅UIゴシックO5
29
+ * 梅明朝
30
+ * 梅明朝S3
31
+ * 梅P明朝
32
+ * 梅P明朝S3
33
+
34
+
35
+ これらのフォントはフリー(自由な)ソフトウエアです。
36
+ あらゆる改変の有無に関わらず、また商業的な利用であっても、自由にご利用、複製、
37
+ 再配布することができますが、全て無保証とさせていただきます。
38
+
39
+
40
+
41
+ -------------------------------------------------------------------------------
42
+ UmeFont license (In English)
43
+ -------------------------------------------------------------------------------
44
+
45
+ This is common license of the UmeFont family. UmeFont family provides the
46
+ following fonts:
47
+
48
+ * Ume Gothic
49
+ * Ume Gothic C4
50
+ * Ume Gothic S4
51
+ * Ume Gothic O5
52
+ * Ume Gothic C5
53
+ * Ume Gothic S5
54
+ * Ume P Gothic
55
+ * Ume P Gothic C4
56
+ * Ume P Gothic S4
57
+ * Ume P Gothic O5
58
+ * Ume P Gothic C5
59
+ * Ume P Gothic S5
60
+ * Ume UI Gothic
61
+ * Ume UI Gothic O5
62
+ * Ume Mincho
63
+ * Ume Mincho S3
64
+ * Ume P Mincho
65
+ * Ume P Mincho S3
66
+
67
+
68
+ These fonts are free softwares.
69
+ Unlimited permission is granted to use, copy, and distribute it,
70
+ with or without modification, either commercially and noncommercially.
71
+ THESE FONTS ARE PROVIDED "AS IS" WITHOUT WARRANTY.
72
+
73
+ </pre>
74
+ </body>
75
+ </html>
Binary file
Binary file
data/lib/Miyako/miyako.rb CHANGED
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
  #
3
3
  #=コンテンツ作成ライブラリMiyako2.1
4
4
  #
@@ -63,7 +63,7 @@ Thread.abort_on_exception = true
63
63
 
64
64
  #==Miyako基幹モジュール
65
65
  module Miyako
66
- VERSION = "2.1.13"
66
+ VERSION = "2.1.14"
67
67
 
68
68
  #===アプリケーション実行中に演奏する音楽のサンプリングレートを指定する
69
69
  #単位はHz(周波数)
data/miyako_bitmap.c CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  --
3
- Miyako v2.0 Extend Library "Miyako no Katana"
3
+ Miyako v2.1 Extend Library "Miyako no Katana"
4
4
  Copyright (C) 2008 Cyross Makoto
5
5
 
6
6
  This library is free software; you can redistribute it and/or
@@ -22,8 +22,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
22
  /*
23
23
  =miyako_no_katana
24
24
  Authors:: Cyross Makoto
25
- Version:: 2.0
26
- Copyright:: 2007-2008 Cyross Makoto
25
+ Version:: 2.1
26
+ Copyright:: 2007-2010 Cyross Makoto
27
27
  License:: LGPL2.1
28
28
  */
29
29
  #include "defines.h"
data/miyako_input_audio.c CHANGED
@@ -29,16 +29,18 @@ License:: LGPL2.1
29
29
  #include "defines.h"
30
30
 
31
31
  static VALUE mSDL = Qnil;
32
+ static VALUE mMixer = Qnil;
32
33
  static VALUE mMiyako = Qnil;
33
34
  static VALUE mAudio = Qnil;
34
35
  static VALUE mInput = Qnil;
35
36
  static VALUE mScreen = Qnil;
36
37
  static VALUE cJoystick = Qnil;
38
+ static VALUE cMusic = Qnil;
37
39
  static VALUE cEvent = Qnil;
38
40
  static VALUE cBGM = Qnil;
39
41
  static VALUE cSE = Qnil;
40
- static VALUE nZero = Qnil;
41
42
  static VALUE nOne = Qnil;
43
+ static VALUE nZero = Qnil;
42
44
  static volatile ID id_update_all = Qnil;
43
45
  static volatile ID id_is_playing = Qnil;
44
46
  static volatile ID id_is_fade_out = Qnil;
@@ -49,6 +51,8 @@ static volatile ID id_allow_countup = Qnil;
49
51
  static volatile ID id_countup = Qnil;
50
52
  static volatile ID id_poll = Qnil;
51
53
  static volatile ID id_call = Qnil;
54
+ static volatile ID id_reset_ticks = Qnil;
55
+ static volatile ID id_setup_ticks = Qnil;
52
56
  static volatile int zero = 0;
53
57
  static volatile int one = 1;
54
58
  static volatile VALUE sy_pushed = Qnil;
@@ -175,12 +179,16 @@ static VALUE bgm_update(VALUE self)
175
179
  rb_funcall(pb, id_in_the_loop, 0) == Qtrue)
176
180
  {
177
181
  rb_funcall(pb, id_countup, 0);
178
- if(rb_funcall(pb, id_in_the_loop, 0) == Qfalse)
182
+ rb_funcall(pb, id_setup_ticks, 0);
183
+ if(rb_funcall(pb, id_in_the_loop, 0) == Qfalse){
184
+ rb_funcall(pb, id_reset_ticks, 0);
179
185
  rb_iv_set(self, "@@playin_bgm", Qnil);
186
+ }
180
187
  }
181
188
  else if(rb_funcall(pb, id_is_playing, 0) == Qfalse &&
182
189
  rb_funcall(pb, id_is_fade_out, 0) == Qfalse)
183
190
  {
191
+ rb_funcall(pb, id_reset_ticks, 0);
184
192
  rb_iv_set(self, "@@playin_bgm", Qnil);
185
193
  }
186
194
  else if(rb_funcall(pb, id_is_allow_countup, 0) == Qfalse)
@@ -243,14 +251,27 @@ void _miyako_audio_update()
243
251
  audio_update(mAudio);
244
252
  }
245
253
 
254
+ /*
255
+ :nodoc:
256
+ */
257
+ static VALUE bgm_set_offset(VALUE self, VALUE val)
258
+ {
259
+ double pos = (double)(NUM2INT(val))/1000.0;
260
+ Mix_SetMusicPosition(pos);
261
+ rb_iv_set(self, "@offset_ticks", val);
262
+ return Qnil;
263
+ }
264
+
246
265
  void Init_miyako_input_audio()
247
266
  {
248
267
  mSDL = rb_define_module("SDL");
268
+ mMixer = rb_define_module_under(mSDL, "Mixer");
249
269
  mMiyako = rb_define_module("Miyako");
250
270
  mAudio = rb_define_module_under(mMiyako, "Audio");
251
271
  mInput = rb_define_module_under(mMiyako, "Input");
252
272
  mScreen = rb_define_module_under(mMiyako, "Screen");
253
273
  cJoystick = rb_define_class_under(mSDL, "Joystick", rb_cObject);
274
+ cMusic = rb_define_class_under(mMixer, "Music", rb_cObject);
254
275
  cEvent = rb_define_class_under(mSDL, "Event", rb_cObject);
255
276
  cBGM = rb_define_class_under(mAudio, "BGM", rb_cObject);
256
277
  cSE = rb_define_class_under(mAudio, "SE", rb_cObject);
@@ -265,6 +286,8 @@ void Init_miyako_input_audio()
265
286
  id_is_allow_countup = rb_intern("allow_loop_count_up?");
266
287
  id_allow_countup = rb_intern("allow_loop_count_up");
267
288
  id_countup = rb_intern("loop_count_up");
289
+ id_reset_ticks = rb_intern("reset_ticks");
290
+ id_setup_ticks = rb_intern("setup_ticks");
268
291
 
269
292
  sy_pushed = ID2SYM(rb_intern("pushed"));
270
293
  sy_pos = ID2SYM(rb_intern("pos"));
@@ -286,6 +309,9 @@ void Init_miyako_input_audio()
286
309
 
287
310
  rb_define_singleton_method(mInput, "update", input_update, 0);
288
311
  rb_define_singleton_method(mAudio, "update", audio_update, 0);
312
+ rb_define_singleton_method(mAudio, "update", audio_update, 0);
289
313
  rb_define_singleton_method(cBGM, "update", bgm_update, 0);
290
314
  rb_define_singleton_method(cSE, "update", se_update, 0);
315
+
316
+ rb_define_method(cBGM, "offset=", bgm_set_offset, 1);
291
317
  }
@@ -1,5 +1,6 @@
1
+ # encoding: utf-8
1
2
  # Utility.product_linerサンプル
2
- # 2009.4.12 Cyross Makoto
3
+ # 2009.6.11 Cyross Makoto
3
4
 
4
5
  require 'Miyako/miyako'
5
6
 
@@ -30,11 +31,10 @@ def draw_liner(sprite, info)
30
31
  array.each{|pos| Miyako::Drawing.rect(sprite, pos+[amount,amount], Colors.next)}
31
32
 
32
33
  info.dispose if info
33
- info = Miyako::Shape.text(
34
- :font => Miyako::Font.serif,
35
- :text => "square = (#{square[0]}, #{square[1]})-(#{square[2]}, #{square[3]}), amount = #{amount}"
36
- )
37
-
34
+ info = Miyako::Shape.text(:font => Miyako::Font.sans_serif.tap{|font| font.size=24}){
35
+ text("矩形:(#{square[0]}, #{square[1]})-(#{square[2]}, #{square[3]})").cr.text("大きさ:#{amount}")
36
+ }
37
+
38
38
  [sprite, info]
39
39
  end
40
40
 
@@ -1,5 +1,6 @@
1
+ # encoding: utf-8
1
2
  # Utility.product_linerサンプル(実数)
2
- # 2009.4.24 Cyross Makoto
3
+ # 2010.6.11 Cyross Makoto
3
4
 
4
5
  require 'Miyako/miyako'
5
6
 
@@ -30,11 +31,10 @@ def draw_liner(sprite, info)
30
31
  array.each{|pos| Miyako::Drawing.rect(sprite, pos+[amount,amount], Colors.next)}
31
32
 
32
33
  info.dispose if info
33
- info = Miyako::Shape.text(
34
- :font => Miyako::Font.serif,
35
- :text => "square = (#{square[0]}, #{square[1]})-(#{square[2]}, #{square[3]}), amount = #{amount}"
36
- )
37
-
34
+ info = Miyako::Shape.text(:font => Miyako::Font.sans_serif.tap{|font| font.size=16}){
35
+ text("矩形:(#{square[0]}, #{square[1]})-(#{square[2]},#{square[3]})").cr.text("大きさ:#{amount}")
36
+ }
37
+
38
38
  [sprite, info]
39
39
  end
40
40
 
Binary file
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-miyako
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.13
4
+ hash: 23
5
+ prerelease: false
6
+ segments:
7
+ - 2
8
+ - 1
9
+ - 14
10
+ version: 2.1.14
5
11
  platform: ruby
6
12
  authors:
7
13
  - Cyross Makoto
@@ -9,7 +15,7 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-05-20 00:00:00 +09:00
18
+ date: 2010-06-11 00:00:00 +09:00
13
19
  default_executable:
14
20
  dependencies: []
15
21
 
@@ -32,6 +38,15 @@ files:
32
38
  - ./img/window.png
33
39
  - ./img/win_base.png
34
40
  - ./install_miyako.rb
41
+ - ./lib/Miyako/fonts/docs-ume/license.html
42
+ - ./lib/Miyako/fonts/docs-mplus/LICENSE_E
43
+ - ./lib/Miyako/fonts/docs-mplus/LICENSE_J
44
+ - ./lib/Miyako/fonts/docs-mplus/README_E
45
+ - ./lib/Miyako/fonts/docs-mplus/README_J
46
+ - ./lib/Miyako/fonts/README
47
+ - ./lib/Miyako/fonts/ChangeLog
48
+ - ./lib/Miyako/fonts/ume-tms3.ttf
49
+ - ./lib/Miyako/fonts/umeplus-gothic.ttf
35
50
  - ./lib/Miyako/API/audio.rb
36
51
  - ./lib/Miyako/API/basic_data.rb
37
52
  - ./lib/Miyako/API/bitmap.rb
@@ -199,8 +214,11 @@ files:
199
214
  - ./sample/utility_test4.rb
200
215
  - ./uninstall_miyako.rb
201
216
  - ./win/miyako_no_katana.so
217
+ - extconf.rb
202
218
  has_rdoc: true
203
219
  homepage: http://www.twin.ne.jp/~cyross/Miyako/
220
+ licenses: []
221
+
204
222
  post_install_message:
205
223
  rdoc_options:
206
224
  - -c utf-8
@@ -208,23 +226,31 @@ require_paths:
208
226
  - lib/Miyako
209
227
  - lib
210
228
  required_ruby_version: !ruby/object:Gem::Requirement
229
+ none: false
211
230
  requirements:
212
231
  - - ">="
213
232
  - !ruby/object:Gem::Version
233
+ hash: 49
234
+ segments:
235
+ - 1
236
+ - 9
237
+ - 1
214
238
  version: 1.9.1
215
- version:
216
239
  required_rubygems_version: !ruby/object:Gem::Requirement
240
+ none: false
217
241
  requirements:
218
242
  - - ">="
219
243
  - !ruby/object:Gem::Version
244
+ hash: 3
245
+ segments:
246
+ - 0
220
247
  version: "0"
221
- version:
222
248
  requirements: []
223
249
 
224
250
  rubyforge_project:
225
- rubygems_version: 1.3.1
251
+ rubygems_version: 1.3.7
226
252
  signing_key:
227
- specification_version: 2
253
+ specification_version: 3
228
254
  summary: Game programming library for Ruby
229
255
  test_files: []
230
256