[Script]-Sombra no Texto
Dinastia Maker :: Rpg Maker :: Rpg Maker XP :: Scripts
Página 1 de 1
[Script]-Sombra no Texto
Shadow Text
Descrição:
Adiciona sombra em seu texto
Script:
Código:
#################################################################
###################### SHADOW TEXT ##############################
#################################################################
# Autor - Ultimate Jesus
#################################################################
# Adiciona sombras em seu texto.
#################################################################
class Bitmap
ShadowIndent = 2 # Intensidade da sombra
ShadowColour = Color.new(0, 0, 0, 200)# Cor da sombra
unless @ja_ta_feito == 1
alias draw_text_plain draw_text
@ja_ta_feito = 1
end
def draw_text(arg1 = 0, arg2 = 0, arg3 = 0, arg4 = 0, arg5 = 0, arg6 = 0)
if arg1.is_a?(Rect)
x = arg1.x
y = arg1.y
width = arg1.width
height = arg1.height
string = arg2
align = arg3
else
x = arg1
y = arg2
width = arg3
height = arg4
string = arg5
align = arg6
end
colour = self.font.color.dup
self.font.color = ShadowColour
draw_text_plain(x + ShadowIndent, y + ShadowIndent, width, height, string, align)
self.font.color = colour
draw_text_plain(x, y, width, height, string, align)
end
end
Descrição:
Adiciona sombra em seu texto
Script:
Código:
#################################################################
###################### SHADOW TEXT ##############################
#################################################################
# Autor - Ultimate Jesus
#################################################################
# Adiciona sombras em seu texto.
#################################################################
class Bitmap
ShadowIndent = 2 # Intensidade da sombra
ShadowColour = Color.new(0, 0, 0, 200)# Cor da sombra
unless @ja_ta_feito == 1
alias draw_text_plain draw_text
@ja_ta_feito = 1
end
def draw_text(arg1 = 0, arg2 = 0, arg3 = 0, arg4 = 0, arg5 = 0, arg6 = 0)
if arg1.is_a?(Rect)
x = arg1.x
y = arg1.y
width = arg1.width
height = arg1.height
string = arg2
align = arg3
else
x = arg1
y = arg2
width = arg3
height = arg4
string = arg5
align = arg6
end
colour = self.font.color.dup
self.font.color = ShadowColour
draw_text_plain(x + ShadowIndent, y + ShadowIndent, width, height, string, align)
self.font.color = colour
draw_text_plain(x, y, width, height, string, align)
end
end
Tópicos semelhantes
» [Script]- Mog Fog Effects
» [Script]-Menu Ex
» [Script]-Nome no Npc
» [Script]-Mog Skill Item
» [Script]- Press Enter
» [Script]-Menu Ex
» [Script]-Nome no Npc
» [Script]-Mog Skill Item
» [Script]- Press Enter
Dinastia Maker :: Rpg Maker :: Rpg Maker XP :: Scripts
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|