赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 2123 |
最后登录 | 2013-5-29 |
在线时间 | 35 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 35 小时
- 注册时间
- 2008-1-6
- 帖子
- 141
|
7楼
楼主 |
发表于 2008-4-14 12:13:19
|
只看该作者
其实我之前已经把时间框改成这样了!现在想在下面再显示三个开关的名称,只有为ON时才显示。(另外我已经设定每次三个开关中只有一个会为ON而已。)请帮我改一下。谢~~
#==============================================================================
# ■ Window_PlayTime
#------------------------------------------------------------------------------
# 菜单画面显示游戏时间的窗口。
#==============================================================================
class Window_PlayTime < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对像
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 192)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#--- def initialize
#--
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = normal_color
self.contents.draw_text(4, 0, 120, 30, "GX")
self.contents.font.color = normal_color
self.contents.draw_text(4, 0, 120, 30, $game_variables[40].to_s, 2)
self.contents.draw_text(4, 30, 120, 32, "GF")
self.contents.font.color = normal_color
self.contents.draw_text(4, 30, 120, 32, $game_variables[41].to_s, 2)
self.contents.draw_text(4, 60, 120, 32, "GG")
self.contents.font.color = normal_color
self.contents.draw_text(4, 60, 120, 32, $game_variables[42].to_s, 2)
self.contents.draw_text(4, 90, 120, 32, "GM")
self.contents.font.color = normal_color
self.contents.draw_text(4, 90, 120, 32, $game_variables[43].to_s, 2)
self.contents.draw_text(4, 120, 120, 32, "GD")
self.contents.font.color = normal_color
self.contents.draw_text(4, 120, 120, 32, $game_variables[44].to_s, 2)
end
end
|
|