Skip to content

Instantly share code, notes, and snippets.

@HimeWorks
Created January 3, 2015 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HimeWorks/7e51f5c7636da2b2f3c6 to your computer and use it in GitHub Desktop.
Save HimeWorks/7e51f5c7636da2b2f3c6 to your computer and use it in GitHub Desktop.
Toggle Border add-on to Fullscreen++
# 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