mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Rearranged settings
This commit is contained in:
@@ -39,122 +39,6 @@ class PokemonSystem
|
||||
def tilemap; return MAP_VIEW_MODE; end
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Stores game options
|
||||
# Default options are at the top of script section SpriteWindow.
|
||||
#===============================================================================
|
||||
$SpeechFrames = [
|
||||
MessageConfig::TextSkinName, # Default: speech hgss 1
|
||||
"speech hgss 2",
|
||||
"speech hgss 3",
|
||||
"speech hgss 4",
|
||||
"speech hgss 5",
|
||||
"speech hgss 6",
|
||||
"speech hgss 7",
|
||||
"speech hgss 8",
|
||||
"speech hgss 9",
|
||||
"speech hgss 10",
|
||||
"speech hgss 11",
|
||||
"speech hgss 12",
|
||||
"speech hgss 13",
|
||||
"speech hgss 14",
|
||||
"speech hgss 15",
|
||||
"speech hgss 16",
|
||||
"speech hgss 17",
|
||||
"speech hgss 18",
|
||||
"speech hgss 19",
|
||||
"speech hgss 20",
|
||||
"speech pl 18"
|
||||
]
|
||||
|
||||
$TextFrames = [
|
||||
"Graphics/Windowskins/"+MessageConfig::ChoiceSkinName, # Default: choice 1
|
||||
"Graphics/Windowskins/choice 2",
|
||||
"Graphics/Windowskins/choice 3",
|
||||
"Graphics/Windowskins/choice 4",
|
||||
"Graphics/Windowskins/choice 5",
|
||||
"Graphics/Windowskins/choice 6",
|
||||
"Graphics/Windowskins/choice 7",
|
||||
"Graphics/Windowskins/choice 8",
|
||||
"Graphics/Windowskins/choice 9",
|
||||
"Graphics/Windowskins/choice 10",
|
||||
"Graphics/Windowskins/choice 11",
|
||||
"Graphics/Windowskins/choice 12",
|
||||
"Graphics/Windowskins/choice 13",
|
||||
"Graphics/Windowskins/choice 14",
|
||||
"Graphics/Windowskins/choice 15",
|
||||
"Graphics/Windowskins/choice 16",
|
||||
"Graphics/Windowskins/choice 17",
|
||||
"Graphics/Windowskins/choice 18",
|
||||
"Graphics/Windowskins/choice 19",
|
||||
"Graphics/Windowskins/choice 20",
|
||||
"Graphics/Windowskins/choice 21",
|
||||
"Graphics/Windowskins/choice 22",
|
||||
"Graphics/Windowskins/choice 23",
|
||||
"Graphics/Windowskins/choice 24",
|
||||
"Graphics/Windowskins/choice 25",
|
||||
"Graphics/Windowskins/choice 26",
|
||||
"Graphics/Windowskins/choice 27",
|
||||
"Graphics/Windowskins/choice 28"
|
||||
]
|
||||
|
||||
$VersionStyles = [
|
||||
[MessageConfig::FontName], # Default font style - Power Green/"Pokemon Emerald"
|
||||
["Power Red and Blue"],
|
||||
["Power Red and Green"],
|
||||
["Power Clear"]
|
||||
]
|
||||
|
||||
def pbSettingToTextSpeed(speed)
|
||||
case speed
|
||||
when 0 then return 2
|
||||
when 1 then return 1
|
||||
when 2 then return -2
|
||||
end
|
||||
return MessageConfig::TextSpeed || 1
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
module MessageConfig
|
||||
def self.pbDefaultSystemFrame
|
||||
begin
|
||||
return pbResolveBitmap($TextFrames[$PokemonSystem.frame]) || ""
|
||||
rescue
|
||||
return pbResolveBitmap("Graphics/Windowskins/"+MessageConfig::ChoiceSkinName) || ""
|
||||
end
|
||||
end
|
||||
|
||||
def self.pbDefaultSpeechFrame
|
||||
begin
|
||||
return pbResolveBitmap("Graphics/Windowskins/"+$SpeechFrames[$PokemonSystem.textskin]) || ""
|
||||
rescue
|
||||
return pbResolveBitmap("Graphics/Windowskins/"+MessageConfig::TextSkinName) || ""
|
||||
end
|
||||
end
|
||||
|
||||
def self.pbDefaultSystemFontName
|
||||
begin
|
||||
return MessageConfig.pbTryFonts($VersionStyles[$PokemonSystem.font][0],"Arial Narrow","Arial")
|
||||
rescue
|
||||
return MessageConfig.pbTryFonts(MessageConfig::FontName,"Arial Narrow","Arial")
|
||||
end
|
||||
end
|
||||
|
||||
def self.pbDefaultTextSpeed
|
||||
return pbSettingToTextSpeed(($PokemonSystem.textspeed rescue nil))
|
||||
end
|
||||
|
||||
def pbGetSystemTextSpeed
|
||||
begin
|
||||
return $PokemonSystem.textspeed
|
||||
rescue
|
||||
return (Graphics.frame_rate>40) ? 2 : 3
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
@@ -460,7 +344,7 @@ class PokemonOption_Scene
|
||||
proc { $PokemonSystem.textspeed },
|
||||
proc { |value|
|
||||
$PokemonSystem.textspeed = value
|
||||
MessageConfig.pbSetTextSpeed(pbSettingToTextSpeed(value))
|
||||
MessageConfig.pbSetTextSpeed(MessageConfig.pbSettingToTextSpeed(value))
|
||||
}
|
||||
),
|
||||
EnumOption.new(_INTL("Battle Effects"),[_INTL("On"),_INTL("Off")],
|
||||
|
||||
Reference in New Issue
Block a user