From 2cf07b10b8133de61ff0132c20294ccd0b575aab Mon Sep 17 00:00:00 2001 From: Katy Fox Date: Fri, 24 Jan 2025 12:08:18 -0500 Subject: [PATCH] custom paint can price --- SMShared/Json/ThemeConfigJson.cs | 1 + SkinConfigurator/ThemeConfigEditor.xaml | 29 +++++++++- SkinConfigurator/ThemeConfigEditor.xaml.cs | 53 +++++++++++++++++++ .../ViewModels/ThemeConfigModel.cs | 11 ++++ SkinManagerMod/Items/PaintFactory.cs | 9 +++- SkinManagerMod/ThemeSettings.cs | 4 ++ 6 files changed, 103 insertions(+), 4 deletions(-) diff --git a/SMShared/Json/ThemeConfigJson.cs b/SMShared/Json/ThemeConfigJson.cs index 269aacb..1ab647d 100644 --- a/SMShared/Json/ThemeConfigJson.cs +++ b/SMShared/Json/ThemeConfigJson.cs @@ -21,6 +21,7 @@ public class ThemeConfigItem public string Name; public bool HideFromStores; public bool PreventRandomSpawning; + public float? CanPrice; public string LabelTextureFile; public string LabelBaseColor; diff --git a/SkinConfigurator/ThemeConfigEditor.xaml b/SkinConfigurator/ThemeConfigEditor.xaml index 80a9d5b..c18f98d 100644 --- a/SkinConfigurator/ThemeConfigEditor.xaml +++ b/SkinConfigurator/ThemeConfigEditor.xaml @@ -32,6 +32,7 @@ + @@ -44,7 +45,31 @@ ItemsSource="{Binding AvailableSkinNames}" SelectionChanged="ComboBox_SelectionChanged"/> - +