Michał Moskal
c5cec3a6ba
update to pxt 5 and pxt-common-packages 6 ( #934 )
...
* bump pxt
* fix build issues
* Auto-gen of projects/summary
* removing feild editors moved to pxt
* various typing fixes
* more typing fixes
* fixing various typing issues
* Start on integration of new pxt
* serial number fixes
* gc-ify MMap object
* Re-build generated files
* fix console listeners
* clear lf() warnings
* More generated files
* also auto-generated
* Compilation fixes
* fix merge
* mostly fixing blocks
* fix sim
* fix field motors
* enable a few features
* moving to tsx
* try to fix edtiro compilation
* more defs
* removing commands
* removing extra $
* fix blockly warning
* hiding images
* enabling more pxt features
* hide images
* setup autorun
* add lock on target_reset
* update deps
* return trylock result
* updated pxt
* rename video section
* add alpha channel
* upgraded pxt
* bump pxt/version
* removed alpha ref
* var ceanup
* don't do major bump
2019-10-08 21:57:55 -07:00
Sam El-Husseini
f0df0222c0
Fixes for High contrast mode as per lego design. Most changes are in PXT. Adding high contrast theme in the simulator ( #564 )
2018-05-04 10:36:48 -07:00
Sam El-Husseini
84990d66a9
Update simulator as per latest lego UI design for sensors. Fix full screen layout issues. ( #554 )
2018-05-02 13:58:59 -07:00
Sam El-Husseini
3c96cfcc0a
Change to always show the sensor controls. ( #526 )
2018-04-16 11:50:12 -07:00
Sam El-Husseini
3e534f7329
Update state of the landscape brick view as well to be consistent with the portrait view (main) ( #508 )
2018-04-13 14:01:37 -07:00
Sam El-Husseini
379a6a26be
Add large and medium motor speed labels ( #480 )
...
* Add large and medium motor speed labels
* Support dual motor labels.
2018-04-10 11:50:58 -07:00
Sam El-Husseini
ac1380ec92
Better screen zoom that makes use of the full width of the simulator. ( #471 )
2018-04-09 16:21:41 -07:00
Sam El-Husseini
0dc2548d0b
Optimize simulator for light mode. ( #379 )
...
* Optimize simulator for light mode.
* Add user-select none.
2018-03-28 13:36:52 -07:00
Sam El-Husseini
49dc3b0a75
Fix resizing of screen canvas to ensure it fits within the area in the ev3 svg ( #365 )
2018-03-08 14:34:27 -08:00
Michał Moskal
c2d26a8418
Integrate screen APIs from common packages ( #343 )
...
* starting screen api intergration
* Further image integration
* Aligning with new screen apis
* Build fixes
* Adjust to common screen state
* Fix unpackPNG
* Add game library
* Optimize screen rendering
* bumping common packages
* updated shims
* moving images into ev3
* upgrading to common packages
* added try/use
* cap
* fixed tryp age
2018-02-26 15:16:17 -08:00
Sam El-Husseini
a2218d9ba5
Fix canvas (screen) user select options to disable selection in Safari, Mozilla, etc. ( #348 )
2018-02-26 13:58:51 -08:00
Peli de Halleux
22c31c57df
fix port bug
2018-02-02 14:19:07 -08:00
Peli de Halleux
ba47fb0589
Support for remote control buttons ( #300 )
...
* refactor beacon function inside IR sensor
* towards sim support
* channel labels
* reverting to singletons
* hiding unused apis
* lazy allocation of button instances
* tracking button state
* hook up the state
2018-02-02 09:48:27 -08:00
Peli de Halleux
89a82b54dc
Ir proximity in simulator ( #299 )
...
* support for IR proximity
* fixing build issue
* missing break
* remove auto-start of sensor
* setting mode on onEvent
* flooring slider value
* bump up proximity
* fixing threshold blocks
2018-02-01 22:03:01 -08:00
Peli de Halleux
a0907e7229
fixing button down issues on touch/mouse ( #294 )
2018-01-31 14:21:17 -08:00
Peli de Halleux
fcf91caeb4
Zoom screen ( #285 )
...
* always start with full brick layout
* adding 'on start' to template
* render entire board when selected
* zoom brick when clicking on screen
* resize when zooming
* toggle zooming of the brick
* inject close icon when selected
* fix toggling
2018-01-30 22:22:21 -08:00
Sam El-Husseini
aa8635c4e7
Always use the motor slider control
2018-01-10 10:00:48 -08:00
Sam El-Husseini
4e4f5495da
Merge branch 'master' into motorslider
2018-01-10 09:56:59 -08:00
Sam El-Husseini
9890f2340a
Add no-drag class and set on synced motor labels. Fixes #213 ( #221 )
2018-01-09 12:04:37 -08:00
Sam El-Husseini
3c4c38eb59
Fix null dereferencing issue. Fix sensor mode changed not clearing cached control.
2018-01-02 22:22:14 -08:00
Sam El-Husseini
16b9a5027d
Add rotate icons
2017-12-29 11:39:06 -08:00
Sam El-Husseini
cbe68b3199
Add motor slider control
2017-12-28 13:23:30 -08:00
Sam El-Husseini
f30eac41e9
Persist selected state of controls across simulator restarts
2017-12-28 11:17:18 -08:00
Peli de Halleux
01f7fe633c
Motorworks2 ( #141 )
...
* fixing polarity
* allocate motor on motorUsed only
* perform sub-step integration step for better precision
2017-12-28 09:07:57 -08:00
Sam El-Husseini
a9a9a89811
Better fonts and better alignment of motor reporter control
2017-12-27 20:43:39 -08:00
Sam El-Husseini
2fb75a2d83
Added todo
2017-12-27 17:07:50 -08:00
Sam El-Husseini
0da175a8cd
Add motor reporter control
2017-12-27 17:06:23 -08:00
Sam El-Husseini
8be4bb11d8
Fix resizing in controls to work for all sizes including full screen
2017-12-27 16:30:42 -08:00
Sam El-Husseini
0aa41e9a64
Fix resizing flickering issue, remove flip animation on start, remove the need for a default height and width in the layout engine
2017-12-24 11:59:01 -08:00
Sam El-Husseini
180f32f25c
Simulator refactoring to support better resizing of modules and controls
2017-12-22 14:00:23 -08:00
Sam El-Husseini
ac1e5d2846
Remove constant resize
2017-12-19 21:20:06 -08:00
Sam El-Husseini
11b4bbc07e
Fix controls
2017-12-19 17:20:01 -08:00
Peli de Halleux
9cca35d49f
encoding 32bit angle into data buffer
2017-12-19 16:54:44 -08:00
Peli de Halleux
aa031036ee
updating motor state in game loop
2017-12-19 16:03:26 -08:00
Sam El-Husseini
ef5fa9ae82
Minor fix to killing the animation when the sim is killed
2017-12-19 14:55:43 -08:00
Sam El-Husseini
2157af3e63
Using game loop instead of queueAnimationUpdate
2017-12-19 14:20:35 -08:00
Sam El-Husseini
785ddff706
Reverting screen optimization to use SetInterval and didChange
2017-12-19 12:53:12 -08:00
Sam El-Husseini
e6e1dce59f
Add tiny padding around the screen for the canvas.
2017-12-18 17:07:23 -08:00
Sam El-Husseini
84c1079e50
Fix Safari bug.
2017-12-18 13:19:49 -08:00
Sam El-Husseini
6320379d02
Initial sim implementation
2017-12-18 13:04:17 -08:00
Peli de Halleux
8fa6cf41ca
updated build files
2017-10-23 13:43:59 -07:00
Michal Moskal
0dfde3b65f
Implement text/icon methods in simulator
2017-07-13 22:01:39 +02:00
Sam El-Husseini
5ea8048f0c
Limit screen updates to once every 30ms and only if needed.
2017-07-12 12:26:14 +03:00
Sam El-Husseini
8215e8446a
Sim screen canvas implementation and _setPixel.
2017-07-12 10:25:17 +03:00
Sam El-Husseini
b4428b1eef
Update lights orange color
2017-07-11 16:20:19 +03:00
Sam El-Husseini
0ef0fdf69a
Fixed button mappings.
2017-07-11 13:04:01 +03:00
Sam El-Husseini
46c18af461
Initial board SVG and basic simulator
2017-07-11 11:15:17 +03:00