Accueil du SiteAccueil du Site  AccueilAccueil  Dernières imagesDernières images  RechercherRechercher  ConnexionConnexion  S'enregistrerS'enregistrer  



-20%
Le deal à ne pas rater :
Ecran PC GIGABYTE 28″ LED M28U 4K ( IPS, 1 ms, 144 Hz, FreeSync ...
399 € 499 €
Voir le deal

Partagez
 

 [VX]Message Window Formatting

Voir le sujet précédent Voir le sujet suivant Aller en bas 
AuteurMessage
Invité
Invité
Anonymous


[VX]Message Window Formatting Empty
MessageSujet: [VX]Message Window Formatting   [VX]Message Window Formatting EmptySam 25 Fév 2012 - 19:45

Auteur: Jet
Ce script permet de ne plus se prendre la tête pendant que vous écrivez vos textes.
Vous pourrez dorénavant utiliser toute l'espace de la fenêtre sans prendre le risque que vous dialogues soient couper IG.


[VX]Message Window Formatting Textformatterscreenshot

Script:
Code:
#===============================================================================
# Message Window Formatting
# By Jet10985 (Jet)
#===============================================================================
# This script will allow you to type freely when making Text Events, because it
# will automatically format the text to not go past the window edges.
# This script has: 1 customization option.
#===============================================================================
# Overwritten Methods:
# None
#-------------------------------------------------------------------------------
# Aliased methods:
# Window_Message: start_message
#===============================================================================
=begin
To force a next line in the text, put \line inside the message where you
want to force text to the next line
=end
module MessageWindowFormatter
 
  # Turning this switch on will deactivate the formatter. Put 0 for no switch
  NO_FORMAT_SWITCH = 666
 
end

class String
 
  def each_word
    array = self.split(" ")
    if block_given?
      array.each {|a| yield a }
    else
      return array
    end
  end
end

class Window_Message
   
  alias jet1847_start_message start_message unless $@
  def start_message(*args, &block)
    if $game_switches[MessageWindowFormatter::NO_FORMAT_SWITCH]
      jet1847_start_message(*args, &block)
      return
    end
    if !self.is_a?(Window_BattleMessage)
      if $game_message.choice_max > 0
        for i in 0...$game_message.texts.size
          next unless i >= $game_message.choice_start - 1
          $game_message.texts[i] += " \x10985 "
        end
      end
    end
    jet1847_start_message(*args, &block)
    if !self.is_a?(Window_BattleMessage)
      @text.gsub!(/\\line/i) { " \x10985 " }
      temp_text = @text.split("\x00")
      new_text = ""
      space_taken = 0
      temp_text.each {|line|
        line.each_word {|word|
          space_taken += self.contents.text_size("#{word} ").width
          if word == "\x10985"
            space_taken = 0
            new_text.concat("\x00")
          elsif space_taken > self.width - @contents_x - 32
            space_taken = 0
            new_text.concat("\x00#{word} ")
            space_taken += self.contents.text_size("#{word} ").width
          else
            new_text.concat("#{word} ")
          end
        }
      }
      f = @text.scan(/\x00/i).size
      $game_message.choice_start = f - $game_message.choice_max
      @text = new_text
    end
  end
end
Revenir en haut Aller en bas
Elekami
Fondateur
Fondateur
Elekami

Masculin
Messages postés : 19071
Date d'inscription : 19/07/2008
Jauge LPC :
[VX]Message Window Formatting 8915271400100 / 100100 / 100[VX]Message Window Formatting 8915271400

[VX]Message Window Formatting Pater_10
[VX]Message Window Formatting Staffe10
[VX]Message Window Formatting Mythe_10
[VX]Message Window Formatting Membre11
[VX]Message Window Formatting Doyen10
[VX]Message Window Formatting Scanar10
[VX]Message Window Formatting Compos10
[VX]Message Window Formatting Testeu10
[VX]Message Window Formatting Membre15
[VX]Message Window Formatting Partag10
[VX]Message Window Formatting Projet10
[VX]Message Window Formatting Projet16
[VX]Message Window Formatting Riche_10
[VX]Message Window Formatting Travai10
[VX]Message Window Formatting Collec10
[VX]Message Window Formatting Collec11
[VX]Message Window Formatting Collec12
[VX]Message Window Formatting Collec13
[VX]Message Window Formatting Connar10


[VX]Message Window Formatting Empty
MessageSujet: Re: [VX]Message Window Formatting   [VX]Message Window Formatting EmptySam 25 Fév 2012 - 21:09

Pratique. Merci !
Revenir en haut Aller en bas
https://www.ledijonshow.fr https://twitter.com/EleKoptes
Mimiko
Ninja (niveau 5)
Ninja (niveau 5)
Mimiko

Féminin
Messages postés : 229
Date d'inscription : 31/08/2011
Jauge LPC :
[VX]Message Window Formatting 891527140014 / 10014 / 100[VX]Message Window Formatting 8915271400


[VX]Message Window Formatting Empty
MessageSujet: Re: [VX]Message Window Formatting   [VX]Message Window Formatting EmptyDim 26 Fév 2012 - 16:17

Il est bien pratique ce script,
Comme tu le dis Garruk "il n'y a plus besoin de prendre la tête avec les limite
pour écrire dans la boîte à message" Smile

Merci beaucoup pour le partage Very Happy
Revenir en haut Aller en bas
Jin
Ancien staffeux
Ancien staffeux
Jin

Masculin
Messages postés : 8557
Date d'inscription : 08/12/2010
Jauge LPC :
[VX]Message Window Formatting 891527140069 / 10069 / 100[VX]Message Window Formatting 8915271400

G 1 petit zizi Very Happy
Nn C pa vré Sad
[VX]Message Window Formatting Membre15
[VX]Message Window Formatting Partag10
[VX]Message Window Formatting Travai10
[VX]Message Window Formatting Event-10
[VX]Message Window Formatting Altrui10
[VX]Message Window Formatting Riche_10
[VX]Message Window Formatting Couhil10
[VX]Message Window Formatting Nain_p11
[VX]Message Window Formatting Connar10


[VX]Message Window Formatting Empty
MessageSujet: Re: [VX]Message Window Formatting   [VX]Message Window Formatting EmptyDim 26 Fév 2012 - 17:32

J'me suis jamais posé là question si il existait un script pour ca ... eh ben en fait si.
Me voici comblé Very Happy

+ 100 point lpdm x)
Revenir en haut Aller en bas
Elekami
Fondateur
Fondateur
Elekami

Masculin
Messages postés : 19071
Date d'inscription : 19/07/2008
Jauge LPC :
[VX]Message Window Formatting 8915271400100 / 100100 / 100[VX]Message Window Formatting 8915271400

[VX]Message Window Formatting Pater_10
[VX]Message Window Formatting Staffe10
[VX]Message Window Formatting Mythe_10
[VX]Message Window Formatting Membre11
[VX]Message Window Formatting Doyen10
[VX]Message Window Formatting Scanar10
[VX]Message Window Formatting Compos10
[VX]Message Window Formatting Testeu10
[VX]Message Window Formatting Membre15
[VX]Message Window Formatting Partag10
[VX]Message Window Formatting Projet10
[VX]Message Window Formatting Projet16
[VX]Message Window Formatting Riche_10
[VX]Message Window Formatting Travai10
[VX]Message Window Formatting Collec10
[VX]Message Window Formatting Collec11
[VX]Message Window Formatting Collec12
[VX]Message Window Formatting Collec13
[VX]Message Window Formatting Connar10


[VX]Message Window Formatting Empty
MessageSujet: Re: [VX]Message Window Formatting   [VX]Message Window Formatting EmptyDim 26 Fév 2012 - 17:53

Pourquoi vous postez que les bons scripts de VX et pas de XP ? X)
Revenir en haut Aller en bas
https://www.ledijonshow.fr https://twitter.com/EleKoptes
Jin
Ancien staffeux
Ancien staffeux
Jin

Masculin
Messages postés : 8557
Date d'inscription : 08/12/2010
Jauge LPC :
[VX]Message Window Formatting 891527140069 / 10069 / 100[VX]Message Window Formatting 8915271400

G 1 petit zizi Very Happy
Nn C pa vré Sad
[VX]Message Window Formatting Membre15
[VX]Message Window Formatting Partag10
[VX]Message Window Formatting Travai10
[VX]Message Window Formatting Event-10
[VX]Message Window Formatting Altrui10
[VX]Message Window Formatting Riche_10
[VX]Message Window Formatting Couhil10
[VX]Message Window Formatting Nain_p11
[VX]Message Window Formatting Connar10


[VX]Message Window Formatting Empty
MessageSujet: Re: [VX]Message Window Formatting   [VX]Message Window Formatting EmptyDim 26 Fév 2012 - 18:58

Eh ben je crois qu'il y a beaucoup plus de chose sous VX que XP.

XP, tout type de ressources confondu, je trouve que c'est maigre en ressource, surtout depuis le temps qu'il est sortis.
Revenir en haut Aller en bas
Siegfried
Mage (niveau 2)
Mage (niveau 2)
Siegfried

Masculin
Messages postés : 286
Date d'inscription : 31/07/2011
Jauge LPC :
[VX]Message Window Formatting 891527140080 / 10080 / 100[VX]Message Window Formatting 8915271400

[VX]Message Window Formatting Altrui10
[VX]Message Window Formatting Script10


[VX]Message Window Formatting Empty
MessageSujet: Re: [VX]Message Window Formatting   [VX]Message Window Formatting EmptyLun 26 Mar 2012 - 18:08

Mais non, vous êtes juste plus ici à utiliser VX que XP.

Si j'ai bien compris, ce script permet la découpe automatique des messages ? Si le texte est trop long, il est réparti sur plusieurs messages ?
Revenir en haut Aller en bas
http://saleth.fr
Invité
Invité
Anonymous


[VX]Message Window Formatting Empty
MessageSujet: Re: [VX]Message Window Formatting   [VX]Message Window Formatting EmptyLun 26 Mar 2012 - 19:16

Exactement, tu peux remplir toute la fenêtre sans avoir un risque que le texte soit découpé.
Mais j'ai remarqué un problème avec ce script, quand tu as un choix des commandes sont inversé, heureusement qu'on peut le désactiver à l'aide d'un interrupteur ça corrige un peu ce défaut assez chiant.
Revenir en haut Aller en bas
Contenu sponsorisé




[VX]Message Window Formatting Empty
MessageSujet: Re: [VX]Message Window Formatting   [VX]Message Window Formatting Empty

Revenir en haut Aller en bas
 
[VX]Message Window Formatting
Voir le sujet précédent Voir le sujet suivant Revenir en haut 
Page 1 sur 1
 Sujets similaires
-
» Window message XP de Dubealex
» [VXAce]ATS: Formatting.
» [VX] Window Maker
» Custom Window
» generateur de window skin

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
Le Palais Créatif :: ~ PARTAGE ~ :: Scripts et plugins :: RPG Maker VX :: Système-
Sauter vers: