Day.png);">
Apprendre


Vous êtes
nouveau sur
Oniromancie?

Visite guidée
du site


Découvrir
RPG Maker

RM 95
RM 2000/2003
RM XP
RM VX/VX Ace
RM MV/MZ

Apprendre
RPG Maker

Tutoriels
Guides
Making-of

Dans le
Forum

Section Entraide

Sorties: Dread Mac Farlane - episode 4 / Sorties: Star Trek: Glorious Wolf - (...) / Sorties: Dread Mac Farlane - episode 3 / News: Plein d'images cools créées par (...) / Sorties: Star Trek: Glorious Wolf - (...) / Chat

Bienvenue
visiteur !




publicité RPG Maker!

Statistiques

Liste des
membres


Contact

Mentions légales

470 connectés actuellement

29192301 visiteurs
depuis l'ouverture

7352 visiteurs
aujourd'hui



Barre de séparation

Partenaires

Indiexpo

Akademiya RPG Maker

Blog Alioune Fall

Fairy Tail Constellations

Hellsoft

Le Temple de Valor

New RPG Maker

RPG Maker - La Communauté

Tous nos partenaires

Devenir
partenaire



Bitmap.draw_text

Deux scripts : un qui rajoute une ombre, l'autre un contour aux polices d'écriture.

Script pour RPG Maker XP
Ecrit par Ultimate Jesus, catskart (Erwill)
Publié par Erwill (lui envoyer un message privé)
Signaler un script cassé

❤ 0

Salut, j'ai trouvé un script qui permet de donner de l'ombrage ou des contours noir aux lettres comme sur VX ou 2k3
L'auteur est Ultimate Jesus.

Il faut mettre le script aux dessus de Main.

Le script original, pour l'ombrage :

Portion de code : Tout sélectionner

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#===============================
# ■ Bitmap.draw_text
# Ultimate Jesus
#-------------------------------------
# Aliases and redefines draw_text so that a shadow is drawn
# Made by: Ultimate Jesus
#======================================
 
class Bitmap
 
ShadowIndent = 1                      # Size of the shadow (usually 1..3)
ShadowColour = Color.new(0, 0, 0, 255)# the colour of the shadow
                                     #   the 4th value is transparency (0-255)
                                     
 unless @ja_ta_feito == 1 # Fix for F12 Rebot by P@nCHo
   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



Et, pour vous faire cadeau, j'ai modifié ci-dessous le script pour donner les contours noirs aux lettres :

Portion de code : Tout sélectionner

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#===============================
# ■ Bitmap.draw_text
#-------------------------------------
# Aliases and redefines draw_text so that a shadow is drawn
# Made by: Ultimate Jesus
# Edited by Catskart
#======================================
 
class Bitmap
 
ShadowIndent = 1                      # Size of the shadow (usually 1..3)
ShadowColour = Color.new(0, 0, 0, 255)# the colour of the shadow
                                     #   the 4th value is transparency (0-255)
                                     
 unless @ja_ta_feito == 1 # Fix for F12 Rebot by P@nCHo
   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, width, height, string, align)
   draw_text_plain(x - ShadowIndent, y, width, height, string, align)
   draw_text_plain(x, y + ShadowIndent, width, height, string, align)
   draw_text_plain(x, y - ShadowIndent, width, height, string, align)
   self.font.color = colour
   draw_text_plain(x, y, width, height, string, align)
 end
end



Screenshots :

Spoiler (cliquez pour afficher)






Gregoose88 - posté le 01/08/2015 à 04:50:55 (4 messages postés)

❤ 0

Ton image éclate la page.
Et on ne le répètera jamais assez mais le nom d'un script ne change ABSOLUMENT rien.

Le Facebook de moi | L'outil YouTube ;)

Suite à de nombreux abus, le post en invités a été désactivé. Veuillez vous inscrire si vous souhaitez participer à la conversation.

Haut de page

Merci de ne pas reproduire le contenu de ce site sans autorisation.
Contacter l'équipe - Mentions légales

Plan du site

Communauté: Accueil | Forum | Chat | Commentaires | News | Flash-news | Screen de la semaine | Sorties | Tests | Gaming-Live | Interviews | Galerie | OST | Blogs | Recherche
Apprendre: Visite guidée | RPG Maker 95 | RPG Maker 2003 | RPG Maker XP | RPG Maker VX | RPG Maker MV | Tutoriels | Guides | Making-of
Télécharger: Programmes | Scripts/Plugins | Ressources graphiques / sonores | Packs de ressources | Midis | Eléments séparés | Sprites
Jeux: Au hasard | Notre sélection | Sélection des membres | Tous les jeux | Jeux complets | Le cimetière | RPG Maker 95 | RPG Maker 2000 | RPG Maker 2003 | RPG Maker XP | RPG Maker VX | RPG Maker VX Ace | RPG Maker MV | Autres | Proposer
Ressources RPG Maker 2000/2003: Chipsets | Charsets | Panoramas | Backdrops | Facesets | Battle anims | Battle charsets | Monstres | Systems | Templates
Ressources RPG Maker XP: Tilesets | Autotiles | Characters | Battlers | Window skins | Icônes | Transitions | Fogs | Templates
Ressources RPG Maker VX: Tilesets | Charsets | Facesets | Systèmes
Ressources RPG Maker MV: Tilesets | Characters | Faces | Systèmes | Title | Battlebacks | Animations | SV/Ennemis
Archives: Palmarès | L'Annuaire | Livre d'or | Le Wiki | Divers