Skip to content

Commit bc867dd

Browse files
'Release 2.7.887 [nolog]'
1 parent 08229f6 commit bc867dd

File tree

15 files changed

+38
-28
lines changed

15 files changed

+38
-28
lines changed

About/About.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Han Yaodong:
9797
Michaël Marinetti:
9898

9999
<size=24>Version</size>
100-
This is version 2.6.886, for RimWorld 1.1.2598.
100+
This is version 2.7.887, for RimWorld 1.1.2598.
101101

102102
</description>
103103
<supportedVersions>

About/Manifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<Manifest>
3-
<version>2.6.886</version>
3+
<version>2.7.887</version>
44
<manifestUri>https://raw.githubusercontent.com/fluffy-mods/ModManager/1.1/About/Manifest.xml</manifestUri>
5-
<downloadUri>https://github.com/fluffy-mods/ModManager/releases/v2.6.886</downloadUri>
5+
<downloadUri>https://github.com/fluffy-mods/ModManager/releases/v2.7.887</downloadUri>
66
</Manifest>

Assemblies/FluffyUI.dll

-512 Bytes
Binary file not shown.

Assemblies/ModManager.dll

-10 KB
Binary file not shown.

Assemblies/RecursiveProfiler.dll

0 Bytes
Binary file not shown.

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ Show your appreciation by buying me a coffee (or contribute towards a nice singl
101101
[![I Have a Black Dog](https://i.ibb.co/ss59Rwy/New-Project-2.png)](https://www.youtube.com/watch?v=XiCrniLQGYc)
102102

103103
# Version
104-
This is version 2.6.886, for RimWorld 1.1.2598.
104+
This is version 2.7.887, for RimWorld 1.1.2598.

Source/ModConfig.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": {
44
"alpha": 18,
55
"major": 2,
6-
"minor": 6,
7-
"build": 886
6+
"minor": 7,
7+
"build": 887
88
},
99
"visibility": 0,
1010
"git_repo": "ModManager",
@@ -23,13 +23,20 @@
2323
"Han Yaodong": "",
2424
"Michaël Marinetti": ""
2525
},
26-
"changenote": "2020-04-11 :: Fluffy :: recache target when needed'\n2020-04-11 :: Proxyer :: Pull request: Update Japanese Translation for 2.6.886 v2 (#81)'\n2020-04-11 :: Han Yaodong :: Update Chinese translation for v2.6.886 (#82)'\n2020-04-11 :: Michaël Marinetti :: Update French translations'\n2020-03-25 :: Fluffy :: cache modlist in order, improve error message for remote manifest fetch failure'",
26+
"changenote": "2020-04-11 :: Fluffy :: cache dependency targets, add auto-adding hugslib toggle'\n2020-04-11 :: Fluffy :: recache target when needed'\n2020-04-11 :: Proxyer :: Pull request: Update Japanese Translation for 2.6.886 v2 (#81)'\n2020-04-11 :: Han Yaodong :: Update Chinese translation for v2.6.886 (#82)'\n2020-04-11 :: Michaël Marinetti :: Update French translations'\n2020-03-25 :: Fluffy :: cache modlist in order, improve error message for remote manifest fetch failure'",
2727
"tags": [
2828
"1.0",
2929
"1.1"
3030
],
3131
"publishedfileid": "1507748539",
3232
"changenotes": [
33+
{
34+
"repo": "ModManager",
35+
"hash": "'tformat:08229f64b3b8df824a5feafe7f606d8645aff8f7",
36+
"date": "2020-04-11",
37+
"author": "Fluffy",
38+
"message": "cache dependency targets, add auto-adding hugslib toggle'"
39+
},
3340
{
3441
"repo": "ModManager",
3542
"hash": "'tformat:67a7f1a68d43f0fbd59ca3c185dc3d2073d33806",

Source/ModManager/Dependencies/Incompatible.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ public override List<FloatMenuOption> Resolvers
2323
{
2424
var options = Utilities.NewOptionsList;
2525
var targetButton = Target.GetManifest().Button;
26-
options.Add( new FloatMenuOption( I18n.DeactivateMod( targetButton ), () => targetButton.Active = false ) );
26+
options.Add( new FloatMenuOption( I18n.DeactivateMod( targetButton ),
27+
() => targetButton.Active = false ) );
28+
options.Add( new FloatMenuOption( I18n.DeactivateMod( parent.Button ),
29+
() => parent.Button.Active = false ) );
2730
return options;
2831
}
2932
}

Source/ModManager/ModButton/ModButton.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public virtual int MatchesFilter( string filter )
7070
internal abstract void DoModDetails( Rect canvas );
7171
public virtual int LoadOrder => -1;
7272
public virtual int SortOrder => -1;
73-
public abstract IEnumerable<Dependency> Issues { get; }
73+
public abstract IEnumerable<Dependency> Requirements { get; }
7474
internal virtual void HandleInteractions(Rect canvas, Action clickAction, Action doubleClickAction)
7575
{
7676
if (Mouse.IsOver(canvas))
@@ -94,11 +94,11 @@ internal virtual void HandleInteractions(Rect canvas, Action clickAction, Action
9494
internal virtual void DoModIssuesIcon( Rect canvas )
9595
{
9696
var severityThreshold = 2;
97-
var relevantIssues = Issues.Where( i => i.Severity >= severityThreshold );
97+
var relevantIssues = Requirements.Where( i => i.Severity >= severityThreshold );
9898
if ( !relevantIssues.Any() )
9999
return;
100100

101-
var worst = Issues.MaxBy( d => d.Severity );
101+
var worst = Requirements.MaxBy( d => d.Severity );
102102
GUI.color = worst.Color;
103103
GUI.DrawTexture( canvas, Resources.Warning );
104104
GUI.color = Color.white;
@@ -108,8 +108,8 @@ internal virtual void DoModIssuesIcon( Rect canvas )
108108
internal virtual void DrawRequirements(ref Rect canvas)
109109
{
110110
var severityThreshold = ModManager.Settings.ShowSatisfiedRequirements ? 0 : 1;
111-
var relevantIssues = Issues.Where( i => i.Severity >= severityThreshold );
112-
if ( !Issues.Any( i => i.Severity >= severityThreshold ) )
111+
var relevantIssues = Requirements.Where( i => i.Severity >= severityThreshold );
112+
if ( !Requirements.Any( i => i.Severity >= severityThreshold ) )
113113
return;
114114

115115
Utilities.DoLabel(ref canvas, I18n.Dependencies );

Source/ModManager/ModButton/ModButtonManager.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public static void Notify_ModListChanged()
153153
public static IEnumerable<ModButton_Installed> Expansions => AllButtons.Where( b => b.IsExpansion ).Cast<ModButton_Installed>();
154154
public static void RecacheIssues()
155155
{
156-
_issues = ActiveButtons.SelectMany( b => b.Issues ).ToList();
156+
_issues = ActiveButtons.SelectMany( b => b.Requirements ).ToList();
157157
}
158158

159159
public static void Reorder( int from, int to )
@@ -188,21 +188,21 @@ public static void Insert( ModButton button, int to )
188188
Notify_ModListChanged();
189189
}
190190

191-
public static void Notify_Activated( ModButton mod, bool active )
191+
public static void Notify_ActiveStatusChanged( ModButton_Installed mod, bool active )
192192
{
193193
if ( active )
194194
{
195195
_availableButtons.TryRemove( mod );
196196
_activeButtons.TryAdd( mod );
197-
if ( mod is ModButton_Installed installed )
198-
Notify_ModListChanged();
197+
198+
Notify_ModListChanged();
199199
}
200200
else
201201
{
202202
_activeButtons.TryRemove( mod );
203203
_availableButtons.TryAdd( mod );
204-
if ( mod is ModButton_Installed installed )
205-
Notify_ModListChanged();
204+
205+
Notify_ModListChanged();
206206
SortAvailable();
207207
}
208208
}
@@ -268,7 +268,7 @@ public static void Reset( bool addDefaultMods = true )
268268
foreach ( var expansion in Expansions )
269269
expansion.Active = true;
270270

271-
if ( ModManager.Settings.AddHugslibToNewModLists )
271+
if ( ModManager.Settings.AddHugsLibToNewModLists )
272272
{
273273
var hugslib = ModLister.GetModWithIdentifier( "unlimitedhugs.hugslib" );
274274
if ( hugslib != null )
@@ -281,7 +281,7 @@ public static void Reset( bool addDefaultMods = true )
281281
if ( ModManager.Settings.AddModManagerToNewModLists && ModManagerMod != null )
282282
ModManagerMod.Active = true;
283283

284-
if ( ModManager.Settings.AddHugslibToNewModLists || ModManager.Settings.AddModManagerToNewModLists )
284+
if ( ModManager.Settings.AddHugsLibToNewModLists || ModManager.Settings.AddModManagerToNewModLists )
285285
{
286286
// also try to activate harmony
287287
var harmony = ModLister.GetModWithIdentifier( "brrainz.harmony" );

0 commit comments

Comments
 (0)