Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.