fixed crash issue with shader options checkbox; changed checkbox disabled texture
This commit is contained in:
parent
879921e5aa
commit
69f40f5468
@ -24,7 +24,7 @@ check-disabled
|
|||||||
rotate: false
|
rotate: false
|
||||||
xy: 192, 20
|
xy: 192, 20
|
||||||
size: 14, 14
|
size: 14, 14
|
||||||
split: 5, 5, 5, 5
|
split: 3, 3, 3, 3
|
||||||
orig: 14, 14
|
orig: 14, 14
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@ -293,7 +293,7 @@ public class RhythmBullet extends Game {
|
|||||||
getDefaultSkin().add("default", defaultScrollPane);
|
getDefaultSkin().add("default", defaultScrollPane);
|
||||||
|
|
||||||
CheckBoxStyle defaultCheckBox = new CheckBoxStyle(getDefaultSkin().getDrawable("check-off"), getDefaultSkin().getDrawable("check-on"), getDefaultSkin().getFont("window-font"), getDefaultSkin().getColor("default"));
|
CheckBoxStyle defaultCheckBox = new CheckBoxStyle(getDefaultSkin().getDrawable("check-off"), getDefaultSkin().getDrawable("check-on"), getDefaultSkin().getFont("window-font"), getDefaultSkin().getColor("default"));
|
||||||
defaultCheckBox.disabled = getDefaultSkin().getDrawable("check-disabled");
|
defaultCheckBox.checkboxOffDisabled = getDefaultSkin().getDrawable("check-disabled");
|
||||||
getDefaultSkin().add("default", defaultCheckBox);
|
getDefaultSkin().add("default", defaultCheckBox);
|
||||||
|
|
||||||
SelectBoxStyle defaultSelectBox = new SelectBoxStyle(getDefaultSkin().getFont("default-font"), getDefaultSkin().getColor("default"), getDefaultSkin().getDrawable("default-select"), defaultScrollPane, defaultList);
|
SelectBoxStyle defaultSelectBox = new SelectBoxStyle(getDefaultSkin().getFont("default-font"), getDefaultSkin().getColor("default"), getDefaultSkin().getDrawable("default-select"), defaultScrollPane, defaultList);
|
||||||
|
@ -47,9 +47,9 @@ public class GraphicsOptions extends Table {
|
|||||||
mainMenu.loadShaders();
|
mainMenu.loadShaders();
|
||||||
enhancedGlow.setDisabled(false);
|
enhancedGlow.setDisabled(false);
|
||||||
} else {
|
} else {
|
||||||
mainMenu.unloadShaders();
|
|
||||||
enhancedGlow.setChecked(false);
|
enhancedGlow.setChecked(false);
|
||||||
enhancedGlow.setDisabled(true);
|
enhancedGlow.setDisabled(true);
|
||||||
|
mainMenu.unloadShaders();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -58,6 +58,7 @@ public class GraphicsOptions extends Table {
|
|||||||
|
|
||||||
enhancedGlow = new CheckBox(" Enhanced Glow", skin);
|
enhancedGlow = new CheckBox(" Enhanced Glow", skin);
|
||||||
enhancedGlow.setChecked(prefs.getBoolean("enhanced glow", false));
|
enhancedGlow.setChecked(prefs.getBoolean("enhanced glow", false));
|
||||||
|
enhancedGlow.setDisabled(!prefs.getBoolean("glow shader", false));
|
||||||
enhancedGlow.addListener(new ChangeListener() {
|
enhancedGlow.addListener(new ChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void changed(ChangeEvent event, Actor actor) {
|
public void changed(ChangeEvent event, Actor actor) {
|
||||||
|
@ -91,7 +91,7 @@ public class MainPage extends Page implements OnDifferentSongListener {
|
|||||||
scrollText.setPosition(((getWidth() - scrollText.getWidth())/2f), getHeight() - scrollText.getFontHeight()*1.5f);
|
scrollText.setPosition(((getWidth() - scrollText.getWidth())/2f), getHeight() - scrollText.getFontHeight()*1.5f);
|
||||||
if (scrollText.getX() + scrollText.getWidth() > musicControls.getX()) {
|
if (scrollText.getX() + scrollText.getWidth() > musicControls.getX()) {
|
||||||
Gdx.app.debug("MainPage", "using minimal layout for scrolling text.");
|
Gdx.app.debug("MainPage", "using minimal layout for scrolling text.");
|
||||||
musicControls.setX(getWidth() - musicControls.getMinWidth() - 5f);
|
musicControls.setX(getWidth() - musicControls.getMinWidth() - 10f);
|
||||||
scrollText.setPosition(15, getHeight() - scrollText.getHeight() - 15f);
|
scrollText.setPosition(15, getHeight() - scrollText.getHeight() - 15f);
|
||||||
musicControls.setY(scrollText.getY() + 22f);
|
musicControls.setY(scrollText.getY() + 22f);
|
||||||
musicControls.invalidate();
|
musicControls.invalidate();
|
||||||
|
Loading…
Reference in New Issue
Block a user