Skip to content

Commit

Permalink
Merge pull request #254 from hrntsm/Feature/add-hoaryfox-icon
Browse files Browse the repository at this point in the history
Add Icon display in Tab
  • Loading branch information
hrntsm authored May 18, 2023
2 parents 288126d + 7e95f4f commit 6a076dc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
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;
}
}
}

0 comments on commit 6a076dc

Please sign in to comment.