Save-Point
Resize the playing screen - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Archives (https://www.save-point.org/forum-105.html)
+--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html)
+---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html)
+----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html)
+------ Forum: New Functionality/Features Scripts (https://www.save-point.org/forum-99.html)
+------ Thread: Resize the playing screen (/thread-6706.html)



Resize the playing screen - corbaque - 08-30-2007

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)