Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gzlock/gd_modal_window

Repository files navigation

Godot Modal Window / 中文

Developer-Friendly Features

  • Supports stacked multiple windows

  • Supports enabling/disabling background click to close the window

  • Supports method chaining, e.g., win.a().b().c()

  • Supports fully customizable window UI skins

  • Supports button signals

  • Supports await to wait for the modal window to close, e.g.,

      await win.wait_to_close()
      print("The window has closed")
    

Gamepad-Friendly Features

  • Automatically switches button focus between multiple windows
  • Allows developers to manage focus manually

🎉 Experience the Best Practices 🎉

Download this project locally and run the example scene.

Installation

  • Download the 🔗latest stable version plugin zip, extract it, and place it in the Addons folder of your Godot project, e.g., /project/addons/modal_window
  • Search for "Modal Window" in the Godot editor's Asset Library to install

How To Use

  1. Enable the ModalWindow addon

image

  1. Create a window using ModalWindowManager.create('Content', 'Title')

Two Ways to Customize Window Styles

  1. Globally

    ModalWindowManager.global_preset = packed_scene

  2. For a single window

    ModalWindowManager.create('content', 'title', packed_scene)

Supported Platforms

  • Web
  • Windows
  • Linux
  • Android
  • iOS

⚠️ Please refer to the 🔗Custom Preset Scene for the node naming conventions to create custom window scenes.

Assets

TODO

  • Write documentation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published