🌌Your Screensaver
This page describes how to make your own custom screensaver using Visual Studio.
You're looking to create a screensaver for Nitrocid KS! That's great! Make sure that you have Visual Studio installed. Follow the steps to create your first screensaver.
Press
Create a new projecton Visual Studio homepage
Find
Class Libraryand double-click it
Write your screensaver name, like in our example,
MyFirstScreensaver.
Make sure that
.NET 6.0is used. PressCreate.
Right-click on
Dependencies->Manage NuGet Packages, findKS, and install it.
Once the package is installed, go to the
Class1.cssource file
In your class, implement both
BaseScreensaverandIScreensaver, ensuring thatKS.Misc.Screensaveris imported.
Override the methods and properties that start with Screensaver (
ScreensaverPreparation()andScreensaverOutro()are optional), just like below:
Once you have all the required methods and properties overridden like below, you can start working on your state-of-the-art screensaver using the available console tools.

Once you're done, click on
Build Solution.
Once the solution is built, open the file explorer to the solution directory by right-clicking on the solution and selecting
Open Folder in File Explorer.
Navigate to the output directory and copy the
.dllfile toKSModsunder the%localappdata%/KSfolder.
Open Nitrocid KS to test your mod. Ensure that
savescreen YourSavershows your own screensaver.
Last updated