赞 | 0 |
VIP | 313 |
好人卡 | 0 |
积分 | 1 |
经验 | 6681 |
最后登录 | 2024-1-20 |
在线时间 | 66 小时 |
Lv1.梦旅人 蚂蚁卡卡
- 梦石
- 0
- 星屑
- 116
- 在线时间
- 66 小时
- 注册时间
- 2007-12-16
- 帖子
- 3081
|
- #图片血槽显示Ver 1.0(清爽版)
- # by逐月
- #描画HP槽
- def HP (actor,x,y)
- @bitmap3 = Bitmap.new("Graphics/Pictures/底")
- @src_rect3 = Rect.new(0,0,@bitmap3.width, @bitmap3.height)
- self.contents.blt(x,y, @bitmap3, @src_rect3)
- #HP显示
- @bitmap3 = Bitmap.new("Graphics/Pictures/hp")
- w3 = @bitmap3.width * actor.hp/actor.maxhp
- @src_rect3 = Rect.new(0,0,w3, @bitmap3.height)
- self.contents.blt(x+4,y+2, @bitmap3, @src_rect3)
- end
- #描画SP槽
- def SP (actor,x,y)
- @bitmap1 = Bitmap.new("Graphics/Pictures/底")
- @src_rect1 = Rect.new(0,0,@bitmap1.width, @bitmap1.height)
- self.contents.blt(x,y, @bitmap1, @src_rect1)
- #SP显示
- @bitmap1 = Bitmap.new("Graphics/Pictures/sp")
- w1 = @bitmap1.width * actor.sp/actor.maxsp
- @src_rect1 = Rect.new(0,0,w1, @bitmap1.height)
- self.contents.blt(x+4,y+2, @bitmap1, @src_rect1)
- end
- #==============================================================================
- # ■ Window_BattleStatus
- #==============================================================================
- class Window_BattleStatus < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化
- #--------------------------------------------------------------------------
- alias xrxs_bp3_refresh refresh
- def refresh
- xrxs_bp3_refresh
- @item_max = $game_party.actors.size
- for i in 0...$game_party.actors.size
- actor = $game_party.actors[i]
- bitmap = Bitmap.new("Graphics/system/menu/back/" + actor.name + "_name.png")
- src_rect = Rect.new(0, 0, 120, 66)
- case i
- when 0
- x = 145
- y = 259
- #draw_actor_name(actor, 400 - 40,420-5)
-
- self.contents.blt(345, 405 , bitmap, src_rect)
-
- when 1
- x = 145
- y = 339
- # draw_actor_name(actor, 470 - 40,350-15 )
- self.contents.blt(420, 330 , bitmap, src_rect)
- when 2
- x = 145
- y = 419
- # draw_actor_name(actor, 540 - 30,280-20)
- self.contents.blt(500, 255 , bitmap, src_rect)
- when 3
- x = 145
- y = 499
- #draw_actor_name(actor, 610 - 40 ,210 )
- self.contents.blt(560, 190 , bitmap, src_rect)
- end
- ###########################一切自改##############################
- HP(actor, x-10, y)
- SP(actor, x-10, y + 18)
- # draw_actor_name(actor, x ,y )
-
- #######################################一切自改###############
- end
- end
- end
复制代码
|
|