Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
e9a2c45
Update looks.js
SharkPool-SP Feb 22, 2024
5ccb63b
Update looks.js
SharkPool-SP Feb 22, 2024
04405ef
Update looks.js
SharkPool-SP Feb 22, 2024
46ebc29
Update default_toolbox.js
SharkPool-SP Feb 22, 2024
b02a3e5
Update default_toolbox.js
JeremyGamer13 Feb 22, 2024
d0c7eba
m
JeremyGamer13 Feb 23, 2024
c5a6b3b
logged in? boolean
JeremyGamer13 Feb 24, 2024
2964bbd
(still not done) translation scripts
JeremyGamer13 Feb 25, 2024
f04134b
update PM translation scripts
JeremyGamer13 Mar 25, 2024
28f3df4
try catch blocks
JeremyGamer13 Apr 14, 2024
40938b5
smeeola update for default blok
RedMan13 Apr 19, 2024
3707e42
one day, blockly, there will be a very very very old and tired man wh…
RedMan13 Apr 19, 2024
16cd499
well ewrm that wont work
RedMan13 Apr 19, 2024
7228ed6
that might be it?
RedMan13 Apr 19, 2024
b36836c
blud just work please
RedMan13 Apr 19, 2024
12d93ae
bru
RedMan13 Apr 19, 2024
2cae873
haha epic fail
RedMan13 Apr 19, 2024
f43bba7
bleh
RedMan13 Apr 19, 2024
710fc2b
so like that value is needed for other things
RedMan13 Apr 19, 2024
123d620
Revert "so like that value is needed for other things"
JeremyGamer13 Apr 19, 2024
82402bf
Revert "bleh"
JeremyGamer13 Apr 19, 2024
950c167
Revert "haha epic fail"
JeremyGamer13 Apr 19, 2024
cb05440
Revert "bru"
JeremyGamer13 Apr 19, 2024
b5d4b1d
Revert "blud just work please"
JeremyGamer13 Apr 19, 2024
11bb7bc
Revert "that might be it?"
JeremyGamer13 Apr 19, 2024
784e552
Revert "well ewrm that wont work"
JeremyGamer13 Apr 19, 2024
6480d2e
Revert "one day, blockly, there will be a very very very old and tire…
JeremyGamer13 Apr 19, 2024
ebe6579
Revert "smeeola update for default blok"
JeremyGamer13 Apr 19, 2024
799e764
Update block.js (opaque extension blocks)
SharkPool-SP Apr 20, 2024
dece783
toolbox.js -- merge some TW stuff
SharkPool-SP Apr 20, 2024
bd2c51f
data_category.js fix a spacing thing that wasn't merged
SharkPool-SP Apr 20, 2024
f08d18d
Update procedures.js
SharkPool-SP Apr 20, 2024
9f6a13e
erm WHAT the ***SCALOP***
RedMan13 Jun 4, 2024
5f12e9e
stop logging color stuff pleas
JeremyGamer13 Jun 12, 2024
0c67b9c
add canDragDuplicate property
JeremyGamer13 Jun 29, 2024
0fd42a9
cmon no bugs found at all its ready to release
JeremyGamer13 Jun 30, 2024
30ef945
fix duplication issue with the remove extension option
RedMan13 Jul 8, 2024
66eac4a
the foreach arrow update 🔥🔥
Ianyourgod Jul 9, 2024
5bc6ade
toolbox -- Stop THIS fucking 404 error
SharkPool-SP Jul 19, 2024
31a4253
remove tb icon for now
JeremyGamer13 Jul 19, 2024
009fc8a
continue loop
jwklong Jul 25, 2024
8e21491
shift list
jwklong Jul 31, 2024
5585cec
finally
jwklong Jul 31, 2024
2d49450
amount of x in list
jwklong Aug 6, 2024
6ca8b7b
add to toolbox
jwklong Aug 6, 2024
64121c9
i did a whoops
jwklong Aug 6, 2024
a1b026e
filter list block
jwklong Aug 9, 2024
e2fbc79
filter index
jwklong Aug 11, 2024
4ef048b
fix
jwklong Aug 11, 2024
6398e33
new block p3/4
SharkPool-SP Aug 17, 2024
ca4ce2e
Update control.js (tired of this long ahh name)
SharkPool-SP Aug 17, 2024
5c0a71e
Update procedures.js
SharkPool-SP Aug 17, 2024
da20e53
Update procedures.js
SharkPool-SP Aug 18, 2024
be4f4a7
Update procedures.js plz work
SharkPool-SP Aug 18, 2024
803b721
Update procedures.js
SharkPool-SP Aug 18, 2024
036faca
PLEASE WORK
SharkPool-SP Aug 18, 2024
a879b8f
procedures.js -- add shape I forgot
SharkPool-SP Aug 18, 2024
10f8992
fix procedures.js
SharkPool-SP Aug 18, 2024
200a091
Update procedures.js fix
SharkPool-SP Aug 18, 2024
9e368f3
Update procedures.js wizard of oz fix PART 2
SharkPool-SP Aug 18, 2024
baa2f85
remove dat goofy gap
SharkPool-SP Aug 18, 2024
b65cd6a
make reporter custom blocks square shape to prepare for branches
jwklong Sep 9, 2024
375ae39
fix
jwklong Sep 9, 2024
bc16a5e
revert
jwklong Sep 9, 2024
f23796c
i sure hope this works :D
jwklong Sep 9, 2024
80a87a4
remove deprecated code
jwklong Sep 9, 2024
04432e1
blah add this
jwklong Sep 9, 2024
32de9d4
i forgor,,,
jwklong Sep 9, 2024
3d5d2cb
fix command block
jwklong Sep 9, 2024
9cef752
addcommandexternal
jwklong Sep 9, 2024
aa191e3
fix,,,
jwklong Sep 9, 2024
4487ced
this might be the one
jwklong Sep 9, 2024
7067d08
taDA
jwklong Sep 9, 2024
c22cf47
fix..?
jwklong Sep 9, 2024
20db370
i wonder
jwklong Sep 9, 2024
b9ca2e0
is clone block
JeremyGamer13 Oct 27, 2024
4456da6
add monitors to existing blocks in the palette
JeremyGamer13 Oct 27, 2024
6c16a87
no way i forgot draggable
JeremyGamer13 Oct 27, 2024
4545bb9
add () touching clone of ()?
JeremyGamer13 Oct 27, 2024
252ba3f
dual block test
jwklong Oct 27, 2024
2ede3c5
fix dual block connection thing
jwklong Oct 27, 2024
c5d4324
fix?
jwklong Oct 27, 2024
d583091
revert
jwklong Oct 27, 2024
cde5545
what if i didn't do anything
jwklong Oct 27, 2024
fd2abcc
test
jwklong Oct 27, 2024
b21a04d
just revert everythingg
jwklong Oct 27, 2024
250c991
testing new block shapes
jwklong Nov 15, 2024
b10e163
add padding for custom shape
jwklong Nov 15, 2024
964afc8
'Silly me!' ahh
jwklong Nov 15, 2024
7156555
jwklong makes rookie mistake jumpscare
jwklong Nov 15, 2024
7001a4a
swappity swap
jwklong Nov 15, 2024
a30e55a
FIX
jwklong Nov 15, 2024
bdeda86
im just confused
jwklong Nov 15, 2024
1e033c4
fixxx
jwklong Nov 15, 2024
c065e0b
sweep flag
jwklong Nov 15, 2024
912982f
get rid of useless l
jwklong Nov 15, 2024
f8792cb
leaf input
jwklong Nov 15, 2024
f972fdb
test plus shape
jwklong Nov 15, 2024
6957365
paddington
jwklong Nov 15, 2024
55e9dd7
fix
jwklong Nov 15, 2024
e46ed8f
blahhh I HATE NEW LINES
jwklong Nov 15, 2024
77ad755
fix silly mistake
jwklong Nov 15, 2024
d9e33ea
adjust padding
jwklong Nov 16, 2024
96b4b08
custom connection shape
jwklong Nov 16, 2024
bfaa29c
more custom shape
jwklong Nov 16, 2024
f3dd27a
debug
jwklong Nov 16, 2024
567e8fc
no debug
jwklong Nov 16, 2024
49cfa0e
a
jwklong Nov 16, 2024
605a8e2
a
jwklong Nov 16, 2024
bd014ea
test
jwklong Nov 16, 2024
fdecdfe
fix shit
jwklong Nov 16, 2024
8d97014
FIXXX SHITTT
jwklong Nov 16, 2024
659df41
fix block being too big
jwklong Nov 16, 2024
d0cf697
"with with" erm, no
embinmc Nov 18, 2024
f297697
Merge pull request #18 from NotEmbin/patch-1
Ianyourgod Nov 18, 2024
d86c105
replace letters from to and power/root/log blocks
JeremyGamer13 Nov 19, 2024
a00f208
Merge remote-tracking branch 'pm/develop' into merge-upstream
someCatInTheWorld Nov 21, 2024
104ee34
merge-upstream: stuff
someCatInTheWorld Nov 21, 2024
913583b
Update rebuild.yml
someCatInTheWorld Nov 21, 2024
c721fc6
Update rebuild.yml
someCatInTheWorld Nov 21, 2024
658723f
Update rebuild.yml
someCatInTheWorld Nov 21, 2024
7151a72
Update rebuild.yml
someCatInTheWorld Nov 21, 2024
93e0adb
Update rebuild.yml
someCatInTheWorld Nov 21, 2024
573a32a
Update rebuild.yml
someCatInTheWorld Nov 22, 2024
f815268
fix input square shape
jwklong Nov 25, 2024
aa01204
revert
jwklong Nov 25, 2024
d679182
Merge remote-tracking branch 'pm/develop' into merge-upstream
someCatInTheWorld Nov 25, 2024
5431fe2
downgrade ubuntu just to see if that fixes it
jwklong Nov 25, 2024
d1db727
revert since that didn't work
jwklong Nov 25, 2024
b31d5eb
test
someCatInTheWorld Nov 29, 2024
d094526
Update rebuild.yml
someCatInTheWorld Nov 29, 2024
97cfd95
contextmenu.blockcollapseoption
jwklong Dec 8, 2024
d3cf1d9
add collapse option to block context menu
jwklong Dec 8, 2024
92eb613
quick fix
jwklong Dec 8, 2024
d63eebe
fix inputs showing when collapsed
jwklong Dec 8, 2024
2241afa
try this
jwklong Dec 8, 2024
6847269
fix
jwklong Dec 8, 2024
fee61c7
disable collapsed option for now
jwklong Dec 8, 2024
9befb6b
change readme
jwklong Dec 8, 2024
9f18b0a
Merge remote-tracking branch 'pm/develop' into merge-upstream
someCatInTheWorld Dec 8, 2024
4502445
Merge pull request #1 from Snail-IDE/merge-upstream
someCatInTheWorld Dec 9, 2024
06d52f2
mawn whyyyy
RedMan13 Dec 23, 2024
791329c
Merge branch 'develop' of https://github.com/PenguinMod/PenguinMod-Bl…
RedMan13 Dec 23, 2024
41ebcb7
Update rebuild.yml
RedMan13 Dec 23, 2024
893518a
Update rebuild.yml
RedMan13 Dec 23, 2024
c468241
Update rebuild.yml
RedMan13 Dec 23, 2024
dd7acbc
Update rebuild.yml
RedMan13 Dec 23, 2024
e12647f
make input square shape work
jwklong Jan 11, 2025
eec4f33
make input square slightly less wider
jwklong Jan 14, 2025
69a5ef6
idk lol
jwklong Jan 14, 2025
62eb93c
Update rebuild.yml
RedMan13 Jan 15, 2025
d951f02
Update rebuild.yml
RedMan13 Jan 15, 2025
9bf3d3f
Update rebuild.yml
RedMan13 Jan 15, 2025
8de9852
Update rebuild.yml
RedMan13 Jan 15, 2025
72028cc
Update rebuild.yml
RedMan13 Jan 15, 2025
3d7e38f
ok i think i got input shape working
jwklong Jan 15, 2025
35ece53
Merge branch 'develop' of https://github.com/PenguinMod/PenguinMod-Bl…
Jan 25, 2025
25e3b85
Merge branch 'merge-upstream' into merge-upstream
someCatInTheWorld Jan 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
workflow_dispatch:
push:
branches:
- develop
- merge-upstream

jobs:
rebuild:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-node@v3
with:
Expand All @@ -19,7 +19,8 @@ jobs:

- name: Rebuild
run: |
sudo apt install python2-minimal
sudo apt update
sudo apt-get install python2-minimal
npm install
npm run translate

Expand All @@ -44,6 +45,8 @@ jobs:
run: |
rm -rf dist/*
rm -rf media/*
git rm -rf .
echo '{"name":"scratch-blocks","version":"0.1.0","description":"built scratch-blocks files","license":"GPL-3.0","repository":{},"main":"./dist/vertical.js","browser":"./dist/vertical.js","scripts":{},"dependencies":{},"devDependencies":{}}' > ./package.json

- name: Download built-dist
uses: actions/download-artifact@v3.0.1
Expand Down
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"githubPullRequests.ignoredPullRequestBranches": [
"develop"
]
}
111 changes: 110 additions & 1 deletion blocks_vertical/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,69 @@ Blockly.Blocks['control_if_else'] = {
}
};


Blockly.Blocks['control_try_catch'] = {
/**
* Block for try-catch.
* @this Blockly.Block
*/
init: function () {
this.jsonInit({
"type": "control_try_catch",
"message0": "try to do",
"message1": "%1",
"message2": "if a block errors",
"message3": "%1",
"args1": [
{
"type": "input_statement",
"check": 'normal',
"name": "SUBSTACK"
}
],
"args3": [
{
"type": "input_statement",
"check": 'normal',
"name": "SUBSTACK2"
}
],
"category": Blockly.Categories.control,
"extensions": ["colours_control", "shape_statement"]
});
}
};

Blockly.Blocks['control_throw_error'] = {
init: function () {
this.jsonInit({
"message0": 'throw error %1',
"args0": [
{
"type": "input_value",
"name": "ERROR"
}
],
"category": Blockly.Categories.control,
"extensions": ["colours_control", "shape_end"]
});
}
};

Blockly.Blocks['control_error'] = {
/**
* pm: Block to get a try catch error.
* @this Blockly.Block
*/
init: function () {
this.jsonInit({
"message0": "error",
"category": Blockly.Categories.control,
"extensions": ["colours_control", "output_string"]
});
}
};

Blockly.Blocks['control_stop'] = {
/**
* Block for stop all scripts.
Expand Down Expand Up @@ -445,6 +508,8 @@ Blockly.Blocks['control_for_each'] = {
"type": "control_for_each",
"message0": Blockly.Msg.CONTROL_FOREACH,
"message1": "%1",
"message2": "%1",
"lastDummyAlign2": "RIGHT",
"args0": [
{
"type": "field_variable",
Expand All @@ -462,6 +527,16 @@ Blockly.Blocks['control_for_each'] = {
"name": "SUBSTACK"
}
],
"args2": [
{
"type": "field_image",
"src": Blockly.mainWorkspace.options.pathToMedia + "repeat.svg",
"width": 24,
"height": 24,
"alt": "*",
"flip_rtl": true
}
],
"category": Blockly.Categories.control,
"extensions": ["colours_control", "shape_statement"]
});
Expand Down Expand Up @@ -565,6 +640,20 @@ Blockly.Blocks['control_delete_this_clone'] = {
}
};

Blockly.Blocks['control_is_clone'] = {
/**
* pm: Block to check if a sprite is a clone.
* @this Blockly.Block
*/
init: function () {
this.jsonInit({
"message0": "is clone?",
"category": Blockly.Categories.control,
"extensions": ["colours_control", "output_boolean"]
});
}
};

Blockly.Blocks['control_stop_sprite_menu'] = {
/**
* pm: Stop-sprite drop-down menu.
Expand Down Expand Up @@ -828,7 +917,7 @@ Blockly.Blocks["control_if_return_else_return"] = {
init: function() {
this.jsonInit({
"inputsInline": true,
"message0": "if %1 is true %2 is false %3",
"message0": "if %1 then %2 else %3",
"args0": [
{
"type": "input_value",
Expand Down Expand Up @@ -987,6 +1076,26 @@ Blockly.Blocks['control_exitLoop'] = {
}
};

Blockly.Blocks['control_continueLoop'] = {
init: function() {
this.jsonInit({
"message0": 'continue loop %1',
"args0": [
{
"type": "field_image",
"src": Blockly.mainWorkspace.options.pathToMedia + "repeat.svg",
"width": 24,
"height": 24,
"alt": "*",
"flip_rtl": true
}
],
"category": Blockly.Categories.control,
"extensions": ["colours_control", "shape_end"]
});
}
};

Blockly.Blocks['control_javascript_command'] = {
/**
* pm: Block to run javascript code.
Expand Down
100 changes: 100 additions & 0 deletions blocks_vertical/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,31 @@ Blockly.Blocks['data_deletealloflist'] = {
}
};

Blockly.Blocks['data_shiftlist'] = {
/**
* Block to delete all items from list.
* @this Blockly.Block
*/
init: function() {
this.jsonInit({
"message0": "shift %1 by %2",
"args0": [
{
"type": "field_variable",
"name": "LIST",
"variableTypes": [Blockly.LIST_VARIABLE_TYPE]
},
{
"type": "input_value",
"name": "INDEX"
}
],
"category": Blockly.Categories.dataLists,
"extensions": ["colours_data_lists", "shape_statement"]
});
}
};

Blockly.Blocks['data_insertatlist'] = {
/**
* Block to insert item to list.
Expand Down Expand Up @@ -577,6 +602,81 @@ Blockly.Blocks['data_listarray'] = {
}
};

Blockly.Blocks['data_amountinlist'] = {
init: function() {
this.jsonInit({
"message0": 'amount of %1 in %2',
"args0": [
{
"type": "input_value",
"name": "VALUE"
},
{
"type": "field_variable",
"name": "LIST",
"variableTypes": [Blockly.LIST_VARIABLE_TYPE]
}
],
"category": Blockly.Categories.dataLists,
"extensions": ["colours_data_lists", "output_number"]
});
}
};

Blockly.Blocks['data_filterlistitem'] = {
init: function() {
this.jsonInit({
"message0": 'item',
"args0": [],
"category": Blockly.Categories.dataLists,
"extensions": ["colours_data_lists", "output_string"],
"canDragDuplicate": true
});
}
};

Blockly.Blocks['data_filterlistindex'] = {
init: function() {
this.jsonInit({
"message0": 'index',
"args0": [],
"category": Blockly.Categories.dataLists,
"extensions": ["colours_data_lists", "output_string"],
"canDragDuplicate": true
});
}
};

Blockly.Blocks['data_filterlist'] = {
init: function() {
this.jsonInit({
"message0": 'filter %1 by %2 %3 %4',
"args0": [
{
"type": "field_variable",
"name": "LIST",
"variableTypes": [Blockly.LIST_VARIABLE_TYPE]
},
{
"type": "input_value",
"name": "INDEX"
},
{
"type": "input_value",
"name": "ITEM"
},
{
"type": "input_value",
"name": "BOOL",
"check": "Boolean"
}
],
"category": Blockly.Categories.dataLists,
"extensions": ["colours_data_lists", "shape_statement"]
});
}
};

Blockly.Blocks['data_arraylist'] = {
init: function() {
this.jsonInit({
Expand Down
8 changes: 8 additions & 0 deletions blocks_vertical/default_toolbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ goog.require('Blockly.Blocks');

Blockly.Blocks.defaultToolbox = '<xml id="toolbox-categories" style="display: none">' +
'<category name="%{BKY_CATEGORY_MOTION}" id="motion" colour="#4C97FF" secondaryColour="#3373CC">' +
'<block type="motion_movesteps" id="motion_movesteps">' +
'<value name="STEPS">' +
'<shadow type="math_number">' +
'<field name="NUM">10</field>' +
'</shadow>' +
'</value>' +
'</block>' +
'<block type="motion_movesteps" id="motion_movesteps">' +
'<value name="STEPS">' +
'<shadow type="math_number">' +
Expand Down Expand Up @@ -194,6 +201,7 @@ Blockly.Blocks.defaultToolbox = '<xml id="toolbox-categories" style="display: no
'</value>' +
'</block>' +
'<block type="looks_gotofrontback" id="looks_gotofrontback"></block>' +
'<block type="looks_goTargetLayer" id="looks_goTargetLayer"></block>' +
'<block type="looks_goforwardbackwardlayers" id="looks_goforwardbackwardlayers">' +
'<value name="NUM">' +
'<shadow type="math_integer">' +
Expand Down
49 changes: 48 additions & 1 deletion blocks_vertical/live_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,53 @@ Blockly.Blocks['control_fieldcheckboxoriginal'] = {
}
};

Blockly.Blocks['control_testcolorfieldoriginal'] = {
/**
* @this Blockly.Block
*/
init: function () {
this.jsonInit({
"message0": 'color %1',
"args0": [
{
"type": "field_colour",
"colour": "#ff0000",
"name": "COLOR"
}
],
"category": Blockly.Categories.control,
"extensions": ["colours_control", "shape_statement"]
});
}
};

Blockly.Blocks['control_blockduplicatesondrag'] = {
/**
* @this Blockly.Block
*/
init: function () {
this.jsonInit({
"message0": 'duplicate',
"category": Blockly.Categories.control,
"canDragDuplicate": true,
"extensions": ["colours_control", "shape_statement"]
});
}
};

Blockly.Blocks['control_dualblock'] = {
/**
* @this Blockly.Block
*/
init: function () {
this.jsonInit({
"message0": 'dual block',
"category": Blockly.Categories.control,
"extensions": ["colours_control", "shape_statement", "output_string"]
});
}
};

Blockly.Blocks['operators_expandablejoininputs'] = {
/**
* @this Blockly.Block
Expand Down Expand Up @@ -356,4 +403,4 @@ Blockly.Blocks['operators_expandablejoininputs'] = {
'mutation', null, oldMutation, newMutation));
Blockly.Events.setGroup(false);
}
};
};
Loading
Loading