Skip to content

Two Choices Dialog Boxes

A Dialog box with buttons to let the user make a choice.

Authors and contributors to this community extension: Bouh.


The dialog box is showing multiple options (usually "yes" and "no") and a customizable text message. It also has:

  • Full keyboard, gamepad and touch support
  • A default selected button

Tip

Learn how to install new extensions by following a step-by-step guide.

Two Choices Dialog Box

A dialog box showing two options (usually "yes" and "no") and a customizable text message.

Object actions

Active button identifier
Change the active button identifier.

Text message
Change the text shown by the dialog.

Object conditions

Active button identifier
Compare the active button identifier.

"No" button is clicked
Check if the "No" button of the dialog was selected.

"Yes" button is clicked
Check if the "Yes" button of the dialog was selected.

Object expressions

Expression Description
Object.ActiveButtonById() Return the active button identifier.

This page is an auto-generated reference page about the Two Choices Dialog Boxes extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.