赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 1847 |
最后登录 | 2012-5-25 |
在线时间 | 0 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 0 小时
- 注册时间
- 2007-6-9
- 帖子
- 206
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
有地址吗?谢谢!
是这个脚本吗?
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# ● 开始对象敌人的选择
#--------------------------------------------------------------------------
def start_target_enemy_selection
@target_enemy_window = Window_TargetEnemy.new
@target_enemy_window.y = @info_viewport.rect.y
@info_viewport.rect.x += @target_enemy_window.width
@info_viewport.ox += @target_enemy_window.width
@actor_command_window.active = false
@target_select_sprite = Sprite.new
@target_select_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
@target_select_sprite.opacity = 160
end
#--------------------------------------------------------------------------
# ● 刷新选择对象的选择框
#--------------------------------------------------------------------------
def update_target_select_sprite(enemy)
@target_select_sprite.bitmap.clear
@target_select_sprite.bitmap.fill_rect(0, 0, Graphics.width, Graphics.height, Color.new(0, 0, 0, 255))
#enemy_bmp = enemy.avatar("站立", 0)
enemy_bmp = Cache.battler(enemy.battler_name, enemy.battler_hue)
enemy_x = enemy.screen_x
enemy_y = enemy.screen_y
dest_rect = Rect.new(enemy_x - enemy_bmp.width / 2, enemy_y - enemy_bmp.height ,
enemy_bmp.width, enemy_bmp.height)
src_bitmap = Cache.system("enemy_select_back")
src_rect = src_bitmap.rect
@target_select_sprite.bitmap.clear_rect(dest_rect)
@target_select_sprite.bitmap.stretch_blt(dest_rect, src_bitmap, src_rect)
@target_select_sprite.bitmap.blur
@target_select_sprite.bitmap.blur
end
#--------------------------------------------------------------------------
# ● 结束对象敌人的选择
#--------------------------------------------------------------------------
def end_target_enemy_selection
@info_viewport.rect.x -= @target_enemy_window.width
@info_viewport.ox -= @target_enemy_window.width
@target_enemy_window.dispose
@target_enemy_window = nil
@target_select_sprite.dispose
@target_select_sprite = nil
if @actor_command_window.index == 0
@actor_command_window.active = true
end
end
end
但是没任何效果啊```` 版务信息:本贴由楼主自主结贴~ |
|