修改脚本中的def create_rtabcp_gauge
#-------------------------------------------------------------------------- # ● 生成战斗CP条 #-------------------------------------------------------------------------- def create_rtabcp_gauge @cpgauge_back = Sprite.new(@viewport3) @cpgauge_back.bitmap = Bitmap.new(200, 8) @cpgauge_back.bitmap.gradient_fill_rect(0, 0, 200, 16, Color.new(0, 255, 0), Color.new(255, 0, 0)) @cpgauge_back.x = 16 @cpgauge_back.y = 16 # 各个角色生成其图标 @icons = {} index=0 for iii in $game_party.members @icons[iii] = Sprite.new(@viewport3) @icons[iii].bitmap = Bitmap.new("Graphics/Pictures/SL我方"+index.to_s+".png") @icons[iii].ox = 12 @icons[iii].oy = 12 @icons[iii].x = 16 @icons[iii].y = 20 index+=1 end index=0 for iii in $game_troop.members @icons[iii] = Sprite.new(@viewport3) @icons[iii].bitmap = Bitmap.new("Graphics/Pictures/SL敌方"+index.to_s+".png") @icons[iii].ox = 12 @icons[iii].oy = 12 @icons[iii].x = 16 @icons[iii].y = 20 index+=1 end end
#--------------------------------------------------------------------------
# ● 生成战斗CP条
#--------------------------------------------------------------------------
def create_rtabcp_gauge
@cpgauge_back = Sprite.new(@viewport3)
@cpgauge_back.bitmap = Bitmap.new(200, 8)
@cpgauge_back.bitmap.gradient_fill_rect(0, 0, 200, 16, Color.new(0, 255, 0), Color.new(255, 0, 0))
@cpgauge_back.x = 16
@cpgauge_back.y = 16
# 各个角色生成其图标
@icons = {}
index=0
for iii in $game_party.members
@icons[iii] = Sprite.new(@viewport3)
@icons[iii].bitmap = Bitmap.new("Graphics/Pictures/SL我方"+index.to_s+".png")
@icons[iii].ox = 12
@icons[iii].oy = 12
@icons[iii].x = 16
@icons[iii].y = 20
index+=1
end
index=0
for iii in $game_troop.members
@icons[iii] = Sprite.new(@viewport3)
@icons[iii].bitmap = Bitmap.new("Graphics/Pictures/SL敌方"+index.to_s+".png")
@icons[iii].ox = 12
@icons[iii].oy = 12
@icons[iii].x = 16
@icons[iii].y = 20
index+=1
end
end
Graphics/Pictures/ 目录中的图标文件按序号增加0-7
|