查看: 2955|回复: 1

[已经解决] 如何修改步数为其他内容

[复制链接]
梦石
0
星屑
17561
在线时间
4249 小时
注册时间
2013-7-18
回帖
2491
发表于 2016-3-9 18:53:50 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
步数窗口里改为其他,比如声望什么的....就是一个变量,怎么改呢....
  1. #==============================================================================
  2. # ■ Window_Steps
  3. #------------------------------------------------------------------------------
  4. #  菜单画面显示步数的窗口。
  5. #==============================================================================

  6. class Window_Steps < Window_Base
  7.   #--------------------------------------------------------------------------
  8.   # ● 初始化对像
  9.   #--------------------------------------------------------------------------
  10.   def initialize
  11.     super(0, 0, 160, 96)
  12.     self.contents = Bitmap.new(width - 32, height - 32)
  13.     refresh
  14.   end
  15.   #--------------------------------------------------------------------------
  16.   # ● 刷新
  17.   #--------------------------------------------------------------------------
  18.   def refresh
  19.     self.contents.clear
  20.     self.contents.font.color = system_color
  21.     self.contents.draw_text(4, 0, 120, 32, "步数")
  22.     self.contents.font.color = normal_color
  23.     self.contents.draw_text(4, 32, 120, 32, $game_party.steps.to_s, 2)
  24.   end
  25. end
复制代码
退隐....

梦石
0
星屑
9716
在线时间
2775 小时
注册时间
2008-9-5
回帖
3458

开拓者短篇八RM组冠军短篇九导演组亚军白银编剧

发表于 2016-3-9 20:24:39 | 显示全部楼层
【refresh】方法里面的【"步数"】改成想要显示的文字,比如【"声望"】
然后【$game_party.steps.to_s】改成【$game_variables[变量ID].to_s】

点评

nice,可以了....谢  发表于 2016-3-9 23:12

评分

参与人数 2星屑 +180 收起 理由
RyanBern + 150 认可答案
y967 + 30 塞糖

查看全部评分

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部