v1.1.0: tabs in WndRanking and WndHero now use icons, not text
This commit is contained in:
parent
8a86dc776a
commit
ad0242fb3d
Binary file not shown.
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
@ -44,6 +44,8 @@ public enum Icons {
|
|||
AUDIO,
|
||||
TALENT,
|
||||
MAGNIFY,
|
||||
BUFFS,
|
||||
BACKPACK_LRG,
|
||||
|
||||
//ingame UI icons
|
||||
SKULL,
|
||||
|
@ -142,6 +144,13 @@ public enum Icons {
|
|||
case MAGNIFY:
|
||||
icon.frame( icon.texture.uvRect( 96, 16, 110, 30 ) );
|
||||
break;
|
||||
case BUFFS:
|
||||
icon.frame( icon.texture.uvRect( 110, 16, 128, 31 ) );
|
||||
break;
|
||||
case BACKPACK_LRG:
|
||||
icon.frame( icon.texture.uvRect( 64, 80, 80, 96 ) );
|
||||
break;
|
||||
|
||||
case SKULL:
|
||||
icon.frame( icon.texture.uvRect( 0, 32, 8, 40 ) );
|
||||
break;
|
||||
|
|
|
@ -79,14 +79,14 @@ public class WndHero extends WndTabbed {
|
|||
buffs.setRect(0, 0, WIDTH, HEIGHT);
|
||||
buffs.setupList();
|
||||
|
||||
add( new LabeledTab( Messages.get(this, "stats") ) {
|
||||
add( new IconTab( Icons.get(Icons.RANKINGS) ) {
|
||||
protected void select( boolean value ) {
|
||||
super.select( value );
|
||||
if (selected) lastIdx = 0;
|
||||
stats.visible = stats.active = selected;
|
||||
}
|
||||
} );
|
||||
add( new LabeledTab( Messages.get(this, "talents") ) {
|
||||
add( new IconTab( Icons.get(Icons.TALENT) ) {
|
||||
protected void select( boolean value ) {
|
||||
super.select( value );
|
||||
if (selected) lastIdx = 1;
|
||||
|
@ -94,7 +94,7 @@ public class WndHero extends WndTabbed {
|
|||
talents.visible = talents.active = selected;
|
||||
}
|
||||
} );
|
||||
add( new LabeledTab( Messages.get(this, "buffs") ) {
|
||||
add( new IconTab( Icons.get(Icons.BUFFS) ) {
|
||||
protected void select( boolean value ) {
|
||||
super.select( value );
|
||||
if (selected) lastIdx = 2;
|
||||
|
|
|
@ -120,8 +120,8 @@ public class WndRanking extends WndTabbed {
|
|||
|
||||
private void createControls() {
|
||||
|
||||
String[] labels =
|
||||
{Messages.get(this, "stats"), Messages.get(this, "items"), Messages.get(this, "badges")};
|
||||
Icons[] icons =
|
||||
{Icons.RANKINGS, Icons.BACKPACK_LRG, Icons.BADGES};
|
||||
Group[] pages =
|
||||
{new StatsTab(), new ItemsTab(), new BadgesTab()};
|
||||
|
||||
|
@ -129,7 +129,7 @@ public class WndRanking extends WndTabbed {
|
|||
|
||||
add( pages[i] );
|
||||
|
||||
Tab tab = new RankingTab( labels[i], pages[i] );
|
||||
Tab tab = new RankingTab( icons[i], pages[i] );
|
||||
add( tab );
|
||||
}
|
||||
|
||||
|
@ -138,12 +138,12 @@ public class WndRanking extends WndTabbed {
|
|||
select( 0 );
|
||||
}
|
||||
|
||||
private class RankingTab extends LabeledTab {
|
||||
private class RankingTab extends IconTab {
|
||||
|
||||
private Group page;
|
||||
|
||||
public RankingTab( String label, Group page ) {
|
||||
super( label );
|
||||
public RankingTab( Icons icon, Group page ) {
|
||||
super( Icons.get(icon) );
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user