Skip to content

A Godot Android plugin for selecting dates, times, or both using native dialogs.

License

Notifications You must be signed in to change notification settings

syntaxerror247/godot-date-time-picker

Repository files navigation

DateTimePicker Plugin

DateTimePicker is a Godot Android plugin that provides native Android Date Picker, Time Picker, and DateTime Picker

Installation

  • download latest release from releases.
  • unzip the release archive.
  • copy addon folder to your Godot project's root directory.
  • enable the plugin via the Plugins tab of Project->Project Settings... menu, in the Godot Editor.

Methods

  • pickDate(): Displays a date picker dialog. Emits the onDatePicked signal when a date is selected.

  • pickTime(is24HourView: bool): Displays a time picker dialog. Emits the onTimePicked signal when a time is selected.

    • is24HourView: If true, the time picker will display in 24-hour format. If false, it will display in 12-hour format.
  • pickDateTime(is24HourView: bool): Displays both date and time picker dialogs in sequence. Emits the onDateTimePicked signal when both are selected.

    • is24HourView: If true, the time picker will display in 24-hour format. If false, it will display in 12-hour format.

Signals

  • onDatePicked(date: Dictionary)
    • day: Selected day
    • month: Selected month (1–12)
    • year: Selected year
  • onTimePicked(time: Dictionary)
    • hour: Selected hour (0–23)
    • minute: Selected minute (0–59)
  • onDateTimePicked(deteTime: Dictionary)
    • day: Selected day
    • month: Selected month (1–12)
    • year: Selected year
    • hour: Selected hour (0–23)
    • minute: Selected minute (0–59)

Screenshots

1000187047 1000187048

About

A Godot Android plugin for selecting dates, times, or both using native dialogs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published