v0.3.4a: aligned a couple more UI elements.
This commit is contained in:
@@ -143,6 +143,7 @@ public abstract class OptionSlider extends Component {
|
|||||||
protected void layout() {
|
protected void layout() {
|
||||||
title.x = x + (width-title.width())/2;
|
title.x = x + (width-title.width())/2;
|
||||||
title.y = y+2;
|
title.y = y+2;
|
||||||
|
PixelScene.align(title);
|
||||||
sliderBG.y = y + height() - 8;
|
sliderBG.y = y + height() - 8;
|
||||||
sliderBG.x = x+2;
|
sliderBG.x = x+2;
|
||||||
sliderBG.size(width-5, 1);
|
sliderBG.size(width-5, 1);
|
||||||
|
|||||||
@@ -163,6 +163,7 @@ public class WndSettings extends WndTabbed {
|
|||||||
|
|
||||||
RenderedText barDesc = PixelScene.renderText(Messages.get(this, "mode"), 9);
|
RenderedText barDesc = PixelScene.renderText(Messages.get(this, "mode"), 9);
|
||||||
barDesc.x = (WIDTH-barDesc.width())/2;
|
barDesc.x = (WIDTH-barDesc.width())/2;
|
||||||
|
PixelScene.align(barDesc);
|
||||||
add(barDesc);
|
add(barDesc);
|
||||||
|
|
||||||
RedButton btnSplit = new RedButton(Messages.get(this, "split")){
|
RedButton btnSplit = new RedButton(Messages.get(this, "split")){
|
||||||
|
|||||||
Reference in New Issue
Block a user