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:
@@ -194,14 +194,15 @@ public class ItemSlot extends Button {
|
|||||||
topRight.alpha( alpha );
|
topRight.alpha( alpha );
|
||||||
bottomRight.alpha( alpha );
|
bottomRight.alpha( alpha );
|
||||||
}
|
}
|
||||||
|
|
||||||
public void showParams( boolean value ) {
|
public void showParams( boolean TL, boolean TR, boolean BR ) {
|
||||||
if (value) {
|
if (TL) add( topLeft );
|
||||||
add( topRight );
|
else remove( topLeft );
|
||||||
add( bottomRight );
|
|
||||||
} else {
|
if (TR) add( topRight );
|
||||||
remove( topRight );
|
else remove( topRight );
|
||||||
remove( bottomRight );
|
|
||||||
}
|
if (BR) add( bottomRight );
|
||||||
}
|
else remove( bottomRight );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public class LootIndicator extends Tag {
|
|||||||
Dungeon.hero.handle( Dungeon.hero.pos );
|
Dungeon.hero.handle( Dungeon.hero.pos );
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
slot.showParams( false );
|
slot.showParams( true, false, false );
|
||||||
add( slot );
|
add( slot );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
|
|||||||
icon.resetColor();
|
icon.resetColor();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
slot.showParams( true, false, true );
|
||||||
add( slot );
|
add( slot );
|
||||||
|
|
||||||
crossB = Icons.TARGET.get();
|
crossB = Icons.TARGET.get();
|
||||||
|
|||||||
Reference in New Issue
Block a user