improved clothing color scheme docs

This commit is contained in:
Ell 2023-04-24 20:19:46 +02:00
parent 485e86342d
commit ffa44436d6

View file

@ -49,10 +49,17 @@ public class ExampleMod : Mod {
// adding custom clothing // adding custom clothing
var darkShirt = new Clothes("ExampleMod.DarkShirt", ClothesLayer.Shirt, var darkShirt = new Clothes("ExampleMod.DarkShirt", ClothesLayer.Shirt,
this.customTops, new Point(0, 0), // the top left in-world region (the rest will be auto-gathered from the atlas) // the top left in-world region
100, // the price // additional regions will be auto-gathered from the atlas according to the rules described in https://docs.tinylifegame.com/articles/creating_textures.html
ClothesIntention.Everyday | ClothesIntention.Workout, // the clothes item's use cases this.customTops, new Point(0, 0),
ColorScheme.WarmDark) {Icon = this.Icon}; // the price
100,
// the clothes item's use cases
ClothesIntention.Everyday | ClothesIntention.Workout,
// the clothes item's color scheme
// if the item should have multiple layers, multiple color schemes can be supplied here (see docs above)
ColorScheme.WarmDark
) {Icon = this.Icon};
Clothes.Register(darkShirt); Clothes.Register(darkShirt);
// adding some more custom clothing // adding some more custom clothing
Clothes.Register(new Clothes("ExampleMod.PastelPants", ClothesLayer.Pants, this.customBottoms, new Point(4, 0), 100, ClothesIntention.Everyday, ColorScheme.Pastel) {Icon = this.Icon}); Clothes.Register(new Clothes("ExampleMod.PastelPants", ClothesLayer.Pants, this.customBottoms, new Point(4, 0), 100, ClothesIntention.Everyday, ColorScheme.Pastel) {Icon = this.Icon});