v0.3.2c: tweaked inventory panels to have some transparency

This commit is contained in:
Evan Debenham 2015-11-23 17:47:54 -05:00
parent 2b1b99333e
commit 71c5b24842
2 changed files with 9 additions and 9 deletions

View File

@ -312,8 +312,8 @@ public class WndBag extends WndTabbed {
private class ItemButton extends ItemSlot {
private static final int NORMAL = 0xFF4A4D44;
private static final int EQUIPPED = 0xFF63665B;
private static final int NORMAL = 0x9953564D;
private static final int EQUIPPED = 0x9991938C;
private Item item;
private ColorBlock bg;
@ -354,11 +354,11 @@ public class WndBag extends WndTabbed {
bg.texture( TextureCache.createSolid( item.isEquipped( Dungeon.hero ) ? EQUIPPED : NORMAL ) );
if (item.cursed && item.cursedKnown) {
bg.ra = +0.2f;
bg.ga = -0.1f;
bg.ra = +0.3f;
bg.ga = -0.15f;
} else if (!item.isIdentified()) {
bg.ra = 0.1f;
bg.ba = 0.1f;
bg.ra = 0.2f;
bg.ba = 0.2f;
}
if (item.name() == null) {

View File

@ -263,7 +263,7 @@ public class WndRanking extends WndTabbed {
add(slot);
} else {
ColorBlock bg = new ColorBlock( 28, 28, 0xFF4A4D44);
ColorBlock bg = new ColorBlock( 28, 28, 0x9953564D );
bg.x = pos;
bg.y = 116;
add(bg);
@ -324,7 +324,7 @@ public class WndRanking extends WndTabbed {
@Override
protected void createChildren() {
bg = new ColorBlock( HEIGHT, HEIGHT, 0xFF4A4D44 );
bg = new ColorBlock( HEIGHT, HEIGHT, 0x9953564D );
add( bg );
slot = new ItemSlot();
@ -390,7 +390,7 @@ public class WndRanking extends WndTabbed {
@Override
protected void createChildren() {
bg = new ColorBlock( HEIGHT, HEIGHT, 0xFF4A4D44 );
bg = new ColorBlock( HEIGHT, HEIGHT, 0x9953564D );
add( bg );
super.createChildren();