Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Shadow under the font
Saul95
post Dec 8 2011, 04:47 AM
Post #1


Level 5
Group Icon

Group: Member
Posts: 62
Type: Mapper
RM Skill: Skilled




Shadow under the font

Version 1.0
Author Saul
Release Date 23/06/11

Introduction
This simple script made by me insert the shadows under the font. As in RPG Maker VX.The script is in Italian. If you have a little patience I'll translate it in English, but you can start using it even now.

Script
Script
CODE
#=================================================================
# Ombra sotto il font v 1.0
# 23/06/11
#=======================================================================
module Ombra_testo
   Ombra_Font = true # Se è true, verrà attivata l'ombra, se false, ovviamente no.
end


#===============================================================================
# IF: L'ombra del font è attiva.
#===============================================================================
if Ombra_testo::Ombra_Font
#===============================================================================
class Bitmap
if not method_defined?('original_draw_text')
alias Ombra_testo_original_draw_text draw_text
def draw_text(*arg)
original_color = self.font.color.dup
self.font.color = Color.new(0, 0, 0, 128)
if arg[0].is_a?(Rect)
arg[0].x += 2
arg[0].y += 2
self.Ombra_testo_original_draw_text(*arg)
arg[0].x -= 2
arg[0].y -= 2
else
arg[0] += 2
arg[1] += 2
self.Ombra_testo_original_draw_text(*arg)
arg[0] -= 2
arg[1] -= 2
end
self.font.color = original_color
self.Ombra_testo_original_draw_text(*arg)
end
end
end
end


Customization
If you need to disable the script without deleting it, you must write on line 6 false instead of true.

Compatibility
It should be compatible with all scripts.

Screenshot
I don't think screens are necessary, but if required, will be added.

DEMO
It isn't necessary for this script.

Installation
No installation, just insert the script above Main.

Credits
Credited is not necessary, but not passed off as the script for you.


__________________________

A project I support, Crystal Tears:
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies (1 - 2)
Jens of Zanicuud
post Dec 10 2011, 08:37 AM
Post #2


Dark Jentleman
Group Icon

Group: Local Mod
Posts: 904
Type: Scripter
RM Skill: Skilled
Rev Points: 120




Interesting idea and interesting realization...
It sounds great smile.gif

I've only a question for you:
Have you tested it in battle with four char in you party or something like that?

Usually, if Window_BattleStatus is too elaborated (i.e. status icons, life and sp gauges, et cetera, et cetera...) and/or there's is a HUGE amount of text, a double-drawn text can cause a little lag.
For a full compatibility, I think that a conditioned refresh in Window_BattleStatus can fix this little issue (i.e. making that window refresh only if actor's state is changed...)

If you haven''t experienced this problem, well it sounds like there are no other flaws.

Jens



__________________________
"Thorns are the rose's sweetest essence..."
-Jens of Zanicuud


Games I'm working on:
>

official website: TryAdIne eFfeCt

>

Games I worked on (mainly as a scripter):
>
(Warning: it's a 3rr3's project and it's in Italian!)


Awards

Go to the top of the page
 
+Quote Post
   
Saul95
post Dec 20 2011, 12:52 PM
Post #3


Level 5
Group Icon

Group: Member
Posts: 62
Type: Mapper
RM Skill: Skilled




Thanks for commenting happy.gif
I tried the script in battle, but he don't lag.


__________________________

A project I support, Crystal Tears:
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: 19th May 2013 - 10:16 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker