Apps Home
|
My Uploads
|
Create an App
testapp1dee
Author:
testdee
Description
Source Code
Launch App
Current Users
Created by:
Testdee
App Images
//var bg = '2b8146c5-d66d-402f-bd2c-d656fe2cb373'; //var bgExtra = 'd6f4618f-2509-4a90-b292-664ead948d86'; //var bgAnonimo = '348fd0cb-6749-4846-89af-1c8e9e2ff155'; var bg = "21e35b8b-53aa-47ec-ba6a-952980b9143e"; var BGNewfollow ="2cd02791-71e1-41ba-91cf-df5307f5e00c"; var BGNewfan= "889477a0-6709-46ba-b6fc-cbc7993b418f"; var bgExtra = "50dcebf2-3a3b-44b8-9806-d3a7244834b1"; var bgAnonimo = "1876173f-a00a-457b-a76c-8442da0e966d"; var c = 0; const n_newfollow=1; const n_newfan=2; var page=0; var panuser=0; var fontSizeQr = 20; var textapp=['','','']; var vartimmer; var tokusers=[]; var AnnonnTexts= [["Si te registras con", "mi link", 'Arriba o abajo'],[ 'Me ayudarias pero', 'Un monton', 'Y no cuesta nada'],[ 'if you signup with', 'My link', 'Above or below'],[ 'That will help me', 'A LOT', "and it's free"]]; var TokensTexts= [["Muchas gracias por", "Hacerme", 'CompaƱia, Gracias'],[ 'Recuerda mantener', 'El chat', 'Y la sala tranquila'],[ 'Im so thankful that', 'You are Here', 'No matter how long'],[ 'Please rembember', 'to keep', "the room peaceful"]]; var FanclubTexts= [["Mil Mil Gracias", "Por todo", 'Eres el mejor'],[ 'Espero poder darte', 'Excelentes', 'Momentos y recuerdos'],[ 'Im so grateful', 'For your', 'Help and Support'],[ 'I wish I can', 'Give you', "Good Memorable Moments"]]; var Model= [0,0,0]; cb.onDrawPanel(function(user) { switch(page) { case 0: if (user.user==''){ textapp=AnnonnTexts[c]; } if (user.has_tokens){ textapp=TokensTexts[c]; }else{ textapp=AnnonnTexts[c]; } if (user.in_fanclub){ textapp=FanclubTexts[c]; } if (user.user==cb.room_slug){ textapp[0]="Tokens: " + Model[0]; textapp[1]="User: " + Model[1]; textapp[2]="Followers: " + Model[2]; } return { "template": "image_template", "layers": [ {'type': 'image', 'fileID': bg}, { 'font-family': 'Century Gothic,Tahoma,Geneva,sans-serif', 'type': 'text', 'text': textapp[0], 'top': 2, 'left': 15, 'font-size': fontSizeQr, }, { 'font-family': 'Century Gothic,Tahoma,Geneva,sans-serif', 'type': 'text', 'text': textapp[1], 'top': 25, 'left': 45, 'font-size': fontSizeQr, }, { 'font-family': 'Century Gothic,Tahoma,Geneva,sans-serif', 'type': 'text', 'text': textapp[2], 'top': 45, 'left': 15, 'font-size': fontSizeQr, }, ], }; break; case n_newfollow: return { "template": "image_template", "layers": [ {'type': 'image', 'fileID': BGNewfollow}, { 'font-family': 'Century Gothic,Tahoma,Geneva,sans-serif', 'type': 'text', 'text': 'Muchas gracias', 'top': 2, 'left': 15, 'font-size': fontSizeQr, }, { 'font-family': 'Century Gothic,Tahoma,Geneva,sans-serif', 'type': 'text', 'text': 'Thank you so much', 'top': 25, 'left': 45, 'font-size': fontSizeQr, }, { 'font-family': 'Century Gothic,Tahoma,Geneva,sans-serif', 'type': 'text', 'text': panuser, 'top': 45, 'left': 15, 'font-size': fontSizeQr, }, ], }; page=0; // code block break; case n_newfan: return { "template": "image_template", "layers": [ {'type': 'image', 'fileID': BGNewfan}, { 'font-family': 'Century Gothic,Tahoma,Geneva,sans-serif', 'type': 'text', 'text': 'Bienvenido', 'top': 2, 'left': 15, 'font-size': fontSizeQr, }, { 'font-family': 'Century Gothic,Tahoma,Geneva,sans-serif', 'type': 'text', 'text': 'Welcome', 'top': 25, 'left': 45, 'font-size': fontSizeQr, }, { 'font-family': 'Century Gothic,Tahoma,Geneva,sans-serif', 'type': 'text', 'text': panuser, 'top': 45, 'left': 15, 'font-size': fontSizeQr, }, ], }; page=0; // code block break; default: // code block }; } ); cb.drawPanel(); cb.onMessage(function (msg) { if (msg.user==cb.room_slug){ msg.m="\ud83d\udc51 " + msg.m; }else{ if(msg.user.gender=='m'){ msg.m="\u1F934 " + msg.m; } if(msg.user.gender=='f'){ msg.m="\u1F478 " + msg.m; } if(msg.user.gender=='c'){ msg.m="\u1F465 " + msg.m; } if(msg.user.gender=='s'){ msg.m="\u1F3F3\uFE0F\u200D\u1F308 " + msg.m; } } return msg; }); cb.onFollow(user => { cb.cancelTimeout(vartimmer); Model[2]=Model[2]+1; page=n_newfollow; panuser=user.user; cb.drawPanel(); cb.setTimeout(timmer,10000) }); cb.onTip(function (tip) { Model[0] += parseInt(tip['amount']); if(!cbjs.arrayContains(tokusers,tip['from_user'])) { tokusers.push(tip['from_user']) Model[1] +=1; } cb.sendNotice('Gracias! ' + tip['from_user'] + " No olvides dejarme el pulgar arriba",tip['from_user'],"","# 00bbff","bold"); cb.sendNotice('Thank you! ' + tip['from_user'] + " Don't forget to leave the thumbs-ups",tip['from_user'],"","#00bbff","bold"); }); cb.onFanclubJoin(user => { cb.cancelTimeout(vartimmer); page=n_newfan; panuser=user.user; cb.drawPanel(); cb.setTimeout(timmer,10000) }); cb.onEnter(function(user) { cb.sendNotice('Welcome ' + user['user'] + " To the Best Rooom! Don't Forget to follow",user['user'],"","# 00bbff","bold"); cb.sendNotice('Bienvenido ' + user['user'] + ' A la Mejor Sala! No Olvides Seguirme',user['user'],"","#00bbff","bold"); }); function timmer(){ c++; page=0; if (c>3){ c=0; } vartimmer=cb.setTimeout(timmer,4500) cb.drawPanel(); } vartimmer=cb.setTimeout(timmer,4500)
© Copyright Chaturbate 2011- 2024. All Rights Reserved.