https://github.com/andersmmg/godot-snackbar
Simple snackbars in Godot Engine
https://github.com/andersmmg/godot-snackbar
gdscript godot-engine godotengine notifications snackbar
Last synced: 7 months ago
JSON representation
Simple snackbars in Godot Engine
- Host: GitHub
- URL: https://github.com/andersmmg/godot-snackbar
- Owner: andersmmg
- Created: 2021-06-22T00:36:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-22T00:50:15.000Z (over 4 years ago)
- Last Synced: 2025-01-18T08:36:55.691Z (9 months ago)
- Topics: gdscript, godot-engine, godotengine, notifications, snackbar
- Language: GDScript
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# godot-snackbar
Simple snackbars in Godot Engine
## Usage
Clone this repo, or just copy the `snackbar.gd` file to your project.Add the `snackbar.gd` file to your autoloads and call the `show_snackbar()` function.
## Examples
```gdscript
Snackbar.show_snackbar("default message", wait_time, "default")Snackbar.show_snackbar("success message", wait_time, "success")
Snackbar.show_snackbar("error message", wait_time, "error")
Snackbar.show_snackbar("warning message", wait_time, "warning")
Snackbar.show_snackbar("notice message", wait_time, "notice")
Snackbar.show_custom_snackbar("custom message", wait_time, [Color("#b504a0"),Color("#f2ff3d")])
```