mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Rewrote load game screen inc. supporting multiple save files, allowed \PN and \v[42] in map names and Town Map point names
This commit is contained in:
@@ -243,17 +243,15 @@ end
|
||||
def pbRepositionMessageWindow(msgwindow, linecount = 2)
|
||||
msgwindow.height = (32 * linecount) + msgwindow.borderY
|
||||
msgwindow.y = (Graphics.height) - (msgwindow.height)
|
||||
if $game_system
|
||||
case $game_system.message_position
|
||||
when 0 # up
|
||||
msgwindow.y = 0
|
||||
when 1 # middle
|
||||
msgwindow.y = (Graphics.height / 2) - (msgwindow.height / 2)
|
||||
when 2
|
||||
msgwindow.y = (Graphics.height) - (msgwindow.height)
|
||||
end
|
||||
msgwindow.opacity = 0 if $game_system.message_frame != 0
|
||||
case $game_system&.message_position || 2
|
||||
when 0 # top
|
||||
msgwindow.y = 0
|
||||
when 1 # middle
|
||||
msgwindow.y = (Graphics.height - msgwindow.height) / 2
|
||||
when 2 # bottom
|
||||
msgwindow.y = Graphics.height - msgwindow.height
|
||||
end
|
||||
msgwindow.opacity = 0 if ($game_system&.message_frame || 0) != 0
|
||||
end
|
||||
|
||||
# internal function
|
||||
|
||||
@@ -254,9 +254,10 @@ end
|
||||
|
||||
def pbGetMapNameFromId(id)
|
||||
name = GameData::MapMetadata.try_get(id)&.name
|
||||
if nil_or_empty?(name)
|
||||
name = pbGetBasicMapNameFromId(id)
|
||||
name.gsub!(/\\PN/, $player.name) if $player
|
||||
name = pbGetBasicMapNameFromId(id) if nil_or_empty?(name)
|
||||
name = name.gsub(/\\PN/, $player.name) if $player
|
||||
if $game_variables
|
||||
name = name.gsub(/\\v\[(\d+)\]/) { |num| $game_variables[$~[1].to_i].to_s }
|
||||
end
|
||||
return name
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user