Commit Graph
88 Commits
Author SHA1 Message Date
Eric Rosenbaum 2dd8c55ba0 update package name for scratch-audio 2017-01-06 10:14:32 -05:00
Eric Rosenbaum 58984a1ec5 instantiate audio engine on stage 2017-01-04 18:35:20 -05:00
Ray Schamp 525623769d Make ...rest syntax consistent. 2016-12-12 11:18:52 -05:00
Ray Schamp 7542f1b549 Give GUIComponent responsibility of children
This will allow the GUIComponent to have control over the layout
2016-12-07 16:44:35 -05:00
Ray Schamp 16fbb64cca Use CSS modules for styles
The inline css method gives us nothing that CSS modules can't give us. This puts the project more in line with the way www works, and makes CSS actually readable.

Using class names gives us full control of the modal styles.
2016-12-07 15:59:07 -05:00
Ray Schamp d139609100 Style pass
Refactor SpriteSelector into "Target Pane" which contains the sprite selector, stage selector, and the buttons for new sprites, costumes and backdrops.
2016-12-06 18:12:57 -05:00
Ray Schamp b29670bc52 Split stage selection from sprites
Add a new stage selection component that displays the stage separately from the sprite list.
2016-12-05 18:01:17 -05:00
Ray Schamp cf85a3b1e8 Reduxify modals 2016-12-05 10:47:58 -05:00
Ray Schamp 3cea22ac8e Fix editingTarget selection 2016-12-05 10:47:24 -05:00
Ray Schamp 24389c30c3 Reduxify sprite selector
In preparation to split the sprites from the stage, start managing the target list state in a single place.
2016-12-02 19:16:19 -05:00
Ray Schamp 865a2916d2 Add custom sprite selector with costume display 2016-12-02 15:22:50 -05:00
Ray Schamp e3b0069487 Refactor libraries to be a part of SpriteSelector 2016-12-02 15:22:50 -05:00
Ray Schamp be82bddd0c Merge pull request #22 from rschamp/feature/flag-glow
Glow flag/stop button when scripts are running
2016-11-28 11:51:28 -05:00
Ray Schamp ad2eb5501a Glow flag/stop button when scripts are running
For now this uses the CSS `filter` property to crudely "highlight" for the active state. This is a temporary solution until we have a real design for the active states.
2016-11-23 16:07:51 -05:00
Ray Schamp 5ebeac684b Fix names of script glow events
These were named inconsistently in scratch-vm
2016-11-23 15:49:29 -05:00
Tim Mickel 05a2c5fa63 Fix string interpolation in costume-library 2016-11-21 13:54:50 -05:00
Ray Schamp 2060cb0b38 Fix lint warnings 2016-11-17 16:06:45 -05:00
Ray Schamp c11500f4dc Remove animationFrame 2016-11-04 13:41:34 -04:00
Ray Schamp 1a23ce5c28 Add green flag and stop icons 2016-10-26 22:48:56 -04:00
Ray Schamp 7ea1e35663 Set up base eslint config in .eslintrc.js
After doing this, new rules began applying for some reason:

`eol-last` only began taking the 'always' parameter as of 3.6.0, so I needed to update eslint.
`no-unused-var` started warning about process.env after updating the config structure
`comma-dangle` decided to start working, maybe because of the upgrade to eslint?  Autofixed with --fix
2016-10-24 17:36:56 -04:00
Ray Schamp 3113f31f46 Add shapeFromPropTypes utility for passed props 2016-10-22 11:44:26 -04:00
Ray Schamp 767721be14 All the rest of the linting 2016-10-22 11:44:23 -04:00
Ray Schamp 7f9d9729c6 Lint: JS -> JSX 2016-10-22 11:07:29 -04:00
Tim Mickel bd22602aa7 Fix the props situation 2016-10-20 13:41:14 -04:00
Tim Mickel 7d36701998 Add defaults for library props 2016-10-20 13:34:06 -04:00
Tim Mickel 7c5cecb67f Return the library item object 2016-10-20 13:32:37 -04:00
Tim Mickel 14afd85197 bindAll throughout 2016-10-20 13:31:48 -04:00
Tim Mickel a6bdf09ba6 Various nits 2016-10-20 13:29:00 -04:00
Tim Mickel 7a675cd82f Merge branch 'master' into feature/libraries
# Conflicts:
#	package.json
#	src/containers/gui.js
2016-10-20 13:10:23 -04:00
Tim Mickel 41c1765242 Initial rough sprite/costume/backdrop libraries 2016-10-19 18:03:42 -04:00
Ray Schamp b1c14cc329 Apply props-passing pattern to all components 2016-10-19 10:23:25 -04:00
Ray Schamp 91e149d51b Allow overriding GUI children 2016-10-19 10:22:06 -04:00
Ray Schamp c1aa2a7e24 Omit projectData from passed props in GUI 2016-10-19 10:21:11 -04:00
Ray Schamp 8e5fe959ff Allow configuration of GUI subcomponent props
So that you can adjust them without redefining the entire GUI.
Also allow adjusting props passed to GUIComponent.
2016-10-19 09:26:30 -04:00
Ray Schamp 5fdfdfd56c Allow Blocks and Stage to provide a default VM
So that it's easier to use these standalone.
2016-10-19 09:25:10 -04:00
Ray Schamp c2b5c10a33 Move animate timer to Stage component
And use instanceOf for the vm prop type
2016-10-17 16:06:57 -04:00
Ray Schamp 68c0adf90b Account for null editingTarget 2016-10-17 13:58:34 -04:00
Ray Schamp fa52102b77 Container/presentation refactor
Move behavior-related components to "containers", leave presentation components in "components".
2016-10-16 20:18:22 -04:00