RGSS Player Opacity Editor
By Armorphor
What is does:Allows you to control the RGSS Player's Opacity (even the borders!) so you can take control over more of your game. I dunno why its useful but I made this and I thought someone might like it and or find uses for it. Its an addon that modifies your window
Issues:None. maybe not compatible with RMVX but I haven't tried it yet.
Changing opacity features:* Opacity supported from 0-255 (including decimals)
* No lag
* Virtually no RAM/CPU usage
~ Made with a DLL ~Download here:
http://www.mediafire.com/?qkhncbbn1n8gmcdInstructions:Download DLL to the root of your game's folder.
Put script above main.
Credit me. (lol)
Screenshots:Are they really useful? Just picture a semi-transparent RGSS Player.
Script:Use: ArmorphorWin32.opacity(OPACITY)
Change OPACITY to whatever you like. (0-255, including decimals)
CODE
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# * Change RGSS Window Opacity
# RGSS1 (should also be compatible with RGSS2)
#----------------------------------------------------------
# Author: Armorphor (AKA CollosalPokemon)
# Date: April 2, 2011
#----------------------------------------------------------
# The goal here is to add a new feature to RM/the RGSS Player. I don't know how
# this is useful yet but I figure someone will like it and or find use for it.
#----------------------------------------------------------
# Uses a DLL for extremely fast performance (no lag!) and lightweight RGSS.
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
module ArmorphorWin32
DLL = Win32API.new('ArmorphorOpacity.dll', 'SetWindowOpacity', 'ii', 'i')
WL = Win32API.new('ArmorphorOpacity.dll', 'SetWindowLayered', 'i', 'i')
GPPS = Win32API.new('kernel32', 'GetPrivateProfileString', 'pppplp', 'l')
FW = Win32API.new('user32','FindWindowEx', '%w(l l p p)','l')
TID = Win32API.new('kernel32','GetCurrentThreadId', '%w()','l')
def self.handle
@@RGSSWINDOW=nil
processid=[0].pack('l')
threadid=TID.call
nextwindow=0
begin
nextwindow=FW.call(0,nextwindow,"RGSS Player",0)
if nextwindow
wndthreadid=TID.call
if wndthreadid==threadid
@@RGSSWINDOW=nextwindow
return @@RGSSWINDOW
end
end
end until nextwindow==0
GPPS.call("Game","Title","",title="\0"*255,255,".//Game.ini")
FW.call(0,nextwindow,"RGSS Player",title.delete!("\0"))
end
def self.opacity(opacitynum)
WL.call(self.handle)
DLL.call(self.handle, opacitynum)
end
end
*Armorphor*