RMParadise

It seems you either have yet to login or are not a member of RMP. If you are not yet a member, please feel free to sign up so that you can unlock every feature our forums have to offer. If you have yet to login, please do so soon.

A Paradise for RPGMakers.

Welcome everyone to RMP, your very own RPGMaker Paradise.
If you are reading this, that means that you are one of the select few who have been invited to experience our site as a Beta User.
Being a Beta User only requires that you report any bugs and/or problems upon finding them.
You get the chance to have free roam over the boards before they are public and are further up in line for promotions (which will be happening very soon, so stay on your best behavior).
Check out the thread for the RMP Beta Contest. Lets get some new content rolling.
Chat
Back to Top

    Game Window Resizer

    Share
    avatar
    Vlue
    I'm a new member :)
    I'm a new member :)

    Registered on Registered on : 2012-05-28
    Posts Posts : 30
    Rep. Points Rep. Points : 13

    Game Window Resizer

    Post by Vlue on Sat Jun 02, 2012 4:31 pm

    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
    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...
    avatar
    DawningStar
    I'm a new member :)
    I'm a new member :)

    Registered on Registered on : 2012-05-29
    Posts Posts : 65
    Rep. Points Rep. Points : 9

    Re: Game Window Resizer

    Post by DawningStar on Sat Jun 02, 2012 8:31 pm

    Thank you for posting this... you have no idea the amount of grief this stupid issue has caused me in the past...

    This is by far the best script I have ever seen... Thank you again.
    avatar
    Vlue
    I'm a new member :)
    I'm a new member :)

    Registered on Registered on : 2012-05-28
    Posts Posts : 30
    Rep. Points Rep. Points : 13

    Re: Game Window Resizer

    Post by Vlue on Sat Jun 02, 2012 9:29 pm

    I know right... one of those things that should be standard. Eventually annoyed me enough I did it myself.
    avatar
    DawningStar
    I'm a new member :)
    I'm a new member :)

    Registered on Registered on : 2012-05-29
    Posts Posts : 65
    Rep. Points Rep. Points : 9

    Re: Game Window Resizer

    Post by DawningStar on Sat Jun 02, 2012 9:35 pm

    Well, thank you for doing it... Now if there was only a script that allowed you too connect with other online and make an MMORPG...

    Sponsored content

    Re: Game Window Resizer

    Post by Sponsored content


      Current date/time is Wed Aug 15, 2018 10:25 am