Allow configuration of minimum and maximum camera distance in main game screen (#7603)
* Variable min and max zoom * Variable min and max zoom * Variable min and max zoom --------- Co-authored-by: ivan <ikamyshan@evolution.com> Co-authored-by: Anuken <arnukren@gmail.com>
This commit is contained in:
@@ -397,8 +397,23 @@ public class SettingsMenuDialog extends BaseDialog{
|
||||
}
|
||||
return s + "%";
|
||||
});
|
||||
|
||||
graphics.sliderPref("unitlaseropacity", 100, 0, 100, 5, s -> s + "%");
|
||||
graphics.sliderPref("bridgeopacity", 100, 0, 100, 5, s -> s + "%");
|
||||
|
||||
graphics.sliderPref("maxmagnificationmultiplierpercent", 100, 100, 200, 25, s -> {
|
||||
if(ui.settings != null){
|
||||
Core.settings.put("maxzoomingamemultiplier", (float)s / 100.0f);
|
||||
}
|
||||
return s + "%";
|
||||
});
|
||||
|
||||
graphics.sliderPref("minmagnificationmultiplierpercent", 100, 100, 300, 25, s -> {
|
||||
if(ui.settings != null){
|
||||
Core.settings.put("minzoomingamemultiplier", (float)s / 100.0f);
|
||||
}
|
||||
return s + "%";
|
||||
});
|
||||
|
||||
if(!mobile){
|
||||
graphics.checkPref("vsync", true, b -> Core.graphics.setVSync(b));
|
||||
|
||||
Reference in New Issue
Block a user