mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-11-22 03:53:29 +01:00
added the ability for modded localization
This commit is contained in:
parent
684071697f
commit
3ecf8efd60
4 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,3 @@
|
|||
CustomTableUp
|
||||
ExampleMod.CustomTableUp
|
||||
loc 0 0 32 32
|
||||
piv 16 16
|
5
Content/ExampleMod/Localization/En.json
Normal file
5
Content/ExampleMod/Localization/En.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"BuildMode": {
|
||||
"ExampleMod.CustomTable": "Custom Table"
|
||||
}
|
||||
}
|
|
@ -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)
|
||||
});
|
||||
}
|
||||
|
|
2
Run.sh
2
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"
|
Loading…
Reference in a new issue