Skip to content

Commit b9d354b

Browse files
committed
🔥🔥 SUPER OMEGA ULTRA EPIC UPDATE!!!!🗣
1 parent 5f261e8 commit b9d354b

File tree

7 files changed

+136
-23
lines changed

7 files changed

+136
-23
lines changed

src/components/menu-bar/menu-bar.jsx

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,36 @@ class MenuBar extends React.Component {
307307
this.props.onClickLanguage(e);
308308
}
309309
}
310+
311+
handleClickMode(effect) {
312+
const body = document.body;
313+
body.style = '';
314+
if (!effect) return;
315+
316+
// fix some weird sizing, just applies on effects
317+
body.style = "width:100%;height:100%;position:fixed;overflow:hidden;";
318+
switch (effect) {
319+
case 'night':
320+
body.style.filter = 'brightness(90%) sepia(100%) hue-rotate(340deg) saturate(400%)';
321+
break;
322+
case 'blur':
323+
body.style.filter = 'blur(4px)';
324+
break;
325+
case 'comic':
326+
body.style.filter = 'brightness(70%) contrast(1000%) grayscale(100%)';
327+
break;
328+
case 'toxic':
329+
body.style.filter = 'sepia(100%) hue-rotate(58deg) saturate(400%)';
330+
break;
331+
case 'uhd':
332+
body.style.filter = 'url("./bloomfilter.svg#bloom")';
333+
break;
334+
case 'upsidedown':
335+
body.style.transform = 'rotateX(180deg) rotateY(180deg)';
336+
break;
337+
}
338+
}
339+
310340
restoreOptionMessage(deletedItem) {
311341
switch (deletedItem) {
312342
case 'Sprite':
@@ -796,6 +826,30 @@ class MenuBar extends React.Component {
796826
/>
797827
</MenuItem>
798828
</MenuSection>
829+
<MenuSection>
830+
<h1>SUPER EDITOR EFFECTS</h1>
831+
<MenuItem onClick={() => this.handleClickMode()}>
832+
Disable effects
833+
</MenuItem>
834+
<MenuItem onClick={() => this.handleClickMode('night')}>
835+
Night light
836+
</MenuItem>
837+
<MenuItem onClick={() => this.handleClickMode('blur')}>
838+
JeremyGamer13's eyesight
839+
</MenuItem>
840+
<MenuItem onClick={() => this.handleClickMode('comic')}>
841+
Comicbook
842+
</MenuItem>
843+
<MenuItem onClick={() => this.handleClickMode('upsidedown')}>
844+
Australia
845+
</MenuItem>
846+
<MenuItem onClick={() => this.handleClickMode('toxic')}>
847+
Radioactive
848+
</MenuItem>
849+
<MenuItem onClick={() => this.handleClickMode('uhd')}>
850+
RTX UHD Graphics
851+
</MenuItem>
852+
</MenuSection>
799853
</MenuBarMenu>
800854
</div>
801855
{this.props.onClickAddonSettings && (

src/containers/dom-element-renderer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class DOMElementRenderer extends React.Component {
2222
this.container.appendChild(this.props.domElement);
2323
}
2424
componentWillUnmount () {
25-
if (this.props.domElement.parentNode !== this.container.childNodes[0]) return console.error('i dont fucking know how to solve this, all i know is the site just fucking keeps dieing with this exact issue');
25+
if (this.props.domElement.parentNode !== this.container.childNodes[0]) return console.error('idk how to solve this, all i know is the site just keeps dieing with this exact issue');
2626
this.container.removeChild(this.props.domElement);
2727
}
2828
setContainer (c) {

src/lib/default-project/README

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
dango.svg is from Twitter's Twemoji (CC BY 4.0 https://creativecommons.org/licenses/by/4.0/)
1+
`dango.svg` is from Twitter's Twemoji (CC BY 4.0 https://creativecommons.org/licenses/by/4.0/)
2+
3+
If `default-project.sb3` is replaced with a non-empty file, it will be used instead of the costumes.
2.91 KB
Binary file not shown.

src/lib/default-project/index.js

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
11
import projectData from './project-data';
22

33
/* eslint-disable import/no-unresolved */
4+
import overrideDefaultProject from '!arraybuffer-loader!./default-project.sb3';
45
import backdrop from '!raw-loader!./cd21514d0531fdffb22204e0ec5ed84a.svg';
56
import costume1 from '!raw-loader!./penguin.svg';
67
/* eslint-enable import/no-unresolved */
7-
import { TextEncoder } from '../tw-text-encoder';
8+
import {TextEncoder} from '../tw-text-encoder';
89

910
const defaultProject = translator => {
10-
const encoder = new TextEncoder();
11+
if (overrideDefaultProject.byteLength > 0) {
12+
return [{
13+
id: 0,
14+
assetType: 'Project',
15+
dataFormat: 'JSON',
16+
data: overrideDefaultProject
17+
}];
18+
}
1119

20+
let _TextEncoder;
21+
if (typeof TextEncoder === 'undefined') {
22+
_TextEncoder = require('text-encoding').TextEncoder;
23+
} else {
24+
_TextEncoder = TextEncoder;
25+
}
26+
const encoder = new _TextEncoder();
1227
const projectJson = projectData(translator);
1328
return [{
1429
id: 0,
@@ -21,11 +36,10 @@ const defaultProject = translator => {
2136
dataFormat: 'SVG',
2237
data: encoder.encode(backdrop)
2338
}, {
24-
id: '592bae6f8bb9c8d88401b54ac431f7b6',
39+
id: 'c434b674f2da18ba13cdfe51dbc05ecc',
2540
assetType: 'ImageVector',
2641
dataFormat: 'SVG',
2742
data: encoder.encode(costume1)
2843
}];
2944
};
30-
31-
export default defaultProject;
45+
export default defaultProject;

src/lib/libraries/extensions/index.jsx

Lines changed: 53 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,58 @@ const menuItems = [
714714
featured: true,
715715
twDeveloper: 'LilyMakesThings'
716716
},
717+
{
718+
name: 'the doo doo extension',
719+
extensionId: 'jgDooDoo',
720+
iconURL: defaultExtensionIcon,
721+
tags: ['penguinmod', 'joke'],
722+
description: 'dr bob eae',
723+
featured: true
724+
},
725+
{
726+
name: 'Christmas',
727+
extensionId: 'jgChristmas',
728+
iconURL: 'https://extensions.penguinmod.com/images/JeremyGamer13/christmas.png',
729+
tags: ['penguinmod', 'joke'],
730+
description: 'hooraye',
731+
featured: true
732+
},
733+
{
734+
name: 'an amazing extension',
735+
extensionId: 'jgBestExtension',
736+
iconURL: 'https://extensions.penguinmod.com/images/JeremyGamer13/epic.png',
737+
internetConnectionRequired: true,
738+
tags: ['penguinmod', 'joke'],
739+
description: 'this is SUCH A GOOD EXTENSION USE IT NOW',
740+
featured: true
741+
},
742+
{
743+
name: 'Epic utilities',
744+
extensionId: 'https://extensions.penguinmod.com/extensions/SharkPool/AprilFools.js',
745+
iconURL: 'https://extensions.penguinmod.com/images/JeremyGamer13/epicutils.png',
746+
tags: ['penguinmod', 'joke'],
747+
description: 'the super good utilities brought to you by todays sponsor sharkpool (the epic utilities)',
748+
featured: true
749+
},
750+
{
751+
name: 'image blocks',
752+
extensionId: 'https://extensions.penguinmod.com/extensions/Ashime/funneimageblocks.js',
753+
iconURL: 'https://extensions.penguinmod.com/images/JeremyGamer13/screenshot1.png',
754+
tags: ['penguinmod', 'joke'],
755+
internetConnectionRequired: true,
756+
description: 'who needs cat blocks when you have penguin block',
757+
extDeveloper: 'Ashimee, 0znzw, CST1229',
758+
featured: true
759+
},
760+
{
761+
name: 'fire in the hole',
762+
extensionId: 'https://extensions.penguinmod.com/extensions/JeremyGamer13/FireInTheHole.js',
763+
iconURL: 'https://library.penguinmod.com/files/emojis/cluelesssmile.png',
764+
tags: ['penguinmod', 'joke'],
765+
internetConnectionRequired: true,
766+
description: 'april fools took too long man this joke is not funny anymore',
767+
featured: true
768+
},
717769
{
718770
name: 'GamePad',
719771
extensionId: 'Gamepad',
@@ -1083,14 +1135,6 @@ if (IsLocal || IsLiveTests) {
10831135
description: 'depracated version of HTML Canvas.',
10841136
featured: true
10851137
},
1086-
{
1087-
name: 'Christmas',
1088-
extensionId: 'jgChristmas',
1089-
iconURL: defaultExtensionIcon,
1090-
tags: ['penguinmod', 'joke'],
1091-
description: 'hooraye',
1092-
featured: true
1093-
},
10941138
{
10951139
name: 'Legacy Files',
10961140
extensionId: 'jgFiles',
@@ -1270,14 +1314,7 @@ if (IsLocal || IsLiveTests) {
12701314
description: 'In development. Do extra things in packaged applications that you can\'t do in the website!',
12711315
featured: true
12721316
},
1273-
{
1274-
name: 'the doo doo extension',
1275-
extensionId: 'jgDooDoo',
1276-
iconURL: defaultExtensionIcon,
1277-
tags: ['penguinmod', 'joke'],
1278-
description: 'dr bob eae',
1279-
featured: true
1280-
},
1317+
12811318
{
12821319
name: 'Inline Blocks',
12831320
extensionId: 'pmInlineBlocks',

static/bloomfilter.svg

Lines changed: 6 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)