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
Question
Eberk94
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
http://img263.imageshack.us/img263/4932/vegetart8.gif
http://img117.imageshack.us/img117/4495/hisokazp3.gif
http://img521.imageshack.us/img521/671/itachivv9.gif
http://www.ff-fan.com/chartest/banners/sephiroth.jpg
Which Final Fantasy Character Are You?
Final Fantasy 7
---------------------
http://img527.imageshack.us/img527/944/user6.png
Link to comment
Share on other sites
4 answers to this question
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