-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRS_Logo.rb
72 lines (62 loc) · 1.78 KB
/
RS_Logo.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#================================================================
# The MIT License
# Copyright (c) 2020 biud436
# ---------------------------------------------------------------
# Free for commercial and non commercial use.
#================================================================
#==============================================================================
# ** Logo
# Author : biud436
# Date : 2015.04.12
# Version : 1.0
#==============================================================================
# ** Terms of Use
#==============================================================================
# Free for commercial and non-commercial use
#==============================================================================
$imported = {} if $imported.nil?
$imported["RS_Logo"] = true
module Logo
# 볼륨 조절 (0 ~ 100)
ME_Volume = 70
# 타이틀 음악
TITLE_MUSIC = true
Source = [
[120,"Graphics/Titles1/Book","ME/Inn"],
[120,"Graphics/Titles1/DemonCastle","SE/Cow"],
# 로고를 계속 추가할 수 있습니다
]
module_function
def pre_main(duration,path,snd)
Graphics.freeze
sprite = Sprite.new
sprite.bitmap = Bitmap.new(path)
play_sound(snd) if snd.size > 0
Graphics.transition(duration>>1)
Graphics.update
Graphics.fadeout(duration>>1)
sprite.dispose
end
def start
Source.each {|v| pre_main(*v) }
end
def play_sound(path)
c = path.scan(/[^\/]+/)
case c[0]
when "ME" then Audio.me_play('Audio/ME/'+c[1],ME_Volume)
when "SE" then Audio.se_play('Audio/SE/'+c[1],70,100)
else
Audio.me_play('Audio/ME/'+c[0])
end
end
end
def rgss_main(&block)
Logo.start if not $BTEST
block.call
end
if not Logo::TITLE_MUSIC
class Scene_Title < Scene_Base
def play_title_music
end
end
end