Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
xzxADIxzx committed Oct 3, 2021
1 parent 0e07d5b commit 22f3c8e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
12 changes: 0 additions & 12 deletions src/game/SchemeSize.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,8 @@ public SchemeSize(){
hudfrag.build(ui.hudGroup);

// add secret
// var mod = settings.mod;
// mod.getCells().get(8).visible(false); // hide secret
settings.mod.getCells().get(8).visible(false); // hide secret

// add zoom scale
// Stack elementMax = (Stack)mod.getCells().get(0).get();
// Stack elementMin = (Stack)mod.getCells().get(1).get();
// Slider sliderMax = (Slider)elementMax.getChildren().get(0);
// Slider sliderMin = (Slider)elementMin.getChildren().get(0);
// sliderMax.changed(() -> { renderer.maxZoom = sliderMax.getValue() / 4f * 6f; });
// sliderMin.changed(() -> { renderer.minZoom = 1 / (sliderMin.getValue() / 4f) * 1.5f; });
// renderer.maxZoom = sliderMax.getValue() / 4f * 6f; // apply zoom
// renderer.minZoom = 1f / (sliderMin.getValue() / 4f) * 1.5f;

// mobiles haven`t keybinds
if(mobile) return;

Expand Down
11 changes: 0 additions & 11 deletions src/ui/dialogs/ModSettingsMenuDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,6 @@ void addSettings(){
mod.consSliderSetting("minzoommul", 4, 4, 20, 1, i -> i / 4f + "x", value -> {
renderer.minZoom = 1f / (value.get() / 4f) * 1.5f;
});
// mod.sliderPref("minzoommul", 4, 4, 20, 1, i -> i / 4f + "x");
// mod.sliderPref("maxzoommul", 4, 4, 20, 1, i -> i / 4f + "x");
mod.sliderPref("copysize", 512, 32, 512, 32, i -> Core.bundle.format("setting.blocks", i));
mod.sliderPref("breaksize", 512, 32, 512, 32, i -> Core.bundle.format("setting.blocks", i));
mod.checkPref("copyshow", true);
Expand Down Expand Up @@ -330,15 +328,6 @@ void addSettings(){
Core.settings.put("keyboard", false);
}
}
//the issue with touchscreen support on desktop is that:
//1) I can't test it
//2) the SDL backend doesn't support multitouch
/*else{
game.checkPref("touchscreen", false, val -> control.setInput(!val ? new DesktopInput() : new MobileInput()));
if(Core.settings.getBool("touchscreen")){
control.setInput(new MobileInput());
}
}*/

if(!mobile){
game.checkPref("crashreport", true);
Expand Down

0 comments on commit 22f3c8e

Please sign in to comment.