Toggle Chat
RM - Chat
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Script title a picture
Iniziato da
Melosx
, Oct 17 2010 09:03 PM
12 risposte a questa discussione
#1 OFFLINE
Inviato 17 October 2010 - 09:03 PM
Ho lo scrpit per il title alla FF ma usa la windowskin... Io invece vorrei che fosse a picture... Quindi mi serve uno script per il title a picture dove ovviamento posso cambiare la disposizione dei pulsanti...
#3 OFFLINE
#4 OFFLINE
Inviato 18 October 2010 - 05:06 PM
Postaci lo script ^^
Spoiler
#5 OFFLINE
Inviato 18 October 2010 - 05:18 PM
Script alla Title alla FF
ecco lo script alla FF... Puoi adattare questo per farlo a picture???
#==============================================================================
# ** Scene_Title
#------------------------------------------------------------------------------
# This class performs the title screen processing.
#==============================================================================
class Window_Basic < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize(x, y, width, height)
super(x, y, width, height)
self.contents = Bitmap.new(width - 32, height - 32)
@writtentext = ""
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
rect = Rect.new(0, 0, self.contents.text_size(@writtentext).width, self.contents.text_size(@writtentext).height)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
self.contents.draw_text(rect, @writtentext, 1)
end
def setText(newText)
@writtentext = newText
refresh
end
end
class Scene_Title < Scene_Base
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
@command_window.update
if Input.trigger?(Input::C)
case @command_window.index
when 0 #New game
command_new_game
when 1 # Continue
command_continue
when 2 # Shutdown
command_shutdown
end
end
case @command_window.index
when 0 # New game
@text_window.setText("Inizia una nuova partita")
when 1 # Continue
@text_window.setText("Carica partita")
when 2 # Shutdown
@text_window.setText("Esci dal gioco")
end
end
#--------------------------------------------------------------------------
# * Dispose of Command Window
#--------------------------------------------------------------------------
def dispose_command_window
@command_window.dispose
@text_window.dispose
end
#--------------------------------------------------------------------------
# * Create Command Window
#--------------------------------------------------------------------------
def create_command_window
s1 = Vocab::new_game
s2 = Vocab::continue
s3 = Vocab::shutdown
@text_window = Window_Basic.new(20,30,480,60)
@text_window.setText("Inizia una nuova partita")
@command_window = Window_Command.new(172, [s1, s2, s3])
@command_window.x = 325
@command_window.y = 95
if @continue_enabled # If continue is enabled
@command_window.index = 1 # Move cursor over command
else # If disabled
@command_window.draw_item(1, false) # Make command semi-transparent
end
@text_window.openness = 0
@command_window.openness = 0
@command_window.open
@text_window.open
end
def open_command_window
@text_window.open
@command_window.open
begin
@text_window.update
@command_window.update
Graphics.update
end until @command_window.openness == 255
end
def close_command_window
@text_window.close
@command_window.close
begin
@text_window.update
@command_window.update
Graphics.update
@text_window.openness = @command_window.openness
end until @command_window.openness == 0
end
end
ecco lo script alla FF... Puoi adattare questo per farlo a picture???
#7 OFFLINE
Inviato 18 October 2010 - 08:51 PM
Ma serve per forza uno script per creare un banalissimo title?
Va bè <_<
Comunque,io ho già creato per il VX un title ad eventi(per Ally),volendo potrei postare una demo (:
Va bè <_<
Comunque,io ho già creato per il VX un title ad eventi(per Ally),volendo potrei postare una demo (:
http://nexuseden.tumblr.com/
Sono così annoiato da offrirmi come eventer per qualsiasi progetto (:NightEngine
Sono così annoiato da offrirmi come eventer per qualsiasi progetto (:NightEngine
Spoiler
#8 OFFLINE
Inviato 18 October 2010 - 08:59 PM
Se lo faccio con un evento comune oltre a occuparmi switch e variabili che mi serviranno(e mi serviraNno) devo usare cmq uno script che salta il title e fa partire un evento comune... Quindi a me sembra più vantaggioso lo script... Nn occuupa variabili e switch ed é più facile da personalizzare...
#9 OFFLINE
Inviato 18 October 2010 - 09:18 PM
Non si crea nessun evento comune o_o,ma un semplice evento su mappa e comunque c'è uno script bello pronto che fa tutto il lavoro per saltare il title (:
http://nexuseden.tumblr.com/
Sono così annoiato da offrirmi come eventer per qualsiasi progetto (:NightEngine
Sono così annoiato da offrirmi come eventer per qualsiasi progetto (:NightEngine
Spoiler
#10 OFFLINE
Inviato 26 October 2010 - 01:37 PM
L'argomento è stato risolto Melosx?
Spoiler
#11 OFFLINE
#12 OFFLINE
Inviato 26 October 2010 - 02:47 PM
Se hai risolto come consigliato,oppure ti serve ancora.
Spoiler
#13 OFFLINE
1 utente(i) stanno leggendo questa discussione
0 utenti, 1 ospiti, 0 utenti anonimi




















