Resize the playing screen
#1
Resize the playing screen
by corbaque
Aug 30 2007

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


Hi !

You maybe know this script, in an other version. There, it's a version to programmers.
In effect, there is just the skill to resize screen, nothing to adapt the game.
Like I never used the basic scripts, it's nice hehe.

Add a script before main, name it "Resize screen" :

Code:
#===================================
# Resize screen
#---------------------------------------------------------------
# Created by Corbaque
#===================================
# Choose screen width (6 is the border lines)
Screen_Width = 300 + 6
# Choose screen height (15 is the border lines + name of screen bar)
Screen_Height = 200 + 15
# Chose position (-1 = top of all; 0 = classical window; 1 = background task)
Screen_Position = 0
# Default desk width
Desk_Width = 1024
# Default desk height
Desk_Height = 768
# Window before resizing
window_now = Win32API.new('user32', 'FindWindow', %(p, p), 'i').call("RGSS Player", nil)
# Resizing window
window_next = Win32API.new('user32', 'SetWindowPos', %(l, l, i, i, i, i, i), 'i').call(window_now, Screen_Position, Desk_Width/2-Screen_Width/2, Desk_Height/2-Screen_Height/2, Screen_Width, Screen_Height, 0)


Optional
Compact version (classical 800x600 screen on 1024x768 desk) :
Code:
window_now = Win32API.new('user32', 'FindWindow', %(p, p), 'i').call("RGSS Player", nil)
window_next = Win32API.new('user32', 'SetWindowPos', %(l, l, i, i, i, i, i), 'i').call(window_now, 0, 112, 84, 800, 600, 0)
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  Screen Color Recaller avatarmonkeykirby 0 2,468 05-10-2007, 01:00 PM
Last Post: avatarmonkeykirby
  Screen Selection Window danjchau 0 2,585 01-26-2007, 01:00 PM
Last Post: danjchau



Users browsing this thread: 1 Guest(s)