Wip : adventure mode

This commit is contained in:
Renan LE CARO 2025-03-26 14:04:54 +01:00
parent 395968bc52
commit 6cf8fabf16
14 changed files with 457 additions and 114 deletions

View file

@ -25,6 +25,16 @@ closeModaleButton.title = t("play.close_modale_window_tooltip");
let lastClickedItemIndex = -1;
export function requiredAsyncAlert<t>(p: {
title?: string;
text?: string;
actions?: AsyncAlertAction<t>[];
textAfterButtons?: string;
actionsAsGrid?: boolean;
}):Promise<t>{
return asyncAlert({...p, allowClose:false})
}
export async function asyncAlert<t>({
title,
text,