diff --git a/build/common.props b/build/common.props index bfad237..b3eff68 100644 --- a/build/common.props +++ b/build/common.props @@ -11,7 +11,7 @@ - 1.5.1 + 1.5.2 2.2.2 3.0.0.139 5.0.222 diff --git a/changelog.txt b/changelog.txt index ab58f54..9cf8e02 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,10 @@ --------------------------------------------------------------------------------------------------- +Version: 1.5.2 +Game Versions: v1.0.0,v1.0.1,v1.0.2,v1.0.3,v1.1.0,v1.1.1,v1.1.2,v1.1.3,v1.1.4,v1.1.5,v1.1.6,v1.2.x +* BETA Release! +* Update Recommendations now have color grading +* Fixed mod dragging +--------------------------------------------------------------------------------------------------- Version: 1.5.1 Game Versions: v1.0.0,v1.0.1,v1.0.2,v1.0.3,v1.1.0,v1.1.1,v1.1.2,v1.1.3,v1.1.4,v1.1.5,v1.1.6,v1.2.x * BETA Release! diff --git a/src/Bannerlord.LauncherEx/Resources/Prefabs/Launcher.Mods.ModuleTuple.xml b/src/Bannerlord.LauncherEx/Resources/Prefabs/Launcher.Mods.ModuleTuple.xml index f1db73e..95eb799 100644 --- a/src/Bannerlord.LauncherEx/Resources/Prefabs/Launcher.Mods.ModuleTuple.xml +++ b/src/Bannerlord.LauncherEx/Resources/Prefabs/Launcher.Mods.ModuleTuple.xml @@ -6,6 +6,9 @@ + + + @@ -20,13 +23,15 @@ - + + + @@ -64,12 +69,6 @@ - - - - - - @@ -79,7 +78,17 @@ - + + + + + + + + + + + @@ -92,6 +101,13 @@ + + + + + + + diff --git a/src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs b/src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs index 7f10a54..53b923b 100644 --- a/src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs +++ b/src/Bannerlord.LauncherEx/ViewModels/BUTRLauncherModuleVM.cs @@ -119,6 +119,15 @@ public string IssuesText public LauncherHintVM? UpdateHint { get => _updateHint; set => SetField(ref _updateHint, value); } private LauncherHintVM? _updateHint; + [BUTRDataSourceProperty] + public bool IsUpdateHintHigh => UpdateInfoAvailable && CompatibilityScore >= 75d; + + [BUTRDataSourceProperty] + public bool IsUpdateHintMedium => UpdateInfoAvailable && CompatibilityScore is >= 50d and < 75d; + + [BUTRDataSourceProperty] + public bool IsUpdateHintLow => UpdateInfoAvailable && CompatibilityScore is >= 0d and < 50d; + public BUTRLauncherModuleVM(ModuleInfoExtendedWithMetadata moduleInfoExtended, Action select, Func> validate, Func> getPossibleProviders) { @@ -208,6 +217,10 @@ public void SetUpdateInfo(double compatibilityScore, string? recommendedVersion) .SetTextVariable("CURRENTVERSION", VersionText) .SetTextVariable("RECOMMENDEDVERSION", RecommendedVersion) .SetTextVariable("GAMEVERSION", ApplicationVersionHelper.GameVersionStr()).ToString()); + + OnPropertyChanged(nameof(IsUpdateHintHigh)); + OnPropertyChanged(nameof(IsUpdateHintMedium)); + OnPropertyChanged(nameof(IsUpdateHintLow)); } public void RemoveUpdateInfo() @@ -216,6 +229,10 @@ public void RemoveUpdateInfo() CompatibilityScore = 0d; RecommendedVersion = string.Empty; UpdateHint = null; + + OnPropertyChanged(nameof(IsUpdateHintHigh)); + OnPropertyChanged(nameof(IsUpdateHintMedium)); + OnPropertyChanged(nameof(IsUpdateHintLow)); }