Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new MenuItem(
- "goodbye",
- function() { sendMessage("Goodbye, "+clickedUser.name+"!") },
- "Say goodbye",
- false,
- false,
- menuSVGs.speech_bubble
- );
- new MenuItem(
- "japanese",
- function() { sendMessage("こんにちは, "+clickedUser.name+"さん!") },
- "Say hello (Japanese)",
- false,
- false,
- menuSVGs.speech_bubble
- );
- openOtomodainoModal = function() {
- $.showCustomModal("Select gender", "Please select this user's gender", {
- id: 'otomodaino-modal',
- width: 400,
- buttons: [
- {
- message: 'Male',
- handler: function() {
- sendMessage("Dagozaj, "+clickedUser.name+"tzein!");
- $('#otomodaino-modal').closeModal();
- }
- },
- {
- message: 'Female',
- handler: function() {
- sendMessage("Dagozaj, "+clickedUser.name+"tzan!");
- $('#otomodaino-modal').closeModal();
- }
- },
- {
- message: 'Other/unknown',
- handler: function() {
- sendMessage("Dagozaj, "+clickedUser.name+"tzon!");
- $('#otomodaino-modal').closeModal();
- }
- },
- {
- message: 'Close',
- defaultButton: true,
- handler: function() {
- $('#otomodaino-modal').closeModal();
- }
- }]
- });
- }
- new MenuItem(
- "otomodaino",
- function() { openOtomodainoModal(); },
- "Say hello (Otomodaino)",
- false,
- false,
- menuSVGs.speech_bubble
- );
- new MenuItem(
- "aloha",
- function() { sendMessage("Aloha, "+clickedUser.name+"!"); },
- "Say aloha",
- false,
- false,
- menuSVGs.speech_bubble
- );
- new MenuItem(
- "cross",
- function() { sendMessage(clickedUser.name+", are you cross with me?"); },
- "Ask if user is cross with you",
- false,
- false,
- menuSVGs.speech_bubble
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement