Project1

标题: 如何在脚步处加图标 [打印本页]

作者: GM.01    时间: 2012-2-25 11:07
标题: 如何在脚步处加图标
本帖最后由 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
复制代码
dsu_plus_rewardpost_czw
作者: Wind2010    时间: 2012-2-25 12:39
self.contents.blt




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1