UltimaForum

Skrypty [VXAce] - Force 640x480 Resolution Script

Domilos - Nie 07 Kwi, 2013 16:35
Temat postu: Force 640x480 Resolution Script
~ Force 640x480 Resolution Script ~


Krótki opis:
Skrypt powiększa rozdzielczość do 640x480 (jak w XP).

Autor:
Matt Sully (Gump)

Kompatybilność:
RPG Maker VX Ace

Skrypt:
Spoiler:

Kod:
#=================================================================================
#                   ==[Force 640x480 Resolution Script]==
#
# - Forces 640x480 display resolution via Scene_Title's start method.
# - If you want to do it in a pre-title scene, simply copy the resize_screen
# command to the start method of your pre-title scene.
#---------------------------------------------------------------------------------
#                    ALIASED or OVERWRITTEN METHODS:
#
# * Aliased: Scene_Title start method
# * No Overwritten methods
#
#--------------------------------------------------------------------------------
#                  OTHER DEFAULT SCRIPT ADDITIONS/TWEAKS:
#
# * No other additions/tweaks
#
#--------------------------------------------------------------------------------
#                        ==[LEGAL CRAP]==
# - You may modify this script as you see fit
# - You may use this script freely in any commercial or free game
# - Due to the simplicity of the script, you are not required to credit the author
# if you use it in any of your games. Credit is nice, but not required.
#
# Script Authored by: Matt Sully aka "Gump"
#================================================================================
class Scene_Title < Scene_Base
  alias start_and_force_640 start unless $@
  def start
    Graphics.resize_screen(640, 480)
    start_and_force_640
  end
end


Dodatkowe informacje:
Skrypt wklejamy po prostu nad "main". Nie trzeba konfigurować.

Z tego, co zauważyłem, jest kompatybilny z różnymi skryptami modyfikującymi menu.

Draken - Nie 07 Kwi, 2013 18:27

Wszystko fajnie, ale gryzie się z Khas Light Effects. Po prostu jest takie coś:


kamokeg - Pią 12 Kwi, 2013 23:36

@up zamień 640 linijkę na
Kod:
return if sx > 640 && sy > 480 && sx + w < 0 && sy + h < 0

oraz w 955, 956, 937 linijce zamień 544 i 416 na 640 i 480 w khasa skrypcie


Powered by phpBB modified by Przemo © 2003 phpBB Group