From f0f4f17bb7650fc5edc30f99ed1b7bc233fbc8e6 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 23 Dec 2022 23:40:21 +0100 Subject: [PATCH] improved mod options --- ExampleMod.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExampleMod.cs b/ExampleMod.cs index ff539d6..75a1074 100644 --- a/ExampleMod.cs +++ b/ExampleMod.cs @@ -127,7 +127,7 @@ public class ExampleMod : Mod { // in general, options should be stored in the ModInfo.OptionsFile file that is given to the mod by the game public override void PopulateOptions(Group group, ModInfo info) { group.AddChild(new Paragraph(Anchor.AutoLeft, 1, _ => $"{Localization.Get(LnCategory.Ui, "ExampleMod.DarkShirtSpeedOption")}: {ExampleMod.Options.DarkShirtSpeedIncrease}")); - group.AddChild(new Slider(Anchor.AutoLeft, new Vector2(1, 12), 5, 5) { + group.AddChild(new Slider(Anchor.AutoLeft, new Vector2(1, 10), 5, 5) { CurrentValue = ExampleMod.Options.DarkShirtSpeedIncrease, OnValueChanged = (_, v) => { ExampleMod.Options.DarkShirtSpeedIncrease = v;