Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
Quick Information
This will add a CalendarButton node that allows you to easily select a date without having to do all the work of creating your own Calendar and Date classes. Very easy to use.
Calendar Button Plugin for Godot Engine 3.2.3
This will add a CalendarButton node that allows you to easily select a date without having to do all the work of creating your own Calendar and Date classes. Very easy to use.
How to implement in your project
- Place CalendarButton in your scene
- From a script of your choice, get the CalendarButton node
- Using the node, add a connection: calendar_button_node.connect("date_selected", self, "your_func_here")
- Create a function "func your_func_here(date_obj)". Note that it expect an argument.
- Do a test inside "your_func_here", such as: print(date_obj.date("DD-MM-YYYY"))
Manual Plugin Installation
Follow these steps if you are unable to find the CalendarButton Node.
- Put the addons folder in the root of your Godot Engine project.
- Go to the "Project" menu dropdown and select "Project Settings".
- Select the "Plugins" tab.
- Select "Update" if you do not see the plugin.
- Enable it.
Code Example:
func _ready(): var calendar_button_node = get_node("path/to/CalendarButton") calendar_button_node.connect("date_selected", self, "your_func_here")
func your_func_here(date_obj): print(date_obj.date()) # Use the date_obj wisely :)
Get detailed comments inside each class for more information.
Development & Contributions
First of all; Thank you very much for making pull requests and posting issues related to this project. Secondly, I hope we all continue to work towards writing amazing code :)
GDScript style guide
Please do your best to follow the official GDscript style guide
The short version:
NodeName
, notnode_name
node_name.gd
, notNodeName.gd
my_function()
, notMyFunction()
_unused_variable
, notunused_variable
Versioning
This projects follow semantic versioning.
Given a version number MAJOR.MINOR.PATCH, increment the:
MAJOR version when you make incompatible API changes,
MINOR version when you add functionality in a backwards compatible manner, and
PATCH version when you make backwards compatible bug fixes.
Credits
Big thanks to all that have posted issues and written PRs
License
MIT License (MIT)
Copyright (c) 2021 Ivan Skodje
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This will add a CalendarButton node that allows you to easily select a date without having to do all the work of creating your own Calendar and Date classes. Very easy to use.
Reviews
Quick Information
This will add a CalendarButton node that allows you to easily select a date without having to do all the work of creating your own Calendar and Date classes. Very easy to use.