Properties can carry a one-line description, set with NamedProperty.description for mods, a ConfigManager.property overload for the client's config, and a helper in ModLayout. PropertyList rows show it under the setting's name in muted text. Every mod, HUD layout, general, UI style and animation setting now has one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
19 lines
440 B
Java
19 lines
440 B
Java
package org.saturnclient.config.property;
|
|
|
|
public class NamedProperty {
|
|
public String name;
|
|
public Property prop;
|
|
|
|
public NamedProperty(String name, Property value) {
|
|
this.name = name;
|
|
this.prop = value;
|
|
}
|
|
|
|
/**
|
|
* Sets the line shown under the setting's name.
|
|
*/
|
|
public NamedProperty description(String description) {
|
|
this.prop.description = description;
|
|
return this;
|
|
}
|
|
} |