From 2e332b02245fa6ad9d7dab4171f6a68bd9f43dff Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 24 May 2022 13:35:56 +0200 Subject: [PATCH] 0.21.0 --- ExampleMod.cs | 6 +++--- ExampleMod.csproj | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ExampleMod.cs b/ExampleMod.cs index c2ea4c3..d91db9e 100644 --- a/ExampleMod.cs +++ b/ExampleMod.cs @@ -74,10 +74,10 @@ public class ExampleMod : Mod { // we set this action to be executable only on grass tiles, not on other ground CanExecute = (actionInfo, automatic) => { if (!actionInfo.Map.IsInBounds(actionInfo.ActionLocation.ToPoint())) - return ActionType.CanExecuteResult.Hidden; + return CanExecuteResult.Hidden; var tile = actionInfo.Map.GetTile(actionInfo.ActionLocation.ToPoint()); // hidden means the action won't be displayed in the ring menu, Valid means the player (or AI) is able to enqueue and execute it - return tile.Name.StartsWith("Grass") ? ActionType.CanExecuteResult.Valid : ActionType.CanExecuteResult.Hidden; + return tile.Name.StartsWith("Grass") ? CanExecuteResult.Valid : CanExecuteResult.Hidden; }, Ai = { // we allow the action to be done even if the solved needs aren't low enough on a person @@ -109,7 +109,7 @@ public class ExampleMod : Mod { texturePacker.Add(content.Load("CustomBottomsShoes"), r => this.customBottoms = new UniformTextureAtlas(r, 8, 6)); texturePacker.Add(content.Load("UiTextures"), r => this.uiTextures = new UniformTextureAtlas(r, 8, 8)); // wallpaper textures require special treatment to work with openings, the x and y values are passed to the UniformTextureAtlas constructor - TextureHandler.ApplyWallpaperMasks(content.Load("Wallpapers"), 4, 5, r => this.wallpaperTextures = r); + WallMode.ApplyMasks(content.Load("Wallpapers"), 4, 5, texturePacker, r => this.wallpaperTextures = r); } public override IEnumerable GetCustomFurnitureTextures(ModInfo info) { diff --git a/ExampleMod.csproj b/ExampleMod.csproj index 2131a85..700c970 100644 --- a/ExampleMod.csproj +++ b/ExampleMod.csproj @@ -5,7 +5,7 @@ - +