cleaned up code slightly
This commit is contained in:
		@@ -46,10 +46,9 @@ public class OptionsPage extends Page {
 | 
				
			|||||||
		backButton.setWidth(backButton.getWidth() + 20);
 | 
							backButton.setWidth(backButton.getWidth() + 20);
 | 
				
			||||||
		addSpaceToTitle(backButton.getWidth() + backButton.getX() + 20);
 | 
							addSpaceToTitle(backButton.getWidth() + backButton.getX() + 20);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		optionsTable.align(Align.center);
 | 
					 | 
				
			||||||
		optionsTable.defaults().space(10f).padBottom(25f).expandY();
 | 
					 | 
				
			||||||
		optionsTable.setPosition(0, 0);
 | 
					 | 
				
			||||||
		optionsTable.setSize(getWidth(), getHeightBelowTitle() - 5);
 | 
							optionsTable.setSize(getWidth(), getHeightBelowTitle() - 5);
 | 
				
			||||||
 | 
							optionsTable.align(Align.center);
 | 
				
			||||||
 | 
							optionsTable.defaults().space(10f).expandY();
 | 
				
			||||||
		addActor(optionsTable);
 | 
							addActor(optionsTable);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		Label musicVolSliderLabel = new Label("Music Volume: ", core.getDefaultSkin());
 | 
							Label musicVolSliderLabel = new Label("Music Volume: ", core.getDefaultSkin());
 | 
				
			||||||
@@ -67,7 +66,7 @@ public class OptionsPage extends Page {
 | 
				
			|||||||
				core.getPrefs().putFloat("music vol", musicVolSlider.getPercent());
 | 
									core.getPrefs().putFloat("music vol", musicVolSlider.getPercent());
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
		optionsTable.add(musicVolPercentage).left();
 | 
							optionsTable.add(musicVolPercentage);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		optionsTable.row();
 | 
							optionsTable.row();
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
@@ -85,7 +84,7 @@ public class OptionsPage extends Page {
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		optionsTable.add(fxVolPercentage).left();
 | 
							optionsTable.add(fxVolPercentage);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		optionsTable.row();
 | 
							optionsTable.row();
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
@@ -115,7 +114,7 @@ public class OptionsPage extends Page {
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
		optionsTable.add(directoryField).fillX();
 | 
							optionsTable.add(directoryField).fillX();
 | 
				
			||||||
		optionsTable.add(songCount).left();
 | 
							optionsTable.add(songCount);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		optionsTable.row();
 | 
							optionsTable.row();
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user