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

Add Icon display in Tab #254

Merged
merged 1 commit into from
May 18, 2023
Merged
Show file tree
Hide file tree
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
14 changes: 9 additions & 5 deletions HoaryFox/RH6/HoaryFoxRH6Info.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@ namespace HoaryFox
public class HoaryFoxRH6Info : GH_AssemblyInfo
{
public override string Name => "HoaryFox";

public override Bitmap Icon => HoaryFoxCommon.Properties.Resource.InfoIcon;

public override string Description => "This Component read ST-Bridge file(.stb) and display its model data.";

public override Guid Id => new Guid("093de648-746b-4b0b-85ef-495c6fb4514f");

public override string AuthorName => "hrntsm";

public override string AuthorContact => "contact@hrntsm.com";
}

public class HoaryFoxCategoryIcon : GH_AssemblyPriority
{
public override GH_LoadingInstruction PriorityLoad()
{
Grasshopper.Instances.ComponentServer.AddCategoryIcon("HoaryFox", HoaryFoxCommon.Properties.Resource.InfoIcon);
return GH_LoadingInstruction.Proceed;
}
}
}
14 changes: 9 additions & 5 deletions HoaryFox/RH7/HoaryFoxRH7Info.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@ namespace HoaryFox
public class HoaryFoxRH7Info : GH_AssemblyInfo
{
public override string Name => "HoaryFox";

public override Bitmap Icon => HoaryFoxCommon.Properties.Resource.InfoIcon;

public override string Description => "This Component read ST-Bridge file(.stb) and display its model data.";

public override Guid Id => new Guid("093de648-746b-4b0b-85ef-495c6fb4514f");

public override string AuthorName => "hrntsm";

public override string AuthorContact => "contact@hrntsm.com";
}

public class HoaryFoxCategoryIcon : GH_AssemblyPriority
{
public override GH_LoadingInstruction PriorityLoad()
{
Grasshopper.Instances.ComponentServer.AddCategoryIcon("HoaryFox", HoaryFoxCommon.Properties.Resource.InfoIcon);
return GH_LoadingInstruction.Proceed;
}
}
}