赞 | 5 |
VIP | 359 |
好人卡 | 195 |
积分 | 3 |
经验 | 560179 |
最后登录 | 2024-11-20 |
在线时间 | 1374 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 280
- 在线时间
- 1374 小时
- 注册时间
- 2005-10-16
- 帖子
- 5113
|
本帖最后由 亿万星辰 于 2012-1-20 15:02 编辑
话说你用之前不看下面的回帖评价么……谨慎使用,无法测试~
- class Window_MapZ < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化对像
- #--------------------------------------------------------------------------
- def initialize(x,y)
- super(-12, -12, 544+16,416+16)
- self.opacity = 0
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 更新
- #--------------------------------------------------------------------------
- def update
- # 这里只对HP和MP做了变化判断
- refresh if @actor.hp != $game_actors[1].hp or @actor.mp != $game_actors[1].mp
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- @actor = $game_actors[1].clone
- draw_actor_face($game_actors[1],0 ,0 )
- #$game_map.screen.pictures[1].show("你要显示的图片名", 0, 0, 0, 100, 100, 255, 0) #若要使用请取消注释
- draw_actor_hp($game_actors[1], 80+12, 0, 160)
- draw_actor_mp($game_actors[1], 80+12, 32, 160)
- self.contents.font.color = normal_color
- self.contents.draw_text(84+12, 52+8, 544, 24, "#{$game_actors[1].name} Lv.#{$game_actors[1].level}")
- self.contents.font.color = system_color
- self.contents.draw_text(0+96+120+40, 0-4, 544, 24, "攻:")
- self.contents.draw_text(0+96+120+40, 22-4, 544, 24, "防:")
- self.contents.draw_text(0+96+120+96+40, 0-4, 544, 24, "所持金钱:")
- self.contents.draw_text(-18, 22-4, 544, 24, "G", 2)
- self.contents.font.color = normal_color
- self.contents.draw_text(-456+96+120+40, 0-4, 544, 24, $game_actors[1].atk, 2)
- self.contents.draw_text(-456+96+120+40, 22-4, 544, 24, $game_actors[1].def, 2)
- self.contents.draw_text(-36, 22-4, 544, 24, $game_party.gold, 2)
- self.contents.font.color = text_color(5)#改颜色什么的~
- self.contents.draw_text(0,380 , 534, 24, "显示变量的名字:#{ $game_variables[13]}")
- end
- end
复制代码 |
评分
-
参与人数 1 | 星屑 +200 |
梦石 +2 |
收起
理由
|
「旅」
| + 200 |
+ 2 |
认可答案,恭喜你获得由66RPG提供的精美好. |
查看全部评分
|