Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Custom Alert Modal

A topic by Gabriel Cornish created 28 days ago Views: 249 Replies: 3
Viewing posts 1 to 3

Is there a way to customize the look and size of the alert modal? For example, change the frame, button look, fonts, etc..??

I imagine this likely requires a custom contraption. If so what's a good way about replicating the alert functionality so that it's more customizable? That's a long winded way of asking, how do I make custom pop ups?

(+1)

It could be worth having a look at the Dialogizer module that comes with Decker - although it's designed around visual novel style dialogue and choices it basically is a module that'll pop up a box on screen and the style and position can be customised, including custom borders and rich text.

Thank you! I hadn't thought of that, but it makes sense. Might just work. I'll give it a go.

Developer (1 edit) (+2)

In addition to Dialogizer, which offers blocking modal dialogs like a more general version of alert[], WigglyKit includes an example of a full-screen contraption which behaves like a non-blocking modal dialog; might be worth a look. While alert[] is not very visually customizable, it is worth noting that you can specify the first argument as rtext, which includes the possibility of specifying fonts, colors/patterns, and supplying inline images.