mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-09-27 16:41:05 +02:00
Compare commits
22 commits
Author | SHA1 | Date | |
---|---|---|---|
c9977fd7e3 | |||
52a625f38b | |||
be5ca71661 | |||
4e8e306195 | |||
bf63a03e46 | |||
38d2ab6719 | |||
e6c5beea29 | |||
b26e7a6c5f | |||
bd7f3e51d2 | |||
9d9b6a381d | |||
6345a8c422 | |||
28b8aadc7f | |||
c0cc18b0a0 | |||
3da4807b57 | |||
eb19f848e0 | |||
0922ecefc5 | |||
977ad2d401 | |||
c963a9781c | |||
339411aed6 | |||
ef04313a7a | |||
17e0f6dbfb | |||
728553e329 |
2 changed files with 10 additions and 12 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.40.0]";
|
public override string TestedVersionRange => "[0.43.0,0.43.11]";
|
||||||
|
|
||||||
private Dictionary<Point, TextureRegion> customTops;
|
private Dictionary<Point, TextureRegion> customTops;
|
||||||
private Dictionary<Point, TextureRegion> customHairs;
|
private Dictionary<Point, TextureRegion> customHairs;
|
||||||
|
@ -152,11 +152,9 @@ 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) => {
|
OnValueChanged = (_, v) => ExampleMod.Options.DarkShirtSpeedIncrease = 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="TinyLifeApi" Version="0.40.0" />
|
<PackageReference Include="TinyLife.ApiReference" Version="0.43.11" />
|
||||||
|
|
||||||
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.1.303" />
|
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.2.1105" />
|
||||||
<PackageReference Include="Lib.Harmony" Version="2.2.2" />
|
<PackageReference Include="Lib.Harmony" Version="2.3.3" />
|
||||||
<PackageReference Include="ExtremelySimpleLogger" Version="1.4.1" />
|
<PackageReference Include="ExtremelySimpleLogger" Version="1.4.1" />
|
||||||
<PackageReference Include="MLEM.Data" Version="6.1.0" />
|
<PackageReference Include="MLEM.Data" Version="7.1.1" />
|
||||||
<PackageReference Include="MLEM.Extended" Version="6.1.0" />
|
<PackageReference Include="MLEM.Extended" Version="7.1.1" />
|
||||||
<PackageReference Include="MLEM.Startup" Version="6.1.0" />
|
<PackageReference Include="MLEM.Startup" Version="7.1.1" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||||
<PackageReference Include="DynamicEnums" Version="1.2.0" />
|
<PackageReference Include="DynamicEnums" Version="2.0.0" />
|
||||||
<PackageReference Include="Coroutine" Version="2.1.5" />
|
<PackageReference Include="Coroutine" Version="2.1.5" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue