fixed #110 rewrite of tab-view and better fonts

This commit is contained in:
Jeena 2015-02-22 17:34:56 +01:00
parent 06351e5828
commit 550d14fbef
11 changed files with 171 additions and 82 deletions

View file

@ -92,7 +92,7 @@ function (Parent, PIXI, Nc, Settings) {
if(options.healthFactor > 0) {
var color = 0x00FF00;
if(options.healthFactor < 0.30) color = 0xFF0000;
if(options.healthFactor < Settings.CRITICAL_HEALTH_THRESHOLD) color = 0xFF0000;
healthBar.beginFill(color);
healthBar.lineStyle(0, 0x000000);
healthBar.drawRect(borderWidth, borderWidth, width * options.healthFactor, height);