Skip to content

Repository files navigation

ModalDialog

A modal dialog system for Godot.

Features

  • Title
  • RichTextLabel for dialog text
  • Options
    • are resources
    • can have direct function callbacks
    • string and any object payload per option
  • Selection event that provides the chosen data
  • Different layouts for options
  • Signals per ModalDialogAutoWire node or code

Screenshots

dialog example 1 option dialog example 2 option
dialog example 3 option dialog example 4 option

dialog data example

Setup

To make ModalDialog globally available, set the modal_dialog_global.tscn scene global as ModalDialogGlobal.
Under: Project -> Project Settings -> Globals

Path:

ModalDialog/addons/ModalDialog/scenes/globals/modal_dialog_global.tscn

TODO

  • more samplee scenes
    • local dialog
  • more dynamic button layouts
  • 100% UI-wiring without code

Contribute

Please try to adhere to the GDScript style guidelines https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_styleguide.html.
States that are considered "stable" enough will get a git-tag and be released to the Godot Asset Library.
In the future I'd like merge requests and development on the development branch, but since it's currently "moving fast" I don't care so much (yet).

OTHER

Godot Asset Library: https://godotengine.org/asset-library/asset/4180
GitHub: https://github.com/SpielmannSpiel/ModalDialog
by bison - SpielmannSpiel https://spielmannspiel.com

About

A modal dialog system for Godot

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages