v0.2.4d: tweaked the ability to disable parameters on the item slot, edited quickslots to take advantage of this.

This commit is contained in:
Evan Debenham 2015-03-14 19:35:49 -04:00
parent 2711b225dd
commit fc77aa9afa
3 changed files with 13 additions and 11 deletions

View File

@ -194,14 +194,15 @@ public class ItemSlot extends Button {
topRight.alpha( alpha );
bottomRight.alpha( alpha );
}
public void showParams( boolean value ) {
if (value) {
add( topRight );
add( bottomRight );
} else {
remove( topRight );
remove( bottomRight );
}
}
public void showParams( boolean TL, boolean TR, boolean BR ) {
if (TL) add( topLeft );
else remove( topLeft );
if (TR) add( topRight );
else remove( topRight );
if (BR) add( bottomRight );
else remove( bottomRight );
}
}

View File

@ -45,7 +45,7 @@ public class LootIndicator extends Tag {
Dungeon.hero.handle( Dungeon.hero.pos );
};
};
slot.showParams( false );
slot.showParams( true, false, false );
add( slot );
}

View File

@ -95,6 +95,7 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
icon.resetColor();
}
};
slot.showParams( true, false, true );
add( slot );
crossB = Icons.TARGET.get();