Skip to content

Commit

Permalink
Update Event images.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Mar 14, 2024
1 parent 7e0a826 commit e2460e8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [1.1.0] / 2024-03-13
- Add event feature
- Update Event images.

## [1.0.0] / 2024-02-01
- Add Icons
Expand Down
Binary file not shown.
Binary file not shown.
11 changes: 11 additions & 0 deletions RevitAddin.VisualStudioDebug/Revit/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class App : IExternalApplication
{
private static RibbonPanel ribbonPanel;
private static VisualStudioDebugAttach visualStudioDebugAttach;
private static RibbonButton ribbonEventButton;
public Result OnStartup(UIControlledApplication application)
{
//Console.WriteLine(application);
Expand Down Expand Up @@ -44,6 +45,8 @@ public Result OnStartup(UIControlledApplication application)
stopButton
);

ribbonEventButton = eventButton;

AppDomain.CurrentDomain.AssemblyLoad += CurrentDomain_AssemblyLoad;

return Result.Succeeded;
Expand All @@ -64,6 +67,14 @@ private void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs arg
private static void EventMonitor()
{
EventLoad = !EventLoad;
if (EventLoad)
{
ribbonEventButton?.SetLargeImage("Resources/Event-Stop-Light.ico");
}
else
{
ribbonEventButton?.SetLargeImage("Resources/Event-Light.ico");
}
}

public Result OnShutdown(UIControlledApplication application)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@
<None Remove="Resources\About-Light.ico" />
<None Remove="Resources\Event-Dark.ico" />
<None Remove="Resources\Event-Light.ico" />
<None Remove="Resources\Event-Stop-Dark.ico" />
<None Remove="Resources\Event-Stop-Light.ico" />
<None Remove="Resources\Pause-Dark.ico" />
<None Remove="Resources\Pause-Light.ico" />
<None Remove="Resources\Play-Dark.ico" />
Expand All @@ -118,6 +120,8 @@
<ItemGroup>
<Resource Include="Resources\Event-Dark.ico" />
<Resource Include="Resources\Event-Light.ico" />
<Resource Include="Resources\Event-Stop-Dark.ico" />
<Resource Include="Resources\Event-Stop-Light.ico" />
<Resource Include="Resources\Revit.ico" />
</ItemGroup>

Expand Down

0 comments on commit e2460e8

Please sign in to comment.