赞 | 0 |
VIP | 313 |
好人卡 | 0 |
积分 | 1 |
经验 | 6681 |
最后登录 | 2024-1-20 |
在线时间 | 66 小时 |
Lv1.梦旅人 蚂蚁卡卡
- 梦石
- 0
- 星屑
- 116
- 在线时间
- 66 小时
- 注册时间
- 2007-12-16
- 帖子
- 3081
|
- #==============================================================================
- # ■ Window_BattleStatus
- #------------------------------------------------------------------------------
- # 显示战斗画面同伴状态的窗口。
- #==============================================================================
- class Window_BattleStatus < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化对像
- #--------------------------------------------------------------------------
- def initialize
- super(0, 320, 640, 480) #changed
- self.opacity =0 # 透明度更改
- self.contents = Bitmap.new(width - 32, height - 32)
- @level_up_flags = [false, false, false, false]
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 释放
- #--------------------------------------------------------------------------
- def dispose
- super
- end
- #--------------------------------------------------------------------------
- # ● 设置升级标志
- # actor_index : 角色索引
- #--------------------------------------------------------------------------
- def level_up(actor_index)
- @level_up_flags[actor_index] = true
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- @item_max = $game_party.actors.size
- for i in 0...$game_party.actors.size
- actor = $game_party.actors[i]
- actor_x = i * 160 + 4
- actor = $game_party.actors[i]
- case i
- when 0
- testname = actor.id.to_s+"-4"#1号角色头像
- bitmap=Bitmap.new("Graphics/Pictures/#{testname}")
- src_rect = Rect.new(0 ,0 , bitmap.width, bitmap.height)#——可自己调整大小
- self.contents.blt(0,0, bitmap, src_rect)
- draw_actor_name(actor, actor_x, 0)
- draw_actor_hp(actor, actor_x, 32, 120)
- draw_actor_sp(actor, actor_x, 64, 120)
- draw_actor_state(actor, actor_x, 95)
- when 1
- testname = actor.id.to_s+"-4"#2号角色头像
- bitmap=Bitmap.new("Graphics/Pictures/#{testname}")
- src_rect = Rect.new(0 ,0 , bitmap.width, bitmap.height) #——可自己调整大小
- self.contents.blt(100, 0, bitmap, src_rect)
- draw_actor_name(actor, actor_x, 0)
- draw_actor_hp(actor, actor_x, 32, 120)
- draw_actor_sp(actor, actor_x, 64, 120)
- draw_actor_state(actor, actor_x, 95)
- when 2
- testname = actor.id.to_s+"-4"#1号角色头像
- bitmap=Bitmap.new("Graphics/Pictures/#{testname}")
- src_rect = Rect.new(0 ,0 , bitmap.width, bitmap.height)#——可自己调整大小
- self.contents.blt(200,0, bitmap, src_rect)
- draw_actor_name(actor, actor_x, 0)
- draw_actor_hp(actor, actor_x, 32, 120)
- draw_actor_sp(actor, actor_x, 64, 120)
- draw_actor_state(actor, actor_x, 95)
- when 3
- testname = actor.id.to_s+"-4"#1号角色头像
- bitmap=Bitmap.new("Graphics/Pictures/#{testname}")
- src_rect = Rect.new(0 ,0 , bitmap.width, bitmap.height)#——可自己调整大小
- self.contents.blt(300,0, bitmap, src_rect)
- draw_actor_name(actor, actor_x, 0)
- draw_actor_hp(actor, actor_x, 32, 120)
- draw_actor_sp(actor, actor_x, 64, 120)
- draw_actor_state(actor, actor_x, 95)
- end
- end
- end
- #--------------------------------------------------------------------------
- # ● 刷新画面
- #--------------------------------------------------------------------------
- def update
- super
- # 主界面的不透明度下降
- if $game_temp.battle_main_phase
- self.contents_opacity -= 4 if self.contents_opacity > 191
- else
- self.contents_opacity += 4 if self.contents_opacity < 255
- end
- end
- end
复制代码
囧全了
既然如此 你是发过 素材的索菲亚吧
那我只要这200分好了 V 你留着吧{/wx}
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|