Adding placeHolder Popup tuto to Map2

need to cut player controller and simulate bobble
This commit is contained in:
DESKTOP-FMM8UI0\CLV 2021-03-11 10:58:48 +01:00
parent f9f618094d
commit 6441fa71d3
3 changed files with 618 additions and 17 deletions

View file

@ -79,11 +79,9 @@ window.WA = {
},
openPopup(targetObject: string, message: string, buttons: ButtonDescriptor[]): Popup {
popupId++;
const popup = new Popup(popupId);
const btnMap = new Map<number, () => void>();
popupCallbacks.set(popupId, btnMap);
targetObject = "tutoBobble";
let id = 0;
for (const button of buttons) {
const callback = button.callback;
@ -95,6 +93,7 @@ window.WA = {
id++;
}
window.parent.postMessage({
'type': 'openPopup',
'data': {