mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Added some debug options, tweaked some console messages, changed required event names for Cut/Rock Smash/Strength
This commit is contained in:
@@ -1,48 +0,0 @@
|
||||
def pbChooseLanguage
|
||||
commands=[]
|
||||
for lang in Settings::LANGUAGES
|
||||
commands.push(lang[0])
|
||||
end
|
||||
return pbShowCommands(nil,commands)
|
||||
end
|
||||
|
||||
def pbScreenCapture
|
||||
t = pbGetTimeNow
|
||||
filestart = t.strftime("[%Y-%m-%d] %H_%M_%S.%L")
|
||||
# capturefile = RTP.getSaveFileName(sprintf("%s.png", filestart))
|
||||
# Graphics.snap_to_bitmap.save_to_png(capturefile)
|
||||
capturefile = RTP.getSaveFileName(sprintf("%s.bmp", filestart))
|
||||
Graphics.screenshot(capturefile)
|
||||
pbSEPlay("Pkmn exp full") if FileTest.audio_exist?("Audio/SE/Pkmn exp full")
|
||||
end
|
||||
|
||||
def pbDebugF7
|
||||
if $DEBUG
|
||||
Console::setup_console
|
||||
begin
|
||||
debugBitmaps
|
||||
rescue
|
||||
end
|
||||
pbSEPlay("Pkmn exp full") if FileTest.audio_exist?("Audio/SE/Pkmn exp full")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
module Input
|
||||
unless defined?(update_KGC_ScreenCapture)
|
||||
class << Input
|
||||
alias update_KGC_ScreenCapture update
|
||||
end
|
||||
end
|
||||
|
||||
def self.update
|
||||
update_KGC_ScreenCapture
|
||||
if trigger?(Input::F8)
|
||||
pbScreenCapture
|
||||
end
|
||||
if trigger?(Input::F7)
|
||||
pbDebugF7
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -624,3 +624,21 @@ def pbLoadRpgxpScene(scene)
|
||||
pbShowObjects(visibleObjects)
|
||||
Graphics.transition(20)
|
||||
end
|
||||
|
||||
def pbChooseLanguage
|
||||
commands=[]
|
||||
for lang in Settings::LANGUAGES
|
||||
commands.push(lang[0])
|
||||
end
|
||||
return pbShowCommands(nil,commands)
|
||||
end
|
||||
|
||||
def pbScreenCapture
|
||||
t = pbGetTimeNow
|
||||
filestart = t.strftime("[%Y-%m-%d] %H_%M_%S.%L")
|
||||
# capturefile = RTP.getSaveFileName(sprintf("%s.png", filestart))
|
||||
# Graphics.snap_to_bitmap.save_to_png(capturefile)
|
||||
capturefile = RTP.getSaveFileName(sprintf("%s.bmp", filestart))
|
||||
Graphics.screenshot(capturefile)
|
||||
pbSEPlay("Pkmn exp full") if FileTest.audio_exist?("Audio/SE/Pkmn exp full")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user