Asdded a build menu to the hud and fixed some color isues with the new ProgressBar class

This commit is contained in:
Ziver Koc 2007-04-23 20:58:24 +00:00
parent d1a2aa8b4e
commit 2cf489403d
10 changed files with 593 additions and 1168 deletions

View file

@ -5,7 +5,6 @@ import ei.engine.math.Vector2f;
import ei.engine.math.Vector4f;
import ei.engine.scene.Box;
import ei.engine.scene.Node;
import ei.engine.scene.Sprite;
import ei.engine.texture.Texture;
public class SelectBox {
@ -30,6 +29,9 @@ public class SelectBox {
bar = new ProgressBar("Health",x,height,max);
bar.getNode().setLocation(new Vector2f(0,-x/2+height/2));
bar.setValueColor(25, new Vector4f(1.0f, 0f, 0f, 1f));
bar.setValueColor(50, new Vector4f(1.0f, .95f, 0, 1f));
bar.setValueColor(100, new Vector4f(0.3f, 1.0f, 0.3f, 1f));
selectNode.add(bar.getNode());
mouseOverNode.add(bar.getNode());