赞 | 10 |
VIP | 15 |
好人卡 | 6 |
积分 | 16 |
经验 | 229303 |
最后登录 | 2025-8-8 |
在线时间 | 1612 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 1639
- 在线时间
- 1612 小时
- 注册时间
- 2007-8-28
- 帖子
- 3253
 
|
#==============================================================================
# ■ Window_Steps
#------------------------------------------------------------------------------
# 菜单画面显示步数的窗口。
#==============================================================================
class Window_Steps < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对像
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 96)
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "步数")
self.contents.font.color = normal_color
self.contents.draw_text(4, 32, 120, 32, $game_party.steps.to_s, 2)
end
end
把上面这个换成下面:
#==============================================================================
# ■ Window_Steps
#------------------------------------------------------------------------------
# 菜单画面显示步数的窗口。
#==============================================================================
class Window_Steps < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对像
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 96)#图像的大小有限制,要小于(160-32)×(96-32)
self.contents = Bitmap.new("这里放上你的图像路径")
end
end
改成如上的,这样原来的步数就没有了,改成图片了。 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|