Custom game close button action

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • How to program a custom action for the game's close button in the menu bar? Currently, I only see the 'disable close button in the menu bar' option in the settings, but I remember doing this years ago in CF, where there was an option to deactivate the game's close action and plan your own action using 'end of application.' I want to check if the game has been saved. If not, and someone clicks the close button, it should take us to the game closure confirmation menu and optionally allow saving.

    Please login to see this link.

  • As soon as you create an event with the condition of that selected menu option, its original action will no longer work.

    So all you have to do is go to the event editor and then create a new event with the condition:

    "Special" -> "Application Menu" -> "Has an option been selected?"
    Then select press "Click Here"

    Select "File" -> "Quit"

    Then add any action you want to that event, from now on as long as that event exist, it will no longer quit the application

    EDIT: Ah you mean the red X up to the top right.

    All you have to do is to just create an event for that as well.

    "Special" -> "Application Menu" -> "Close window has been selected?"
    Once you create an action for this event, this button will no longer close the application

    Edited 2 times, last by Decal (October 2, 2023 at 12:40 AM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!