以下引用禾西于2008-4-14 3:08:27的发言:
加入分歧,用100號開關控制
#==============================================================================
# ■ Window_PlayTime
#------------------------------------------------------------------------------
# 菜单画面显示游戏时间的窗口。
#==============================================================================
class Window_PlayTime < Window_Base
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "游戏时间")
@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)
if $game_swithes[100]
self.contents.font.color = disabled_color
else
self.contents.font.color = normal_color
end
self.contents.draw_text(4, 32, 120, 32, text, 2)
end
end
就是這句:
if $game_swithes[100]
self.contents.font.color = disabled_color
else
self.contents.font.color = normal_color
end
[本贴由作者于 2008-4-14 3:09:00 最后编辑]
if $game_swithes[100]
以下引用hykwf233于2008-4-14 4:07:32的发言:
我怎么用了这个脚本总是提示错误!?
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |