-
- Downloads
Player mode (#1909)
* Player mode Add isPlayerOnly property on GUI. Move isFullScreen into mode reducer with isPlayerOnly. Full screen needs to be a separate prop so that GUI knows what to show when exiting full-screen (either player-only or full editor). - set `gui-body * {box-sizing: border-box;}` instead of expecting it to be set by the enclosing component/playground, and removed uses of content-box (adjusting sizes as needed) - Added `!isPlayerOnly` to the conditions for draggable sprites - rewrote player example to use player mode.
Showing
- src/components/green-flag/green-flag.css 3 additions, 7 deletionssrc/components/green-flag/green-flag.css
- src/components/gui/gui.css 5 additions, 8 deletionssrc/components/gui/gui.css
- src/components/gui/gui.jsx 16 additions, 30 deletionssrc/components/gui/gui.jsx
- src/components/sprite-info/sprite-info.css 2 additions, 3 deletionssrc/components/sprite-info/sprite-info.css
- src/components/stage-header/stage-header.css 2 additions, 3 deletionssrc/components/stage-header/stage-header.css
- src/components/stage-header/stage-header.jsx 45 additions, 40 deletionssrc/components/stage-header/stage-header.jsx
- src/components/stage-wrapper/stage-wrapper.css 14 additions, 0 deletionssrc/components/stage-wrapper/stage-wrapper.css
- src/components/stage-wrapper/stage-wrapper.jsx 47 additions, 0 deletionssrc/components/stage-wrapper/stage-wrapper.jsx
- src/components/stop-all/stop-all.css 2 additions, 3 deletionssrc/components/stop-all/stop-all.css
- src/containers/stage-header.jsx 6 additions, 3 deletionssrc/containers/stage-header.jsx
- src/containers/stage-wrapper.jsx 13 additions, 0 deletionssrc/containers/stage-wrapper.jsx
- src/containers/stage.jsx 3 additions, 3 deletionssrc/containers/stage.jsx
- src/lib/app-state-hoc.jsx 34 additions, 12 deletionssrc/lib/app-state-hoc.jsx
- src/lib/storage.js 1 addition, 1 deletionsrc/lib/storage.js
- src/playground/player.css 6 additions, 3 deletionssrc/playground/player.css
- src/playground/player.jsx 15 additions, 63 deletionssrc/playground/player.jsx
- src/reducers/gui.js 2 additions, 0 deletionssrc/reducers/gui.js
- src/reducers/mode.js 45 additions, 0 deletionssrc/reducers/mode.js
- src/reducers/stage-size.js 0 additions, 19 deletionssrc/reducers/stage-size.js
Loading
Please register or sign in to comment