Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / ui / LCDProgressBar.as
bloba175dd6e9492c7a47c682cc24acd6840ebc9a576
1 package org.sevenchan.dongs.ui
3 import flash.display.Sprite;
4 /**
5 * ...
6 * @author Harbinger
7 */
8 public class LCDProgressBar extends Sprite
10 public static const opacity:Number = 0.5;
11 public var color:uint = 0x000000;
12 public function LCDProgressBar()
16 public function draw(steps:Number, max:Number, h:Number, w:Number):void {
17 //trace("Drawing: {x:"+x+", y:"+y+", h:"+h+", w:"+w+"}");
18 graphics.clear();
19 graphics.lineStyle(2, 0x000000, opacity);
20 graphics.moveTo(0, 0);
21 graphics.lineTo(w, 0);
22 graphics.lineTo(w, h);
23 graphics.lineTo(0, h);
24 graphics.lineTo(0, 0);
25 graphics.lineStyle();
27 graphics.beginFill(0x000000, opacity);
28 graphics.drawRect(3, 3, (steps/max)*(w - 6), h - 6);
29 graphics.endFill();