Created
January 3, 2015 21:00
-
-
Save HimeWorks/7e51f5c7636da2b2f3c6 to your computer and use it in GitHub Desktop.
Toggle Border add-on to Fullscreen++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is an add-on to Zeus81's fullscreen++ script for RPG Maker | |
# http://forums.rpgmakerweb.com/index.php?/topic/14081-fullscreen/ | |
# You can basically hide/show the title and border of the game window | |
# by pressing F8 | |
# Doesn't work with F6 though. | |
class << Graphics | |
@border_hidden = false | |
def toggle_border | |
if @border_hidden | |
show_borders | |
@border_hidden = false | |
#self.ratio -= 0.0000000000001 | |
else | |
hide_borders | |
@border_hidden = true | |
#self.ratio += 0.0000000000001 | |
end | |
end | |
def update | |
release_alt if Disable_VX_Fullscreen and Input.trigger?(Input::ALT) | |
zeus_fullscreen_update | |
toggle_fullscreen if Input.trigger?(Input::F5) | |
toggle_ratio if Input.trigger?(Input::F6) | |
toggle_border if Input.trigger?(Input::F8) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment