赞 | 9 |
VIP | 1 |
好人卡 | 6 |
积分 | 205 |
经验 | 289801 |
最后登录 | 2025-6-10 |
在线时间 | 94 小时 |
Lv5.捕梦者 御灵的宠物
- 梦石
- 12
- 星屑
- 8481
- 在线时间
- 94 小时
- 注册时间
- 2006-12-11
- 帖子
- 3156

|
class Window_Time < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对像
#--------------------------------------------------------------------------
def initialize
super(0, 0, 140, 110)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.font.size = 18
if $game_variables[2] >= 7 and $game_variables[2] <= 10
self.contents.draw_text(4, -5, 120, 32, "上午")
elsif $game_variables[2] >= 11 and $game_variables[2] <= 12
self.contents.draw_text(4, -5, 120, 32, "中午")
elsif $game_variables[2] >= 13 and $game_variables[2] <= 16
self.contents.draw_text(4, -5, 120, 32, "下午")
elsif $game_variables[2] >= 17 and $game_variables[2] <= 18
self.contents.draw_text(4, -5, 120, 32, "傍晚")
else
self.contents.draw_text(4, -5, 120, 32, "晚上")
end
self.contents.font.color = system_color
self.contents.draw_text(4, 48, 120, 32, "杀敌数")
text = sprintf("%02d:%02d", $game_variables[2], $game_variables[1] )
self.contents.font.color = normal_color
self.contents.draw_text(-20, -5, 120, 32, text, 2)
self.contents.draw_text(72, 48, 60, 32, $game_variables[3].to_s)
end
#--------------------------------------------------------------------------
# ● 刷新画面
#--------------------------------------------------------------------------
def update
super
refresh
end
end
自己拿去替换原脚本吧
我给你设了3号变量是杀敌数
你可以自己随便改 |
|