v0.8.1: adjusted icon shading and added icons to settings menu

This commit is contained in:
Evan Debenham 2020-06-15 16:24:40 -04:00
parent 2b9e3a9cf4
commit 5049a9784f
4 changed files with 15 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -39,6 +39,9 @@ public enum Icons {
EXIT,
CLOSE,
ARROW,
DISPLAY,
//TODO UI,
AUDIO,
//ingame UI icons
SKULL,
@ -118,6 +121,13 @@ public enum Icons {
case ARROW:
icon.frame( icon.texture.uvRect( 16, 16, 27, 27 ) );
break;
case DISPLAY:
icon.frame( icon.texture.uvRect( 32, 16, 45, 32 ) );
break;
//TODO UI icon?
case AUDIO:
icon.frame( icon.texture.uvRect( 64, 16, 77, 28 ) );
break;
case SKULL:
icon.frame( icon.texture.uvRect( 0, 32, 8, 40 ) );

View File

@ -28,6 +28,7 @@ import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
import com.shatteredpixel.shatteredpixeldungeon.scenes.PixelScene;
import com.shatteredpixel.shatteredpixeldungeon.ui.CheckBox;
import com.shatteredpixel.shatteredpixeldungeon.ui.Icons;
import com.shatteredpixel.shatteredpixeldungeon.ui.OptionSlider;
import com.shatteredpixel.shatteredpixeldungeon.ui.RedButton;
import com.shatteredpixel.shatteredpixeldungeon.ui.RenderedTextBlock;
@ -67,7 +68,7 @@ public class WndSettings extends WndTabbed {
audio = new AudioTab();
add( audio );
add( new LabeledTab(Messages.get(this, "display")){
add( new IconTab(Icons.get(Icons.DISPLAY)){
@Override
protected void select(boolean value) {
super.select(value);
@ -76,7 +77,7 @@ public class WndSettings extends WndTabbed {
}
});
add( new LabeledTab(Messages.get(this, "ui")){
add( new IconTab(Icons.get(Icons.PREFS)){
@Override
protected void select(boolean value) {
super.select(value);
@ -85,7 +86,7 @@ public class WndSettings extends WndTabbed {
}
});
add( new LabeledTab(Messages.get(this, "audio")){
add( new IconTab(Icons.get(Icons.AUDIO)){
@Override
protected void select(boolean value) {
super.select(value);

View File

@ -268,6 +268,7 @@ public class WndTabbed extends Window {
icon.y = y + CUT;
}
}
PixelScene.align(icon);
}
@Override