v0.2.3e: improved/corrected multi-quickslot display in rankings page.
This commit is contained in:
parent
2b44154ac1
commit
2cd9d59c7b
|
@ -51,7 +51,7 @@ public class WndRanking extends WndTabbed {
|
|||
private static final String TXT_ITEMS = "Items";
|
||||
private static final String TXT_BADGES = "Badges";
|
||||
|
||||
private static final int WIDTH = 112;
|
||||
private static final int WIDTH = 115;
|
||||
private static final int HEIGHT = 144;
|
||||
|
||||
private static final int TAB_WIDTH = 40;
|
||||
|
@ -247,13 +247,15 @@ public class WndRanking extends WndTabbed {
|
|||
addItem( stuff.misc2);
|
||||
}
|
||||
|
||||
pos = 0;
|
||||
pos = 29;
|
||||
for (int i = 0; i < 2; i++){
|
||||
if (Dungeon.quickslot.getItem(i) != null){
|
||||
QuickSlotButton slot = new QuickSlotButton(Dungeon.quickslot.getItem(i));
|
||||
|
||||
slot.setPos( pos, 116 );
|
||||
|
||||
add(slot);
|
||||
|
||||
} else {
|
||||
ColorBlock bg = new ColorBlock( 28, 28, 0xFF4A4D44);
|
||||
bg.x = pos;
|
||||
|
@ -262,9 +264,6 @@ public class WndRanking extends WndTabbed {
|
|||
}
|
||||
pos += 29;
|
||||
}
|
||||
if (Dungeon.quickslot.getItem(0) != null){
|
||||
addItem( Dungeon.quickslot.getItem(0) );
|
||||
}
|
||||
}
|
||||
|
||||
private void addItem( Item item ) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user