amivaleo Posted March 10, 2008 Share Posted March 10, 2008 (edited) Window Help MovementDescrizioneRende scorrevoli le scritte della finestra d'aiuto. AutoreZiel van Brand AllegatiN\A Istruzioni per l'usoSostituite lo script di default col nome "Window_Help" con questo:Una volta sostituito con il contenuto di default della "Window_Help", non serve altro per farlo funzionare. #===================================== # ¦ Window Help Movement # Ziel van Brand #===================================== class Window_Help < Window_Base #-------------------------------------------------------------------------- def initialize super(0, 0, 640, 64) self.contents = Bitmap.new(width - 32, height - 32) self.contents.font.name = $fontface self.contents.font.size = $fontsize end #-------------------------------------------------------------------------- def set_text(text, align = 0) if text != @text or align != @align self.contents.clear self.contents.font.color = normal_color @tw = contents.text_size(text).width @text = text @align = align @actor = nil @x = self.width-40 if @tw > (self.width - 40) refresh else self.contents.draw_text(4, 0, @tw, 32, @text, @align) end end self.visible = true end #-------------------------------------------------------------------------- def update self.contents.clear if @x <= -@tw @x = self.width-40 else @x -= 2 end self.contents.draw_text(@x, 0, @tw, 32, @text, @align) end #-------------------------------------------------------------------------- def set_actor(actor) if actor != @actor self.contents.clear draw_actor_name(actor, 4, 0) draw_actor_state(actor, 140, 0) draw_actor_hp(actor, 284, 0) draw_actor_sp(actor, 460, 0) @actor = actor @text = nil self.visible = true end end #-------------------------------------------------------------------------- def set_enemy(enemy) text = enemy.name state_text = make_battler_state_text(enemy, 112, false) if state_text != "" text += " " + state_text end set_text(text, 1) end end Bugs e Conflitti NotiDovrebbe funzionare a prescindere da qualsiasi altro script. Edited March 22, 2013 by Flame Link to comment Share on other sites More sharing options...
HidroSaphire Posted July 30, 2008 Share Posted July 30, 2008 che fa sto script? http://img362.imageshack.us/img362/4263/showphprw6ak8.jpg Link to comment Share on other sites More sharing options...
marigno Posted July 30, 2008 Share Posted July 30, 2008 Rende scorrevoli le scritte della finestra d'aiuto. Basta leggere. :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now