mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixed #110 rewrite of tab-view and better fonts
This commit is contained in:
parent
06351e5828
commit
550d14fbef
11 changed files with 171 additions and 82 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue