mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-12-22 23:39:23 +01:00
improved mod options
This commit is contained in:
parent
4865bd81a7
commit
f0f4f17bb7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue