-
-
Notifications
You must be signed in to change notification settings - Fork 3
Home
SLIB (Subject Library) is a Godot library designed to simplify and enhance your development experience. It provides a set of ready-to-use, standard codes that eliminate the need to write repetitive and lengthy scripts. SLib is lightweight, easy to install, and helps make your code more readable and maintainable.
- Lightweight: Requires minimal space in your application (less than 100KB).
- Easy Installation: Simple setup process to get you started quickly.
- Code Readability: Transforms complex and unreadable code into clear and understandable expressions.
- Efficiency: Reduces the need for duplicate code and allows execution of multiple lines with a single command.
- Standardization: Provides standard methods for common tasks, optimizing your app for any platform.
To start using SLIB, follow these steps:
-
Save the SLib Script: Download
SLib.gdand save it in the root directory of your project. Releases -
Auto Load Setup: Go to Project Settings > Auto Load, and add
res://SLib.gdwith the nameSLib.
Now you can use SLib functions in your scripts like this:
SLib.FunctionName(parameters)SLIB offers a variety of functions to streamline your development process:
- GoToScene(): Transition between scenes easily.
- SetProjectSetting(): Modify project settings.
- GetProjectSetting(): Retrieve project settings.
- Reload(): Reload the current scene.
- Exit(): Exit the application.
- Wait(): Pause execution for a specified duration.
- SaveFile(): Save data to a file.
- LoadFile(): Load data from a file.
- BackupFile(): Create a backup of a file.
- SendError(): Log an error message.
- SendWarning(): Log a warning message.
- SendAlert(): Display an alert message.
- SaveLog(): Save a log entry.
- OSOpen(): Open a file with the default OS application.
- FullPath(): Get the full path of a file.
- MergeUnique():Combine two array.
For detailed documentation and examples, visit our GitHub repository.
Join our community to share your experiences, ask questions, and get support from other SLib users. Check out our GitHub repository for the latest updates and contributions.
Tip
Wiki was updated to 1.1.0! 🚀
