Basic Window Resizer v1.0
By V.M of D.T.
Introduction
Quite simple, this allows you to take use of a script call to resize the game window. This is not like Graphics.resize and will actually scale to fit the window size. (Works for me anyways)
How to Use
Use the script call Window_Resize.r(width, height)
Script
By V.M of D.T.
Introduction
Quite simple, this allows you to take use of a script call to resize the game window. This is not like Graphics.resize and will actually scale to fit the window size. (Works for me anyways)
How to Use
Use the script call Window_Resize.r(width, height)
Script
- Code:
#Basic Window Resizer
#----------#
#Features: Allows you to resize the window to whatever size you like! (This is not
# like Graphics.resize, this will scale to fit)
#
#Usage: Script calls:
# Window_Resize.r(width, height) - Self-explanatory
#
#No Customization
#
#----------#
#-- Script by: V.M of D.T
#--- Free to use in any project with credit given
SWPO = Win32API.new 'user32', 'SetWindowPos', ['l','i','i','i','i','i','p'], 'i'
WINX = Win32API.new 'user32', 'FindWindowEx', ['l','l','p','p'], 'i'
SMET = Win32API.new 'user32', 'GetSystemMetrics', ['i'], 'i'
module Window_Resize
def self.r(width, height)
@window_loc = WINX.call(0,0,"RGSS PLAYER",0)
width += (SMET.call(5) + SMET.call(45)) * 2
height += (SMET.call(6) + SMET.call(45)) * 2 + SMET.call(4)
SWPO.call(@window_loc,0,0,0,width,height,0x002)
end
end
FAQ
N/A
Credit and Thanks
- By V.M. of D.T.
- Free to use in any project with credit given
Author's Notes
I've wanted this feature for so long...