XPA_Window
Authors: Blizzard
Version: 1.4
Type: Custom Window Class
Key Term: Game Utility
IntroductionThis script is an optimized rewrite of RMXP's Window class. It is primarily intended to be used with "XP Ace". It was made to emulate RMXP's Window class as closely as possible. Even when using this with RMXP, you're likely to get a few FPS more than with the default implementation.
This work is licensed under BSD License 2.0:
QuoteCopyright (c) Boris "Blizzard" Mikić
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
You may use this script for both non-commercial and commercial products without limitations as long as you fulfill the conditions presented by the above license. The "complete" way to give credit is to include the license somewhere in your product (e.g. in the credits screen), but a "simple" way is also acceptable. The "simple" way to give credit is as follows:
QuoteXPA_Window licensed under BSD License 2.0, Copyright (c) Boris "Blizzard" Mikić
Alternatively, if your font doesn't support diacritic characters, you may use this variant:
QuoteXPA_Window licensed under BSD License 2.0, Copyright (c) Boris "Blizzard" Mikic
In general other similar variants are allowed as long as it is clear who the creator is (e.g. "XPA_Window created by Blizzard" is acceptable). But if possible, prefer to use one of the two variants listed above.
If you fail to give credit and/or claim that this work was created by you, this may result in legal action and/or payment of damages even though this work is free of charge to use normally.
Features- implements all functionality from the Window class in RPG Maker XP
- allows customization of a few parameters which cannot be changed in the default implementation
v1.1- fixed hard crash when windowskin coordinates were out of bounds (basically when Bitmap#linear_write was called with out of bounds rects)
v1.2- added some compatibility code
v1.3- restructured code to avoid class and module name conflicts with other scripts
- added proper emulation of viewport within a window
v1.31- fixed remaining issues with viewport usage in Window class
v1.4- added new license
- added usage and crediting instructions
ScreenshotsN / A
DemoXPA_Window (includes full source code for the DLL as well with a Visual Studio project for compilation)
ScriptJust make a new script above all of your other scripts and paste this code into it.
Script DownloadDownload this DLL file and place it into the same directory where your Game.exe is. The filename should stay
XPA_Window.dll.
DLL Download
InstructionsInside the script in the first comment.
Compatibility99% compatible with SDK v1.x. 99% compatible with SDK 2.x. Requires the user to run at least Windows XP SP3.
Credits and Thanks
Author's NotesIf you find any bugs, please report them here:
http://forum.chaos-project.comThat's it! N-Joy! =D