This commit is contained in:
_Bastler
2022-01-26 12:44:08 +01:00
parent 31f6847b53
commit e3b58a0d56
23 changed files with 131 additions and 94 deletions
+2 -1
View File
@@ -6,7 +6,8 @@ export const isButtonClickedEvent = new tg.IsInterface()
buttonId: tg.isNumber,
input: tg.isBoolean,
inputValue: tg.isString,
}).get();
})
.get();
/**
* A message sent from the game to the iFrame when a user enters or leaves a zone marked with the "zone" property.
*/
+2 -1
View File
@@ -4,7 +4,8 @@ export const isClosePopupEvent = new tg.IsInterface()
.withProperties({
popupId: tg.isNumber,
inputValue: tg.isString,
}).get();
})
.get();
/**
* A message sent from the iFrame to the game to add a message in the chat.
+4 -3
View File
@@ -13,9 +13,10 @@ export const isOpenPopupEvent = new tg.IsInterface()
targetObject: tg.isString,
message: tg.isString,
buttons: tg.isArray(isButtonDescriptor),
popupClass : tg.isString,
input: tg.isBoolean
}).get();
popupClass: tg.isString,
input: tg.isBoolean,
})
.get();
/**
* A message sent from the iFrame to the game to add a message in the chat.