diff --git a/Content/ExampleMod/CustomFurniture.atlas b/Content/ExampleMod/CustomFurniture.atlas index 34fae15..fa46960 100644 --- a/Content/ExampleMod/CustomFurniture.atlas +++ b/Content/ExampleMod/CustomFurniture.atlas @@ -1,3 +1,3 @@ -CustomTableUp +ExampleMod.CustomTableUp loc 0 0 32 32 piv 16 16 \ No newline at end of file diff --git a/Content/ExampleMod/Localization/En.json b/Content/ExampleMod/Localization/En.json new file mode 100644 index 0000000..6cd5cb9 --- /dev/null +++ b/Content/ExampleMod/Localization/En.json @@ -0,0 +1,5 @@ +{ + "BuildMode": { + "ExampleMod.CustomTable": "Custom Table" + } +} \ No newline at end of file diff --git a/ExampleMod.cs b/ExampleMod.cs index 35caf27..533cbbd 100644 --- a/ExampleMod.cs +++ b/ExampleMod.cs @@ -24,7 +24,7 @@ namespace ExampleMod { public override void AddGameContent(GameImpl game) { // adding a custom furniture item - FurnitureType.Register(new FurnitureType.TypeSettings("CustomTable", new Point(1, 1), ObjectCategory.Table, 150, ColorScheme.SimpleWood) { + FurnitureType.Register(new FurnitureType.TypeSettings("ExampleMod.CustomTable", new Point(1, 1), ObjectCategory.Table, 150, ColorScheme.SimpleWood) { Construct = (i, t, c, m, p) => new CustomTable(i, t, c, m, p) }); } diff --git a/Run.sh b/Run.sh index 8ab28e3..7606eb6 100644 --- a/Run.sh +++ b/Run.sh @@ -8,5 +8,5 @@ dotnet build cp ./bin/Debug/netcoreapp3.0/* "$LOCALAPPDATA/Tiny Life/Mods" -r # run the game -cd $GAME_DIR +cd "$GAME_DIR" "./Tiny Life.exe" \ No newline at end of file