Ivan Wang
3e497794de
Only drag sprites when mousedown starts on the sprite
2017-04-11 17:41:18 -07:00
Paul Kaplan
23820f98fc
Fix audio image in sounds tab
2017-04-05 10:03:21 -04:00
Ray Schamp
46c10d1591
Fix costume loading in sprite info pane and costumes tab ( #290 )
...
* Fix costume loading in sprite info pane
Requires LLK/scratch-vm#517
* Fix costume loading in costumes tab
Requires LLK/scratch-vm#517
2017-04-04 12:47:38 -04:00
Paul Kaplan
13ef8aa229
Merge pull request #293 from paulkaplan/fix-sound-library-loader
...
Use decodeSound and scratch storage for loading sounds
2017-04-04 10:01:23 -04:00
Paul Kaplan
3235de8054
Use decodeSound and scratch storage for loading sounds
2017-04-03 13:39:25 -04:00
Paul Kaplan
fb0febad03
Use backdrop library in costume tab
2017-03-31 14:01:44 -04:00
Paul Kaplan
d0f8d9a990
Merge pull request #282 from paulkaplan/fix-costume-backdrop-loading
...
Fix backdrop and costume loading from libraries
2017-03-31 12:52:14 -04:00
Paul Kaplan
7b2166fb4a
Include default bitmap resolution as required by the vm
2017-03-31 12:36:18 -04:00
Paul Kaplan
dcaec8edbd
Merge pull request #283 from paulkaplan/required-prop-types
...
Stricter PropType validation
2017-03-28 12:04:36 -04:00
Paul Kaplan
402f85ef91
Add isRequired to required prop types
2017-03-28 10:19:00 -04:00
Paul Kaplan
32d0ba403a
Use new addCostume API
2017-03-27 15:05:28 -04:00
Paul Kaplan
7ad841d2ac
Change on to addListener
2017-03-27 10:07:26 -04:00
Paul Kaplan
4b38eb1d7b
Change #off to #removeListener
2017-03-27 10:07:26 -04:00
Chris Willis-Ford
47d6cf7441
Merge pull request #261 from cwillisf/use-storage
...
Use scratch-storage
2017-03-23 22:13:59 -07:00
Christopher Willis-Ford
2be8205aee
Move scratch-storage init/attach to vmListenerHOC
...
Attaching the storage module in `vmListenerHOC` means it can propagate
down to the GUI, stage, and blocks naturally. The default VM property
value has been removed from those places so that we're not instantiating
extra VM instances any more. Instead, using one of those components
outside of the `vmListenerHOC` framework will require providing a VM
instance as a property.
2017-03-23 11:58:07 -07:00
Paul Kaplan
e271eed992
Remove unused sound callback
2017-03-23 10:18:15 -04:00
Paul Kaplan
9e9a4f44e9
Fix proptype validation
2017-03-23 09:46:32 -04:00
Paul Kaplan
78f48dd3ec
Use container for selector to handle behavioral callbacks
2017-03-23 09:46:32 -04:00
Paul Kaplan
37803aa4d3
Add sound and costume tabs
2017-03-23 09:46:31 -04:00
Christopher Willis-Ford
d79a25aa1e
Move scratch-storage init/attach from stage to GUI
2017-03-22 21:17:14 -07:00
Paul Kaplan
4c23f42196
Add sound library component and action
...
Remove target pane button and actions
Add back putting the sound library in the ui
2017-03-22 15:57:52 -04:00
Christopher Willis-Ford
4f66fbc48b
Create ScratchStorage instance & give it to the VM
...
There are a handful of places where the GUI code could use the storage
module directly; converting those is for a later change.
2017-03-20 15:28:37 -07:00
Andrew Sliwinski
002dbf2f6e
Merge pull request #239 from paulkaplan/simple-blocks-bg-pattern
...
Add simple blocks background pattern
2017-03-13 11:51:18 -04:00
Paul Kaplan
10b1206cc2
Add simple blocks background pattern
2017-03-13 10:29:56 -04:00
Paul Kaplan
3bd97f47e4
Listen to translate and zoom functions and store values based on target id
2017-03-10 10:57:31 -05:00
Ray Schamp
d44db81974
Revert "Filter toolbox to blocks available to the VM" ( #229 )
2017-03-09 14:08:16 -05:00
Paul Kaplan
7f2e977d68
Add unstyled delete button for sprites
2017-03-09 11:16:51 -05:00
Ray Schamp
2eac055009
Buffer sprite info text fields ( #177 )
...
* Buffer sprite info text fields
Changes to the name, x, or y fields should only be sent to the VM when the field is blurred or when enter is pressed.
Still allow updates while the fields are focused, but unchanged.
Fixes #154
* Remove focus from input fields after hitting enter
* Fix prop types for info component and container
2017-03-08 12:53:15 -05:00
Ray Schamp
5647854df9
Implement drag and drop for sprites on the stage ( #159 )
...
* WIP: drag states in stage component
* WIP: Hacky drag canvas
* Update sprite position on drag
Use VM to put sprite into drag state and update the sprite's position while dragging.
Temporarily don't use the drawable data to drag a new canvas, this can happen whne we have somewhere to drag the sprite to.
2017-03-03 10:06:14 -05:00
Ray Schamp
f2592fa783
Lint
2017-03-01 23:23:19 -05:00
Ray Schamp
2ab4589e5b
Manage rotation style from sprite info
2017-03-01 22:41:19 -05:00
Ray Schamp
0084e9a55b
Implement toggling visibility/draggability
...
Refactor sprite info behavior into a container and let it handle the raw events.
TODO: refactor again into redux
2017-03-01 19:15:18 -05:00
Ray Schamp
002835ad6b
Manage visibility and draggability in sprite info
...
Very crude, requires a refactor to allow toggling
2017-03-01 19:12:01 -05:00
Ray Schamp
5b7e3e76ba
Update x/y info
...
For the time being, update the position onChange. Eventually this will update onBlur/on "enter" key
2017-03-01 17:58:36 -05:00
Ray Schamp
53f956a00c
Display/update sprite name in sprite info
2017-03-01 17:58:36 -05:00
Ray Schamp
9b936d51c7
Remove unused onNewCostumeClick prop
2017-03-01 17:57:44 -05:00
Ray Schamp
2b82c0cc44
Filter toolbox to blocks available to the VM
...
Resolves #16
2017-02-28 14:00:09 -05:00
Eric Rosenbaum
13e1a377f3
Merge pull request #77 from ericrosenbaum/sound-menu-update
...
PygmyMarmosetPatch for sound menu updates on workspace update
2017-02-08 14:15:46 -05:00
Eric Rosenbaum
f2cad9c115
Sound menu updates on workspace update
2017-02-08 12:15:34 -05:00
Eric Rosenbaum
861aeb4f6f
Merge pull request #76 from ericrosenbaum/sound-menu
...
Monkeypatch dynamic sound menu into ScratchBlocks
2017-02-07 17:33:08 -05:00
Eric Rosenbaum
c4ae964a3e
monkeypatch dynamic sound menu into scratchblocks
...
/ht @rschamp
2017-02-07 17:23:11 -05:00
Ray Schamp
bd648e3bd5
Implement shouldComponentUpdate on TargetPane
...
Improves performance by comparing sprite info values (rather than object identities), and by excluding irrelevant data from this comparison.
2017-02-03 17:23:18 -05:00
Ray Schamp
6385cb069c
Cache stage bounding box
...
`getBoundingClientRect` forces WebKit to recalculate the layout ("force reflow"), so cache the canvas bounding box rather than getting it on every mouse event.
2017-01-31 10:38:58 -05:00
TheBrokenRail
12b73fb52a
Make Compatibility Mode on By Default
2017-01-30 16:58:37 -05:00
TheBrokenRail
b9dee65a2e
Make Insertion Marker Visible
2017-01-27 19:32:54 -05:00
TheBrokenRail
139a67dd65
Change ScratchBlocks Colors to match concept colors from #1 ( #46 )
...
Change Toolbox Categories to match new design color
2017-01-27 11:00:28 -05:00
Andrew Sliwinski
afb6d1fe7d
Merge pull request #34 from rschamp/static-libraries
...
Improve media library performance
2017-01-17 17:27:55 -05:00
Ray Schamp
58d5286b60
Calculate rotation centers from backdrop library
...
The `info` property seems to refer to the image size, not the rotation center in the backdrop library. So if it exists, halve it to find the center.
Towards #18
2017-01-13 12:52:24 -05:00
Ray Schamp
845076ca18
Replace other libraries with static json
...
Remove MediaLibrary helper since it is now unused
2017-01-12 09:26:57 -05:00
Ray Schamp
26bfe9560f
Static-ify sprite library
2017-01-11 18:58:46 -05:00