RBWL3EUWB3D7VA35P6EDTCRSLDIP6ZMTE2JCKBETF46X5BW7YC5AC
this.outerBar.beginFill(0xDDEEFF);
this.outerBar.drawRoundedRect(0, 0, 100, 236, 10);
this.outerBar.beginFill(0xDDEEFF); // background color is the blue AACCEE, this is very light bluer than that
this.outerBar.drawRoundedRect(0, 0, 100, 236, 10); // outerbar = the box containing the efficiency text + bar. 100px is just enough width for the word "Efficiency". 236px height was chosen arbitrarily
this.outerBar.alpha = .9;
this.filter = new Pixi.filters.BlurFilter();
this.outerBar.alpha = .9; // let a bit of the background poke through. TODO: actually blur the background?? cant figure out how to do it
this.container.addChild(this.outerBar);
// this.filter = new Pixi.filters.BlurFilter();
this.innerBar.pivot.x = 20;
this.innerBar.x = 50;
this.innerBar.y = 24;
this.innerBar.pivot.x = 20; // this is our width over 2
this.innerBar.x = 50; // this is outer bar width / 2
this.innerBar.y = 24; // this is just enough space below the "Efficiency" text to look nice
this.mask.beginFill(0x000000, 1);
this.mask.drawRoundedRect(0, 0, 40, 200, 10);
this.mask.zIndex = 30;
this.mask.beginFill(0x000000, 1); // color and alpha literally dont matter cuz its a mmask
this.mask.drawRoundedRect(0, 0, 40, 200, 10); // same dims as the inner bar. note that this doesnt take into account the line style of width 2, so it will cause the filling to leak over into the line style. to fix this innerBar2 is reapplied over the top to cover the leaks.
this.mask.zIndex = 30; // doesnt matter