save game settings and parse them
This commit is contained in:
@@ -370,7 +370,7 @@ public class UI {
|
||||
|
||||
// END GAME
|
||||
textY += panel.tileSize;
|
||||
graphics2d.drawString("Quit Game", textX, textY);
|
||||
graphics2d.drawString("Title Screen", textX, textY);
|
||||
if(commandNum == 4) {
|
||||
graphics2d.drawString(">", textX-25, textY);
|
||||
if(panel.keyH.spacePressed) {
|
||||
@@ -408,7 +408,9 @@ public class UI {
|
||||
// SFX VOLUME
|
||||
textY += panel.tileSize;
|
||||
graphics2d.drawRect(textX, textY, 120, panel.tileSize/2); // 120/5 = 24
|
||||
graphics2d.fillRect(textX, textY, 24 * panel.se.volumeScale, panel.tileSize/2);
|
||||
graphics2d.fillRect(textX, textY, 24 * panel.sfx.volumeScale, panel.tileSize/2);
|
||||
|
||||
panel.config.save();
|
||||
}
|
||||
public void optionsControls(int frameX, int frameY) {
|
||||
int textX;
|
||||
|
||||
Reference in New Issue
Block a user