CursedSliver

CCCEM Debug toolkit

May 9th, 2024 (edited)
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 1.04 KB | Source Code | 0 0
  1. //CCCEM toolkit for trufflzzers only
  2. var CCCEMToolkitLoaded = false;
  3. function CCCEMToolkitLoad() {
  4.     if (!CCCEMToolkitLoaded && typeof Crumbs !== 'undefined') {
  5.         var debugText = {
  6.             align: 'right',
  7.             size: 12
  8.         };
  9.         var debugObject = {
  10.             x: 700,
  11.             y: 20,
  12.             anchor: 'top-left',
  13.             components: new Crumbs.component.text(debugText),
  14.             behaviors: function(o, p) {
  15.                 let str = 'CCCEM stats';
  16.                 str += '\nGame seed: '+Game.seed;
  17.                
  18.                 o.getComponent('text').content = str;
  19.                 return {x: l('game').offsetWidth - 20};
  20.             }
  21.         };
  22.         Crumbs.spawn(debugObject);
  23.         CCCEMToolkitLoaded = true;
  24.         Game.Notify('Toolkit added!', 'Toolkit successfully added.');
  25.     }
  26. }
  27. if (CCCEMLoaded) { if (!App) { Game.LoadMod('https://raw.githack.com/CursedSliver/Crumbs-engine/main/Crumbs.js'); } Game.registerHook('logic', CCCEMToolkitLoad); } else { Game.Notify('CCCEM not loaded!', 'Please load the toolkit after CCCEM load.'); }
Advertisement
Add Comment
Please, Sign In to add comment