mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-09-28 17:11:05 +02:00
Compare commits
No commits in common. "main" and "0.40.0" have entirely different histories.
2 changed files with 12 additions and 10 deletions
|
@ -34,7 +34,7 @@ public class ExampleMod : Mod {
|
||||||
public override string Description => "This is the example mod for Tiny Life!";
|
public override string Description => "This is the example mod for Tiny Life!";
|
||||||
public override TextureRegion Icon => this.uiTextures[new Point(0, 0)];
|
public override TextureRegion Icon => this.uiTextures[new Point(0, 0)];
|
||||||
public override string IssueTrackerUrl => "https://github.com/Ellpeck/TinyLifeExampleMod/issues";
|
public override string IssueTrackerUrl => "https://github.com/Ellpeck/TinyLifeExampleMod/issues";
|
||||||
public override string TestedVersionRange => "[0.43.0,0.43.11]";
|
public override string TestedVersionRange => "[0.40.0]";
|
||||||
|
|
||||||
private Dictionary<Point, TextureRegion> customTops;
|
private Dictionary<Point, TextureRegion> customTops;
|
||||||
private Dictionary<Point, TextureRegion> customHairs;
|
private Dictionary<Point, TextureRegion> customHairs;
|
||||||
|
@ -152,9 +152,11 @@ public class ExampleMod : Mod {
|
||||||
group.AddChild(new Paragraph(Anchor.AutoLeft, 1, _ => $"{Localization.Get(LnCategory.Ui, "ExampleMod.DarkShirtSpeedOption")}: {ExampleMod.Options.DarkShirtSpeedIncrease}"));
|
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, 10), 5, 5) {
|
group.AddChild(new Slider(Anchor.AutoLeft, new Vector2(1, 10), 5, 5) {
|
||||||
CurrentValue = ExampleMod.Options.DarkShirtSpeedIncrease,
|
CurrentValue = ExampleMod.Options.DarkShirtSpeedIncrease,
|
||||||
OnValueChanged = (_, v) => ExampleMod.Options.DarkShirtSpeedIncrease = v
|
OnValueChanged = (_, v) => {
|
||||||
|
ExampleMod.Options.DarkShirtSpeedIncrease = v;
|
||||||
|
info.SaveOptions(ExampleMod.Options);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
group.OnRemovedFromUi += _ => info.SaveOptions(ExampleMod.Options);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,16 +5,16 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="TinyLife.ApiReference" Version="0.43.11" />
|
<PackageReference Include="TinyLifeApi" Version="0.40.0" />
|
||||||
|
|
||||||
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.2.1105" />
|
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.1.303" />
|
||||||
<PackageReference Include="Lib.Harmony" Version="2.3.3" />
|
<PackageReference Include="Lib.Harmony" Version="2.2.2" />
|
||||||
<PackageReference Include="ExtremelySimpleLogger" Version="1.4.1" />
|
<PackageReference Include="ExtremelySimpleLogger" Version="1.4.1" />
|
||||||
<PackageReference Include="MLEM.Data" Version="7.1.1" />
|
<PackageReference Include="MLEM.Data" Version="6.1.0" />
|
||||||
<PackageReference Include="MLEM.Extended" Version="7.1.1" />
|
<PackageReference Include="MLEM.Extended" Version="6.1.0" />
|
||||||
<PackageReference Include="MLEM.Startup" Version="7.1.1" />
|
<PackageReference Include="MLEM.Startup" Version="6.1.0" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||||
<PackageReference Include="DynamicEnums" Version="2.0.0" />
|
<PackageReference Include="DynamicEnums" Version="1.2.0" />
|
||||||
<PackageReference Include="Coroutine" Version="2.1.5" />
|
<PackageReference Include="Coroutine" Version="2.1.5" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue