Allow for toggling the visibility of power line lasers (#1022)
* Allow for toggling the visibility of power line lasers Configurable key-bind in controls and obeys the power line opacity setting. * Last power opacity is saved after being toggled off. * Moved key-bind into the View category.
This commit is contained in:
@@ -259,7 +259,12 @@ public class SettingsMenuDialog extends SettingsDialog{
|
||||
});
|
||||
graphics.sliderPref("fpscap", 240, 15, 245, 5, s -> (s > 240 ? Core.bundle.get("setting.fpscap.none") : Core.bundle.format("setting.fpscap.text", s)));
|
||||
graphics.sliderPref("chatopacity", 100, 0, 100, 5, s -> s + "%");
|
||||
graphics.sliderPref("lasersopacity", 100, 0, 100, 5, s -> s + "%");
|
||||
graphics.sliderPref("lasersopacity", 100, 0, 100, 5, s -> {
|
||||
if(ui.settings != null){
|
||||
Core.settings.put("preferredlaseropacity", s);
|
||||
}
|
||||
return s + "%";
|
||||
});
|
||||
|
||||
if(!mobile){
|
||||
graphics.checkPref("vsync", true, b -> Core.graphics.setVSync(b));
|
||||
|
||||
Reference in New Issue
Block a user