Commit Graph
2621 Commits
Author SHA1 Message Date
DD 679ddf9fb7 Comment fixes and instantiate textImageElement only as necessary 2018-11-13 15:31:00 -05:00
DD 0b72608624 Remove swp file 2018-11-13 15:09:47 -05:00
DD 5ad193b96e Better comment 2018-11-06 17:51:39 -05:00
DD 1cef52e180 Remove mysterious swp file 2018-11-06 17:43:26 -05:00
DD 3c95b32da0 Rearrange so that if we already have the asset, there's no need to go through promise.all 2018-11-06 17:39:26 -05:00
DD 2a032be1a9 Remove todo 2018-11-06 17:34:07 -05:00
DD 6763355d00 Fix scaling to perform nearest neighbor 2018-11-06 17:22:25 -05:00
DD 2bd468950f Why do our lint rules require such weird formatting 2018-11-06 16:54:41 -05:00
DD 998c5a186e Merge images as part of fetch bitmap 2018-11-06 16:44:17 -05:00
DD e538800293 Merge branch 'pull915' into textLayer 2018-11-06 10:39:43 -05:00
DD 876139847a Merge branch 'develop' into pull915 2018-11-06 10:39:27 -05:00
DD b6b3ca21d7 Load text layer asset 2018-11-06 10:36:52 -05:00
DD 88b6bdd06c Get text assets from zip 2018-11-05 18:07:56 -05:00
DD 86149325b1 Try to make loadCostume more readable, and revert deserializeCostume to changing the costume object directly 2018-11-05 17:11:07 -05:00
Michael "Z" Goddard 692b71a737 Merge pull request #1709 from mzgoddard/cast-to-number
Shortcut Cast.toNumber if given a number
2018-11-02 15:58:15 -04:00
Karishma Chadha d64322a110 Merge pull request #1719 from rschamp/hotfix/sprite-upload-from-image
Handle images uploaded as sprites
2018-11-01 18:18:52 -04:00
Paul Kaplan bb6aa7644b Merge pull request #1718 from paulkaplan/block-id-on-drag-end
Include the original blockId of the top block being dragged.
2018-11-01 15:03:29 -04:00
Ray Schamp 3d06f0e633 Handle images uploaded as sprites
The sprite upload code in GUI serializes asset data, flattening it. We need to rehydrate the asset.
2018-11-01 18:28:54 +00:00
Paul Kaplan 596d0c4f5f Include the origin blockId of the top block being dragged.
This is required by the GUI in order to take a snapshot of the blocks for the backpack. Only the ID is needed, the rest can be done by the GUI.
2018-11-01 14:13:07 -04:00
Karishma Chadha 5593c9ab3e Merge pull request #1711 from kchadha/import-cloud-var-info
Import cloud var info and enforce cloud var limit
2018-11-01 09:46:37 -04:00
Karishma Chadha ffef2e92fc Fix up docs and incorrect initialization of cloud data manager functions. Add 'spec' unit tests that the cloud data manager functions are actually functions. 2018-10-31 19:20:13 -04:00
Katie Broida 5cf10b1af1 Tests to check whether extensions load (#1700) 2018-10-31 17:22:21 -04:00
Michael "Z" Goddard ec414fffc6 use Number.isNaN in Cast.toNumber
Number.isNaN does not coerce and may help performance since we either
do not need to coerce the value or already have with Number.
2018-10-31 14:40:19 -04:00
Karishma Chadha 1df6743a5f Refactor cloud data manager to break out cloud data limit check vs. limit update. 2018-10-31 13:40:05 -04:00
Karishma Chadha d041259473 Fix documentation for local cloud var test 2018-10-30 19:01:16 -04:00
Karishma Chadha a6de046dda Add unit and integration tests for the new functionality. 2018-10-30 18:54:25 -04:00
Karishma Chadha 848deaff30 Track whether a project has cloud data and enforce a cloud data limit on projects being loaded into the runtime. 2018-10-30 18:53:57 -04:00
Katie Broida 6ef600dc2c Add runtime event for when the project is loaded (#1669) 2018-10-30 15:26:22 -04:00
Karishma Chadha fd5e178d3b Merge pull request #1703 from kchadha/cloud-io
Cloud IO
2018-10-30 11:57:20 -04:00
Michael "Z" Goddard 5b10d41ba3 check if toNumber is given a number and shortcut if so
If toNumber is called on a number avoiding passing the number to Number
can provide a small performance improvement.
2018-10-30 11:28:22 -04:00
Karishma Chadha 991d7be7f4 Fix documentation of cloud io device. 2018-10-29 18:31:35 -04:00
Paul Kaplan b245b3868f Merge pull request #1416 from paulkaplan/fix-mouse-down
Make click hats trigger on mouse down instead of up
2018-10-29 15:05:18 -04:00
Karishma Chadha be238d35d2 Merge pull request #1517 from joker314/costume-compatibility
Make "switch costume" and "switch backdrop" blocks compatible with 2.0
2018-10-29 11:39:41 -04:00
Karishma Chadha 96c010b441 Update package-lock file 2018-10-29 01:00:38 -04:00
Karishma Chadha 19b6c35cab Add unit tests for cloud io device 2018-10-29 00:59:24 -04:00
Karishma Chadha aa200e6df3 Set the cloud provider and request updates to the cloud var when updating the variable through blocks. 2018-10-29 00:59:06 -04:00
Karishma Chadha 4959ab9ff3 Create a new cloud io device 2018-10-29 00:58:30 -04:00
Paul Kaplan e002db48f2 Add logic to trigger click hats on mouse up on a draggable target
As long as the event was not a drag
2018-10-25 15:08:37 -04:00
Paul Kaplan 9bf7ef8573 Add unit tests for activating click hats 2018-10-25 14:06:36 -04:00
Paul Kaplan ef50092daa Make when clicked hats trigger on mouse down 2018-10-25 14:06:36 -04:00
Ray Schamp de86eb3f19 Merge pull request #1691 from rschamp/storage-no-cache
Store asset objects on costumes and sounds
2018-10-25 10:15:47 +01:00
Karishma Chadha d3e38c1ae9 Merge pull request #1640 from mzgoddard/set-procedure-param-missing
Set procedure param missing
2018-10-25 00:13:51 -04:00
Katie Broida 18c83dcc67 Prevent non-core extensions from adding monitors (#1688) 2018-10-24 16:43:01 -04:00
Andrew Sliwinski 21923905fe Merge pull request #1685 from LLK/greenkeeper/htmlparser2-3.10.0
Update htmlparser2 to the latest version 🚀
2018-10-24 16:03:40 -04:00
Ray Schamp 902aee48ee Merge branch 'develop' of https://github.com/LLK/scratch-vm into storage-no-cache
# Conflicts:
#	package-lock.json
2018-10-24 12:09:06 +01:00
Ray Schamp 4a0aecfa43 Bump storage to version with createAsset
This should allow tests to begin passing.
2018-10-24 12:01:59 +01:00
Michael "Z" Goddard fcafcbdd0a return 0 from parameters outside of their procedure 2018-10-23 15:14:31 -04:00
Michael "Z" Goddard afd2ed72c8 add procedure parameter used outside of proc integrations 2018-10-23 15:14:31 -04:00
Michael "Z" Goddard 58a7a6bb04 add get param blocks in wrong procedure integrations 2018-10-23 15:14:30 -04:00
Michael "Z" Goddard ef4045aaf1 Merge pull request #1642 from mzgoddard/set-procedure-param-defaults
Set procedure param defaults
2018-10-23 15:13:16 -04:00