赞 | 0 |
VIP | 35 |
好人卡 | 0 |
积分 | 1 |
经验 | 96121 |
最后登录 | 2020-2-15 |
在线时间 | 22 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 55
- 在线时间
- 22 小时
- 注册时间
- 2006-4-22
- 帖子
- 370
|
类似的,如果写在步数窗口上就可以这样写
#==============================================================================
# ■ 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, 30, 120, 32, "声望") #描绘声望字样
self.contents.draw_text(4, 0, 120, 32, "步数")
self.contents.font.color = normal_color
self.contents.draw_text(4, 2, 120, 32, $game_party.steps.to_s, 2)
self.contents.draw_text(4,30,120,32, $game_variables[2].to_s,2) #描绘2号变量,可以自己改~~
end
end
如果楼主想新建一个窗口,可以照着这些步数窗口什么的复制一个,然后把不要的删了,大概就是这样~~ 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|