package org.saturnclient.modules; import java.util.Map; import org.saturnclient.config.manager.Property; import org.saturnclient.config.manager.Property.NamedProperty; public class ModDimensions { public Property x = Property.integer(0); public Property y = Property.integer(0); public Property scale = Property.floatProp(1.0f); public Property bgColor = Property.color(0x00000000); public Property fgColor = Property.color(0xFFffffff); public Property radius = Property.integer(0); public Property font = Property.font(0); public boolean renderBackground = true; public int width = 0; public int height = 0; public NamedProperty>> prop() { return Property.namespace(Map.of( "X", x, "Y", y, "Scale", scale, "Background Color", bgColor, "Foreground Color", fgColor, "Corner Radius", radius, "Font", font)).named("In-Game Display"); } public ModDimensions() { } public ModDimensions(int width, int height) { this.width = width; this.height = height; } public ModDimensions(int x, int y, int width, int height) { this.x.value = x; this.y.value = y; this.width = width; this.height = height; } public ModDimensions(int x, int y, int width, int height, float scale) { this.x.value = x; this.y.value = y; this.scale.value = scale; this.width = width; this.height = height; } }