v0.3.2c: tweaked inventory panels to have some transparency
This commit is contained in:
parent
2b1b99333e
commit
71c5b24842
|
@ -312,8 +312,8 @@ public class WndBag extends WndTabbed {
|
||||||
|
|
||||||
private class ItemButton extends ItemSlot {
|
private class ItemButton extends ItemSlot {
|
||||||
|
|
||||||
private static final int NORMAL = 0xFF4A4D44;
|
private static final int NORMAL = 0x9953564D;
|
||||||
private static final int EQUIPPED = 0xFF63665B;
|
private static final int EQUIPPED = 0x9991938C;
|
||||||
|
|
||||||
private Item item;
|
private Item item;
|
||||||
private ColorBlock bg;
|
private ColorBlock bg;
|
||||||
|
@ -354,11 +354,11 @@ public class WndBag extends WndTabbed {
|
||||||
|
|
||||||
bg.texture( TextureCache.createSolid( item.isEquipped( Dungeon.hero ) ? EQUIPPED : NORMAL ) );
|
bg.texture( TextureCache.createSolid( item.isEquipped( Dungeon.hero ) ? EQUIPPED : NORMAL ) );
|
||||||
if (item.cursed && item.cursedKnown) {
|
if (item.cursed && item.cursedKnown) {
|
||||||
bg.ra = +0.2f;
|
bg.ra = +0.3f;
|
||||||
bg.ga = -0.1f;
|
bg.ga = -0.15f;
|
||||||
} else if (!item.isIdentified()) {
|
} else if (!item.isIdentified()) {
|
||||||
bg.ra = 0.1f;
|
bg.ra = 0.2f;
|
||||||
bg.ba = 0.1f;
|
bg.ba = 0.2f;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.name() == null) {
|
if (item.name() == null) {
|
||||||
|
|
|
@ -263,7 +263,7 @@ public class WndRanking extends WndTabbed {
|
||||||
add(slot);
|
add(slot);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
ColorBlock bg = new ColorBlock( 28, 28, 0xFF4A4D44);
|
ColorBlock bg = new ColorBlock( 28, 28, 0x9953564D );
|
||||||
bg.x = pos;
|
bg.x = pos;
|
||||||
bg.y = 116;
|
bg.y = 116;
|
||||||
add(bg);
|
add(bg);
|
||||||
|
@ -324,7 +324,7 @@ public class WndRanking extends WndTabbed {
|
||||||
@Override
|
@Override
|
||||||
protected void createChildren() {
|
protected void createChildren() {
|
||||||
|
|
||||||
bg = new ColorBlock( HEIGHT, HEIGHT, 0xFF4A4D44 );
|
bg = new ColorBlock( HEIGHT, HEIGHT, 0x9953564D );
|
||||||
add( bg );
|
add( bg );
|
||||||
|
|
||||||
slot = new ItemSlot();
|
slot = new ItemSlot();
|
||||||
|
@ -390,7 +390,7 @@ public class WndRanking extends WndTabbed {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void createChildren() {
|
protected void createChildren() {
|
||||||
bg = new ColorBlock( HEIGHT, HEIGHT, 0xFF4A4D44 );
|
bg = new ColorBlock( HEIGHT, HEIGHT, 0x9953564D );
|
||||||
add( bg );
|
add( bg );
|
||||||
|
|
||||||
super.createChildren();
|
super.createChildren();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user