Commit Graph
335 Commits
Author SHA1 Message Date
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
Steven Dale 5350b7abe1 SpriteInfo: Radio Buttons Toggles + Better Classnames (#250)
Fixes #156 + refactored classnames to style guide conventions
2017-03-20 17:37:50 -04:00
Steven Dale 648aebaa45 Made UI elements non-selectable (#234)
Affects SpriteSelector Pane, StageSelector Pane, Stage, MenuBar, Libraries Modal, Add/Import buttons, for Chrome, Ffx + Safari on Sierra.

Fixes #162
2017-03-20 16:26:15 -04: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
TheBrokenRail d7ae5411b0 Fix sprites in drop-down (#94)
* Update blocks.js
2017-03-10 14:26:52 -05:00
Paul Kaplan 81dc9c8c70 Merge pull request #232 from paulkaplan/per-target-workspace-view
Store the scroll/zoom of the workspace on a per-target basis
2017-03-10 11:22:45 -05: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 40eeabdd6b Fix story letter SVGs in the sprite library (#230)
Fixes #220
2017-03-09 15:32:37 -05:00
Ray Schamp d44db81974 Revert "Filter toolbox to blocks available to the VM" (#229) 2017-03-09 14:08:16 -05:00
Ray Schamp 8ae968f350 Update dependencies (#228)
* chore(package): update react-redux to version 5.0.3

https://greenkeeper.io/

* chore(package): update style-loader to version 0.13.2

https://greenkeeper.io/

* chore(package): update react-modal to version 1.7.2

Closes #151

https://greenkeeper.io/

* chore(package): update postcss-loader to version 1.3.3

https://greenkeeper.io/

* chore(package): update babel-loader to version 6.4.0

https://greenkeeper.io/

* chore(package): update css-loader to version 0.26.4

Closes #133

https://greenkeeper.io/

* Trust babel for the future
2017-03-09 11:55:14 -05:00
Paul Kaplan 8767839529 Merge pull request #227 from paulkaplan/sprite-delete-button
Sprite delete button
2017-03-09 11:51:35 -05:00
Paul Kaplan 12d8e1ed07 Satisfy the ravenous hunger of the linter for newb blood 2017-03-09 11:20:15 -05:00
Paul Kaplan 6a2bb3d6ad Show delete button only when sprite is selected 2017-03-09 11:20:15 -05:00
Paul Kaplan a853ddf213 Use shared close button for deleting sprites 2017-03-09 11:20:15 -05:00
Paul Kaplan a28be80b61 Move modal close button to shared component 2017-03-09 11:20:15 -05:00
Paul Kaplan c78bd82469 Fix whitespace in a few places 2017-03-09 11:16:51 -05:00
Paul Kaplan 7f2e977d68 Add unstyled delete button for sprites 2017-03-09 11:16:51 -05:00
Steven Dale 31f3779805 Makes flags non-selectable + clickable (#212) 2017-03-08 17:40:16 -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
Steven Dale 0e56f866e5 TODO: -> @todo: (#213)
Refactored towards better convention for linting.
2017-03-07 17:43:10 -05:00
Eric Rosenbaum 9260a3be5e Merge pull request #218 from ericrosenbaum/feature/sounds-for-letter-sprites
Add sounds to each letter sprite in the library
2017-03-07 14:35:32 -05:00
Eric Rosenbaum 5695afd34f Remove script that modifies json 2017-03-07 14:12:48 -05:00
Eric Rosenbaum da87e74d41 Add some sounds to each letter sprite in the library json 2017-03-07 14:06:43 -05:00
Eric Rosenbaum a97ed1a94d Script to add a set of sounds to each letter sprite in the library 2017-03-07 14:06:17 -05:00
Steven Dale 8556179e8c SpriteInfo - Design pass, updated SVG icons (#155)
SpriteInfo: Design + refactor pass
* Updated SVG icons
* Added tab indexes, related #88. Still no tab on radio buttons
* Removed outline on dropdown focus
* Radio icons: fixed redirecting issue, using `div` instead of `a`. Temporary, until radio buttons. Related #156
* All icons: unselectable to prevent highlighting. Radio icons clickable
* SpriteSelector: fixed bottom padding in scroll wrapper
2017-03-07 11:21:39 -05:00
Steven Dale 702dddbb8d Libraries: Design pass (#160)
* Design pass on libraries to make sprites look more like they do in the SpriteSelector. Fixed scrolling overflow when reaching the bottom
* Started a colors variables file
* Added a light transform on sprite item hover

Related #12
2017-03-06 11:08:04 -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 c0ea247958 Merge pull request #152 from rschamp/wire-sprite-info
Wire sprite info panel to VM
2017-03-02 10:48:50 -05:00
Ray Schamp e0a9f0ea76 Throttle actions coming in from the VM
These aren't necessary to update in realtime, so throttle them to once every 30ms
2017-03-02 10:39:31 -05:00
Ray Schamp f695307d15 Disable all of sprite info at once for perf 2017-03-02 10:37:56 -05:00
Ray Schamp d2edd3aaee Add shouldComponentUpdate to sprite-info for perf 2017-03-01 23:59:24 -05:00
Ray Schamp f2592fa783 Lint 2017-03-01 23:23:19 -05:00
Ray Schamp 4a004d2b3b Disable sprite info fields when stage is selected 2017-03-01 22:58:35 -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
Steven Dale a2700dcbd6 StageArea: fixed space near edge on projects with less than 1 row of sprites (#148) 2017-03-01 17:58:53 -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 4f67a0b7cd Merge pull request #149 from rschamp/remove-onNewCostumeClick
Remove unused onNewCostumeClick prop
2017-03-01 17:58:16 -05:00
Ray Schamp 9b936d51c7 Remove unused onNewCostumeClick prop 2017-03-01 17:57:44 -05:00
Ray Schamp 264f12d067 Merge pull request #147 from rschamp/fix-warnings
Fix no-var warnings
2017-03-01 14:56:34 -05:00
Ray Schamp 30ca4dbce6 Fix no-var warnings 2017-03-01 14:55:35 -05:00
Ray Schamp 9b06b1b651 Merge pull request #146 from thisandagain/bugfix/137
Move letters / numbers to top of the sprite library
2017-03-01 13:11:34 -05:00
Andrew Sliwinski 4c03efa603 Remove errant conditional logic for backdrop / costume modal (#145)
* Remove errant conditional logic for backdrop / costume modal. Resolves GH-100
* Remove unused var. Re GH-100
2017-03-01 13:09:02 -05:00
Andrew Sliwinski 497b2df157 Move letters / numbers to top of the sprite library. Resolves GH-137 2017-03-01 11:28:46 -05:00
Steven Dale 63950a5fdb Stage/Backdrop: Design pass (#134)
* Stage/Backdrop: design pass. Changed how selected state works to keep width of pane from shifting. Switched to fixed pixel width to match design spec
* SpriteSelector: removed flex basis width. Pane grows to expand the empty space, since Stage is now fixed width
* SpriteInfo: updated to correct dropdown values. Updated 2nd row type sizing and radio box border-radius
* SpriteInfo: made labels non-selectable. StageArea: added border
* SpriteSelectorItem: Updating type size to match SpriteInfo
2017-02-28 14:33:32 -05:00
Ray Schamp 6db7c75c5a Merge pull request #135 from rschamp/filter-toolbox
Filter toolbox to blocks available to the VM
2017-02-28 14:00:30 -05:00
Ray Schamp 2b82c0cc44 Filter toolbox to blocks available to the VM
Resolves #16
2017-02-28 14:00:09 -05:00