@cpgauge_back = Sprite.new(@viewport3) @cpgauge_back.bitmap = Bitmap.new(400, 8) @cpgauge_back.bitmap.gradient_fill_rect(0, 0, 400, 16, Color.new(0, 255, 0), Color.new(255, 0, 0)) @cpgauge_back.x = 16 @cpgauge_back.y = 16
@cpgauge_back = Sprite.new(@viewport3)
@cpgauge_back.bitmap = Bitmap.new(400, 8)
@cpgauge_back.bitmap.gradient_fill_rect(0, 0, 400, 16, Color.new(0, 255, 0), Color.new(255, 0, 0))
@cpgauge_back.x = 16
@cpgauge_back.y = 16
@cpgauge_back.bitmap.dispose @cpgauge_back.dispose
@cpgauge_back.bitmap.dispose
@cpgauge_back.dispose
嘛,总而言之把这几行注释掉或者删掉都可以,如果你会的话也可以改成显示其他图片 |