diff --git a/EduNetworkBuilder/AnimationClass.cs b/EduNetworkBuilder/AnimationClass.cs index d3a5332..db65b04 100644 --- a/EduNetworkBuilder/AnimationClass.cs +++ b/EduNetworkBuilder/AnimationClass.cs @@ -54,6 +54,12 @@ namespace EduNetworkBuilder AnimationCount = 6; maxAnim = 6; break; + case AnimationName.Lightning1: + ImageStartPoint = new Point(0, 600); + HowBig = new Size(100, 100); + AnimationCount = 6; + maxAnim = 6; + break; } NextAnimation = DateTime.UtcNow.AddMilliseconds(AnimationSpeed); } diff --git a/EduNetworkBuilder/NB.cs b/EduNetworkBuilder/NB.cs index ea22880..366bd6d 100644 --- a/EduNetworkBuilder/NB.cs +++ b/EduNetworkBuilder/NB.cs @@ -50,7 +50,7 @@ namespace EduNetworkBuilder LockVLANsOnHost, LockNicVLAN, LockInterfaceVLAN, LockVLANNames, DeviceIsFrozen, DeviceBlowsUpWithPower, DeviceNeedsUPS, } - public enum AnimationName { Spark1, Fire1, Smoke1, Explo1 } + public enum AnimationName { Spark1, Fire1, Smoke1, Explo1, Lightning1 } public enum ContextTest { ping, arp, traceroute } public enum NetTestVerbosity { none, basic, hints, full } public enum LBContents { routes, messages, dhcp, puzzles } diff --git a/EduNetworkBuilder/NetworkBuilder.cs b/EduNetworkBuilder/NetworkBuilder.cs index 615a9c1..b4447b7 100644 --- a/EduNetworkBuilder/NetworkBuilder.cs +++ b/EduNetworkBuilder/NetworkBuilder.cs @@ -992,6 +992,8 @@ namespace EduNetworkBuilder int which = GameRandomGen.Next(3); if (which == 0) myNetwork.AddAnimation(AnimationName.Spark1, Where); + else if(which == 1) + myNetwork.AddAnimation(AnimationName.Lightning1, Where); else myNetwork.AddAnimation(AnimationName.Smoke1, Where); } diff --git a/EduNetworkBuilder/Resources/Animations.png b/EduNetworkBuilder/Resources/Animations.png index 4444ae8..1eb2ebd 100644 Binary files a/EduNetworkBuilder/Resources/Animations.png and b/EduNetworkBuilder/Resources/Animations.png differ