Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.3.1 compatibility of SimplePartFilter (NRE fix) #5

Merged
merged 1 commit into from
Oct 25, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SimplePartFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public abstract class SimplePartFilter : MonoBehaviour
{
List<string> modules;
protected List<string> MODULES { get { return modules; } }
protected string CATEGORY = "Filter by function";
protected string CATEGORY = "Filter by Function";
protected string SUBCATEGORY = "";
protected string FOLDER = "";
protected string ICON = "";
Expand All @@ -53,7 +53,7 @@ void set_modules_icon(Icon icon)
if(modules != null && modules.Count > 0)
{
PartCategorizer.Instance.filters
.Find(f => f.button.categoryName == "Filter by module")
.Find(f => f.button.categoryName == "Filter by Module")
.subcategories.FindAll(s => modules.Any(m => m == s.button.categoryName))
.ForEach(c => c.button.SetIcon(icon));
}
Expand Down