| 赞 | 0  | 
 
| VIP | 22 | 
 
| 好人卡 | 0 | 
 
| 积分 | 1 | 
 
| 经验 | 467710 | 
 
| 最后登录 | 2018-9-22 | 
 
| 在线时间 | 17 小时 | 
 
 
 
 
 
Lv1.梦旅人 邪恶小龙包
	- 梦石
 - 0 
 
        - 星屑
 - 55 
 
        - 在线时间
 - 17 小时
 
        - 注册时间
 - 2006-5-22
 
        - 帖子
 - 7006
 
 
     
 
 | 
	
- class Window_swindow < Window_Base
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 初始化对像
 
 -   #--------------------------------------------------------------------------
 
 -   def initialize
 
 -     super(0, 0, 160, 96)
 
 -     self.contents = Bitmap.new(width - 32, height - 32)
 
 -     update
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 刷新
 
 -   #--------------------------------------------------------------------------
 
 -   def update
 
 -     self.contents.clear
 
 -     self.contents.font.color = normal_color
 
  
-     cx = contents.text_size($data_system.words.gold).width
 
 -     self.contents.draw_text(4, 0, 120-cx-2, 32, $game_party.gold.to_s, 2)
 
 -     self.contents.font.color = system_color
 
 -     self.contents.draw_text(124-cx, 0, cx, 32, $data_system.words.gold, 2)
 
 -     self.contents.draw_text(4, 32, 120, 32, $game_party.steps.to_s, 2)
 
 -   end
 
 - end
 
 
  复制代码 
 
先把以上这脚本加到MAIN脚本之上 
然后…… 
到Scene_Map中 
在   @message_window = Window_Message.new 
这行下加一段: 
   @swindow=Window_swindow.new 
 
在  @message_window.dispose 
这行下加一段: 
   @swindow.dispose 
 
 
在  @message_window.update 
这行下加一段: 
@swindow.update 
 
这样就可以了  系统信息:本贴由本区版主认可为正确答案,66RPG感谢您的热情解答~ |   
 
 
 
 |