Jump to content
Rpg²S Forum
  • 0

Problema con il menù


Eberk94
 Share

Question

Ho un problema con il mio script per il menù:

nella parte dove ci devono essere scritte le monte, il luogo e il tempo non c'è scritto niente e non penso sia un motivo di font dato che le altre scritte si vedono. Premetto che di script non me ne intendo posto solo la parte che dovrebbe riguardare quelle cose, altrimenti ditemi che posto tutto

 

 

 

####################

# Window_PlayTime2 #

####################

class Window_PlayTime2 < Window_Base

def initialize

super(0, 0, 160, 96)

self.contents = Bitmap.new(width - 32, height - 32)

self.windowskin = RPG::Cache.windowskin("")

self.opacity = 0

self.z = 15

refresh

end

def refresh

self.contents.clear

@total_sec = Graphics.frame_count / Graphics.frame_rate

hour = @total_sec / 60 / 60

min = @total_sec / 60 % 60

sec = @total_sec % 60

text = sprintf("%02d:%02d:%02d", hour, min, sec)

self.contents.font.color = normal_color

self.contents.draw_text(4, 32, 120, 32, text, 2)

end

def update

super

if Graphics.frame_count / Graphics.frame_rate != @total_sec

refresh

end

end

end

#################

# Window_Steps2 #

#################

class Window_Steps2 < Window_Base

def initialize

super(0, 0, 160, 96)

self.contents = Bitmap.new(width - 32, height - 32)

self.windowskin = RPG::Cache.windowskin("")

self.opacity = 0

self.z = 15

refresh

end

def refresh

self.contents.clear

self.contents.font.color = normal_color

self.contents.draw_text(4, 32, 120, 32, $game_party.steps.to_s, 2)

end

end

###################

# Window_Map_Name #

###################

class Window_Map_Name < Window_Base

def initialize

super(0, 0, 160, 96)

self.contents = Bitmap.new(width - 32, height - 32)

self.windowskin = RPG::Cache.windowskin("")

self.opacity = 0

self.z = 15

refresh

end

def refresh

self.contents.clear

self.contents.font.color = normal_color

self.contents.draw_text(4, 32, 120, 32, $game_map.mpname.to_s, 1)

end

end

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

è un problema di font, il codice per far vedere le scritte va impostato per ogni window. ecco perchè le altre scritte le vedi^^

prova a copiare i codici riguardanti i font che stanno dentro i def initialize delle window di cui vedi i font dentro i def initialize di queste window qua sopra,

i codici sono due: uno imposta il carattere e uno la dimensione, talvolta c'è grassetto, corsivo, ecc, ma non sono essenziali

Script!

 

Roba scritta, guide:

 

Applicazioni:

 

Progetti!

http://img69.imageshack.us/img69/2143/userbarctaf.png http://img641.imageshack.us/img641/5227/userbartemplateb.pnghttp://i46.tinypic.com/ac6id0.png

Link to comment
Share on other sites

  • 0
  • 0
non c'è qualcosa tipo self.contents.font.name = "Arial" e self.contents.font.size = 24? quelli lì devi copiare, con il tipo di carattere e la dimensione per com'è lì (io ho messo a caso Arial e 24, non so). puoi copiarli sotto self.contents = Bitmap.new.... in ogni window, dentro def initialize

Script!

 

Roba scritta, guide:

 

Applicazioni:

 

Progetti!

http://img69.imageshack.us/img69/2143/userbarctaf.png http://img641.imageshack.us/img641/5227/userbartemplateb.pnghttp://i46.tinypic.com/ac6id0.png

Link to comment
Share on other sites

  • 0

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...