public Setting constructor

This commit is contained in:
Anuken
2021-08-22 09:40:55 -04:00
parent 55270996ff
commit c605418e33
@@ -605,7 +605,7 @@ public class SettingsMenuDialog extends Dialog{
rebuild(); rebuild();
} }
void rebuild(){ public void rebuild(){
clearChildren(); clearChildren();
for(Setting setting : list){ for(Setting setting : list){
@@ -626,7 +626,7 @@ public class SettingsMenuDialog extends Dialog{
public String title; public String title;
public @Nullable String description; public @Nullable String description;
Setting(String name){ public Setting(String name){
this.name = name; this.name = name;
String winkey = "setting." + name + ".name.windows"; String winkey = "setting." + name + ".name.windows";
title = OS.isWindows && bundle.has(winkey) ? bundle.get(winkey) : bundle.get("setting." + name + ".name"); title = OS.isWindows && bundle.has(winkey) ? bundle.get(winkey) : bundle.get("setting." + name + ".name");
@@ -658,7 +658,7 @@ public class SettingsMenuDialog extends Dialog{
boolean def; boolean def;
Boolc changed; Boolc changed;
CheckSetting(String name, boolean def, Boolc changed){ public CheckSetting(String name, boolean def, Boolc changed){
super(name); super(name);
this.def = def; this.def = def;
this.changed = changed; this.changed = changed;
@@ -687,7 +687,7 @@ public class SettingsMenuDialog extends Dialog{
int def, min, max, step; int def, min, max, step;
StringProcessor sp; StringProcessor sp;
SliderSetting(String name, int def, int min, int max, int step, StringProcessor s){ public SliderSetting(String name, int def, int min, int max, int step, StringProcessor s){
super(name); super(name);
this.def = def; this.def = def;
this.min = min; this.min = min;