Added fullscreen toggle (F8)
This commit is contained in:
parent
a229d8862f
commit
ce147a44a5
|
|
@ -232,6 +232,16 @@ class Scene_Map
|
||||||
end
|
end
|
||||||
# Update fast travel
|
# Update fast travel
|
||||||
@fast_travel.update
|
@fast_travel.update
|
||||||
|
|
||||||
|
if Input.trigger?(Input::F8)
|
||||||
|
if Graphics.fullscreen == true
|
||||||
|
Graphics.fullscreen = false
|
||||||
|
$console = false
|
||||||
|
else
|
||||||
|
Graphics.fullscreen = true
|
||||||
|
$console = true
|
||||||
|
end
|
||||||
|
end
|
||||||
# If showing message window
|
# If showing message window
|
||||||
if $game_temp.message_window_showing || @ed_message.visible || @doc_message.visible || @desktop_message.visible || @credits_message.visible
|
if $game_temp.message_window_showing || @ed_message.visible || @doc_message.visible || @desktop_message.visible || @credits_message.visible
|
||||||
return
|
return
|
||||||
|
|
@ -262,9 +272,6 @@ class Scene_Map
|
||||||
# Set debug calling flag
|
# Set debug calling flag
|
||||||
$game_temp.debug_calling = true
|
$game_temp.debug_calling = true
|
||||||
end
|
end
|
||||||
if $GDC && Input.press?(Input::F8)
|
|
||||||
$game_temp.to_title = true
|
|
||||||
end
|
|
||||||
# If player is not moving
|
# If player is not moving
|
||||||
unless $game_player.moving?
|
unless $game_player.moving?
|
||||||
# Run calling of each screen
|
# Run calling of each screen
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,15 @@ class Scene_Title
|
||||||
update_cursor = true
|
update_cursor = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if Input.trigger?(Input::F8)
|
||||||
|
if Graphics.fullscreen == true
|
||||||
|
Graphics.fullscreen = false
|
||||||
|
$console = false
|
||||||
|
else
|
||||||
|
Graphics.fullscreen = true
|
||||||
|
$console = true
|
||||||
|
end
|
||||||
|
end
|
||||||
if update_cursor
|
if update_cursor
|
||||||
Audio.se_play('Audio/SE/title_cursor.wav', 40)
|
Audio.se_play('Audio/SE/title_cursor.wav', 40)
|
||||||
@cursor.y = MENU_Y + (24 - @cursor.bitmap.height) / 2 + 24 * @cursor_pos
|
@cursor.y = MENU_Y + (24 - @cursor.bitmap.height) / 2 + 24 * @cursor_pos
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue