Add lightning animation
This commit is contained in:
		| @@ -54,6 +54,12 @@ namespace EduNetworkBuilder | |||||||
|                     AnimationCount = 6; |                     AnimationCount = 6; | ||||||
|                     maxAnim = 6; |                     maxAnim = 6; | ||||||
|                     break; |                     break; | ||||||
|  |                 case AnimationName.Lightning1: | ||||||
|  |                     ImageStartPoint = new Point(0, 600); | ||||||
|  |                     HowBig = new Size(100, 100); | ||||||
|  |                     AnimationCount = 6; | ||||||
|  |                     maxAnim = 6; | ||||||
|  |                     break; | ||||||
|             } |             } | ||||||
|             NextAnimation = DateTime.UtcNow.AddMilliseconds(AnimationSpeed); |             NextAnimation = DateTime.UtcNow.AddMilliseconds(AnimationSpeed); | ||||||
|         } |         } | ||||||
|   | |||||||
| @@ -50,7 +50,7 @@ namespace EduNetworkBuilder | |||||||
|         LockVLANsOnHost, LockNicVLAN, LockInterfaceVLAN, LockVLANNames, |         LockVLANsOnHost, LockNicVLAN, LockInterfaceVLAN, LockVLANNames, | ||||||
|         DeviceIsFrozen, DeviceBlowsUpWithPower, DeviceNeedsUPS, |         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 ContextTest {  ping, arp, traceroute } | ||||||
|     public enum NetTestVerbosity { none, basic, hints, full } |     public enum NetTestVerbosity { none, basic, hints, full } | ||||||
|     public enum LBContents { routes, messages, dhcp, puzzles } |     public enum LBContents { routes, messages, dhcp, puzzles } | ||||||
|   | |||||||
| @@ -992,6 +992,8 @@ namespace EduNetworkBuilder | |||||||
|                         int which = GameRandomGen.Next(3); |                         int which = GameRandomGen.Next(3); | ||||||
|                         if (which == 0) |                         if (which == 0) | ||||||
|                             myNetwork.AddAnimation(AnimationName.Spark1, Where); |                             myNetwork.AddAnimation(AnimationName.Spark1, Where); | ||||||
|  |                         else if(which == 1) | ||||||
|  |                             myNetwork.AddAnimation(AnimationName.Lightning1, Where); | ||||||
|                         else |                         else | ||||||
|                             myNetwork.AddAnimation(AnimationName.Smoke1, Where); |                             myNetwork.AddAnimation(AnimationName.Smoke1, Where); | ||||||
|                     } |                     } | ||||||
|   | |||||||
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 216 KiB After Width: | Height: | Size: 256 KiB | 
		Reference in New Issue
	
	Block a user