查看: 1766|回复: 1

[已经解决] 如何在脚步处加图标

[复制链接]
梦石
0
星屑
50
在线时间
69 小时
注册时间
2010-6-27
回帖
231
发表于 2012-2-25 11:07:29 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 GM.01 于 2012-2-25 11:08 编辑
  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_variables[888].to_s,2)
  24.     end
  25.   end
复制代码

点评

我已经看懂了  发表于 2012-2-26 10:26

虱子

梦石
0
星屑
121
在线时间
1782 小时
注册时间
2010-6-19
回帖
3515
发表于 2012-2-25 12:39:11 | 显示全部楼层
self.contents.blt

点评

谢谢了  发表于 2012-2-26 10:26
能说清楚些?  发表于 2012-2-25 23:39
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部