public Setting constructor

This commit is contained in:
Anuken
2021-08-22 09:40:55 -04:00
parent 55270996ff
commit c605418e33

View File

@@ -605,7 +605,7 @@ public class SettingsMenuDialog extends Dialog{
rebuild();
}
void rebuild(){
public void rebuild(){
clearChildren();
for(Setting setting : list){
@@ -626,7 +626,7 @@ public class SettingsMenuDialog extends Dialog{
public String title;
public @Nullable String description;
Setting(String name){
public Setting(String name){
this.name = name;
String winkey = "setting." + name + ".name.windows";
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;
Boolc changed;
CheckSetting(String name, boolean def, Boolc changed){
public CheckSetting(String name, boolean def, Boolc changed){
super(name);
this.def = def;
this.changed = changed;
@@ -687,7 +687,7 @@ public class SettingsMenuDialog extends Dialog{
int def, min, max, step;
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);
this.def = def;
this.min = min;