Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Closed TopicStart new topic
> RGSS Player Opacity ~ Armorphor
Armorphor
post Apr 1 2011, 11:16 PM
Post #1



Group Icon

Group: Member
Posts: 4
Type: Scripter
RM Skill: Undisclosed




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 biggrin.gif

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/?qkhncbbn1n8gmcd

Instructions:
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*
Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 20th May 2013 - 11:49 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker