| 赞 | 481  | 
 
| VIP | 56 | 
 
| 好人卡 | 75 | 
 
| 积分 | 471 | 
 
| 经验 | 124650 | 
 
| 最后登录 | 2025-11-4 | 
 
| 在线时间 | 7739 小时 | 
 
 
 
 
 
Lv5.捕梦者 (管理员) 老黄鸡 
	- 梦石
 - 4 
 
        - 星屑
 - 43131 
 
        - 在线时间
 - 7739 小时
 
        - 注册时间
 - 2009-7-6
 
        - 帖子
 - 13548
 
 
     
 
 | 
	
 本帖最后由 fux2 于 2011-3-4 07:04 编辑  
 
回复 a000b1745 的帖子 
 
以下代码插入到main以上使用 
(打开脚本编辑器,点一下"▼ 外来RGSS插件脚本",按键盘上的insert键,粘贴下面的代码,确定) 
super(20,20,300,132)这一句的四个数字是整体框架的X,Y,宽,高 
self.contents.draw_text(0,0,300,50,"剩余#{$game_variables[77]}生命") 的四个数字同上,只是单独描绘文字的坐标.- #~ # 窗口显示变量
 
 - class Scene_Map
 
 -   alias:fux2:main
 
 -   def main
 
 -     @info_fux2 = Fux2.new
 
 -     fux2
 
 -     @info_fux2.dispose
 
 -   end
 
 -   
 
 -   alias fux2update update
 
 -   def update
 
 -     @info_fux2.update
 
 -     fux2update
 
 -   end
 
 - end
 
  
- class Fux2 < Window_Base
 
 -   
 
 -   def initialize
 
 -     super(20,20,300,132)
 
 -     self.opacity = 0
 
 -     self.back_opacity = 0
 
 -     self.contents_opacity = 255
 
 -     self.contents = Bitmap.new(244, 96)
 
 -     @oldstr = nil
 
 -   end
 
 -   
 
 -   def update
 
 -     if $game_map.map_id == 1
 
 -       if @oldstr != $game_variables[77] 
 
 -         self.contents.clear
 
 -         self.contents.draw_text(0,0,300,50,"剩余#{$game_variables[77]}生命") 
 
 -       end
 
 -       @oldstr = $game_variables[77]
 
 -     else
 
 -       self.contents.clear
 
 -     end
 
 -   end
 
 -   
 
 - end
 
  复制代码 |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |