Change icon on the alert box?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By dmarques42

Is there a way to change the icon shown on OS.alert? I guess the right thing is to make my own custom alert, but just wondered if there were a simple way to substitute that one. I have changed icons on executables, and I see that changing the startup icon requires re-compile of the Godot engine, but nothing about customizing the alert box.

:bust_in_silhouette: Reply From: jgodfrey

I’m not aware of a way to do that. Really, OS.alert is just a simple reference to an underlying alert dialog based on the OS - so really no bells and whistles that I’m aware of.

As you suggested, making your own might be best here, and should be easy to do based on one of the existing Popup, WindowDialog, or PopupDialog nodes.

Thank you. I am working on versions of that, just more work. But no big deal.

dmarques42 | 2020-11-27 20:40