Add lightning animation
This commit is contained in:
parent
0ee8d41c31
commit
7077e55d61
@ -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);
|
||||
}
|
||||
|
@ -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 }
|
||||
|
@ -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);
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 216 KiB After Width: | Height: | Size: 256 KiB |
Loading…
Reference in New Issue
Block a user