v1.2.0: moved health and xp bar textures into status pane file
This commit is contained in:
parent
3f0a2ad1a3
commit
03f657f4f4
Binary file not shown.
Before Width: | Height: | Size: 83 B |
Binary file not shown.
Before Width: | Height: | Size: 109 B |
Binary file not shown.
Before Width: | Height: | Size: 108 B |
Binary file not shown.
Before Width: | Height: | Size: 585 B After Width: | Height: | Size: 684 B |
|
@ -75,9 +75,6 @@ public class Assets {
|
||||||
public static final String STATUS = "interfaces/status_pane.png";
|
public static final String STATUS = "interfaces/status_pane.png";
|
||||||
public static final String MENU = "interfaces/menu_pane.png";
|
public static final String MENU = "interfaces/menu_pane.png";
|
||||||
public static final String MENU_BTN = "interfaces/menu_button.png";
|
public static final String MENU_BTN = "interfaces/menu_button.png";
|
||||||
public static final String HP_BAR = "interfaces/hp_bar.png";
|
|
||||||
public static final String SHLD_BAR = "interfaces/shield_bar.png";
|
|
||||||
public static final String XP_BAR = "interfaces/exp_bar.png";
|
|
||||||
public static final String TOOLBAR = "interfaces/toolbar.png";
|
public static final String TOOLBAR = "interfaces/toolbar.png";
|
||||||
public static final String SHADOW = "interfaces/shadow.png";
|
public static final String SHADOW = "interfaces/shadow.png";
|
||||||
public static final String BOSSHP = "interfaces/boss_hp.png";
|
public static final String BOSSHP = "interfaces/boss_hp.png";
|
||||||
|
|
|
@ -77,10 +77,12 @@ public class StatusPane extends Component {
|
||||||
private BusyIndicator busy;
|
private BusyIndicator busy;
|
||||||
private CircleArc counter;
|
private CircleArc counter;
|
||||||
|
|
||||||
|
private static String asset = Assets.Interfaces.STATUS;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void createChildren() {
|
protected void createChildren() {
|
||||||
|
|
||||||
bg = new NinePatch( Assets.Interfaces.STATUS, 0, 0, 128, 36, 85, 0, 45, 0 );
|
bg = new NinePatch( asset, 0, 0, 128, 36, 85, 0, 45, 0 );
|
||||||
add( bg );
|
add( bg );
|
||||||
|
|
||||||
add( new Button(){
|
add( new Button(){
|
||||||
|
@ -104,21 +106,21 @@ public class StatusPane extends Component {
|
||||||
compass = new Compass( Statistics.amuletObtained ? Dungeon.level.entrance : Dungeon.level.exit );
|
compass = new Compass( Statistics.amuletObtained ? Dungeon.level.entrance : Dungeon.level.exit );
|
||||||
add( compass );
|
add( compass );
|
||||||
|
|
||||||
rawShielding = new Image( Assets.Interfaces.SHLD_BAR );
|
rawShielding = new Image(asset, 0, 40, 50, 4);
|
||||||
rawShielding.alpha(0.5f);
|
rawShielding.alpha(0.5f);
|
||||||
add(rawShielding);
|
add(rawShielding);
|
||||||
|
|
||||||
shieldedHP = new Image( Assets.Interfaces.SHLD_BAR );
|
shieldedHP = new Image(asset, 0, 40, 50, 4);
|
||||||
add(shieldedHP);
|
add(shieldedHP);
|
||||||
|
|
||||||
hp = new Image( Assets.Interfaces.HP_BAR );
|
hp = new Image(asset, 0, 36, 50, 4);
|
||||||
add( hp );
|
add( hp );
|
||||||
|
|
||||||
hpText = new BitmapText(PixelScene.pixelFont);
|
hpText = new BitmapText(PixelScene.pixelFont);
|
||||||
hpText.alpha(0.6f);
|
hpText.alpha(0.6f);
|
||||||
add(hpText);
|
add(hpText);
|
||||||
|
|
||||||
exp = new Image( Assets.Interfaces.XP_BAR );
|
exp = new Image(asset, 0, 44, 16, 1);
|
||||||
add( exp );
|
add( exp );
|
||||||
|
|
||||||
level = new BitmapText( PixelScene.pixelFont);
|
level = new BitmapText( PixelScene.pixelFont);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user