1088 Commits

Author SHA1 Message Date
Adam Barth
0cbd190b3d Merge pull request #832 from Hixie/positioner
Introduce Align widget for aligning children.
2015-08-25 15:37:43 -07:00
Adam Barth
7f0f22abe9 Merge pull request #831 from abarth/track_mimic
Properly track mimics that move in the tree
2015-08-25 15:36:59 -07:00
Hixie
4a2fb5d3e8 Introduce Align widget for aligning children. 2015-08-25 15:35:20 -07:00
Adam Barth
15e8f741fb Properly track mimics that move in the tree
We weren't telling the new mimicable that we wanted to start mimicing it.
2015-08-25 15:33:52 -07:00
Viktor Lidholt
a2286ee7a1 Merge pull request #826 from vlidholt/master
Updates to demo game
2015-08-25 15:33:49 -07:00
Viktor Lidholt
59817111f0 Fixes nits 2015-08-25 15:30:45 -07:00
Eric Seidel
1813170a23 Roll APK versions in preparation for releases
@abarth
2015-08-25 15:12:38 -07:00
Adam Barth
4923f0cd08 Merge pull request #813 from abarth/device_pixel_ratio
Don't freeze devicePixelRatio at startup
2015-08-25 14:55:01 -07:00
Viktor Lidholt
dec2689c07 Adds swarms of enemies to demo game 2015-08-25 14:49:54 -07:00
Viktor Lidholt
dcd17aefd6 Adds constraint for rotating a node towards another node 2015-08-25 14:47:56 -07:00
Viktor Lidholt
dc3159316e Makes the spline tension editable in sprites 2015-08-25 14:45:44 -07:00
Adam Barth
d7ba514546 Fix global key error while using fitness app
We were making local copies of the listener maps, but we were actually
iterating the underlying sets. Now we make local copies of the sets.

Fixes #803
2015-08-25 14:45:18 -07:00
Adam Barth
1883d06aef Fix build
I removed these functions by mistake in my previous patch.
2015-08-25 14:10:32 -07:00
Adam Barth
a733e91b7b Don't freeze devicePixelRatio at startup
When we start, we might not have initialized the devicePixelRatio value. The
value will be initialized by the time we paint, so now we update the value
every time we paint.
2015-08-25 14:06:53 -07:00
Adam Barth
10fe17a994 Merge pull request #809 from abarth/scene_builder
Use sky.SceneBuilder to upload Layer tree to C++
2015-08-25 13:59:52 -07:00
Adam Barth
0e4ac8c12b Use sky.SceneBuilder to upload Layer tree to C++
We still use SkPicture as our rasterization backend, but now we're uploading
our layer tree to C++. A future patch will push the layer tree deeper into the
system and we'll eventually switch backends.
2015-08-25 13:41:37 -07:00
Eric Seidel
1c9837630d Make 'save failed' snackbar show up
SnackBar's crash if you fail to provide a showing bool.

I tried to edit it in the framework, but this seemed easier for now.

The snackbar still shows behind the keyboard unfortunately.
https://github.com/domokit/sky_engine/issues/810

@collinjackson
2015-08-25 13:39:27 -07:00
Eric Seidel
19f62a35a9 Move Fitness.app to the latest playfair
@collinjackson
2015-08-25 13:32:28 -07:00
Eric Seidel
5ad78bd3bc Hack around Fitness.app crashing if it can't load data
I'm not sure this is the correct approach, but it
at least mitigates https://github.com/domokit/sky_engine/issues/804
for now.

I also made it not crash if you haven't set a goalWeight.

@collinjackson
2015-08-25 13:09:50 -07:00
Hans Muller
18b78cfafa Enable initializing Scrollable scrollOffset
Added Scrollable named parameter initializeScrollOffset. If unspecified, then the initial value of scrollOffset is 0.0 as before.
2015-08-25 11:03:04 -07:00
Hans Muller
e1933af37e Removed unneeded tabs.dart import, updated tests 2015-08-25 10:24:58 -07:00
Viktor Lidholt
bc62a243f5 Removes old code from demo game 2015-08-25 10:14:26 -07:00
Viktor Lidholt
34e0ef8368 Merge pull request #795 from vlidholt/master
Additions to demo game
2015-08-25 10:04:19 -07:00
Adam Barth
f8cad61b28 Rev pub package 2015-08-25 09:58:46 -07:00
Adam Barth
1fde4bb863 Merge pull request #796 from abarth/fix_tests
Don't divide by zero
2015-08-25 09:58:39 -07:00
Adam Barth
b2de3a705b Don't divide by zero
If there aren't any items, there's no point in computing which items to show.
2015-08-25 09:48:21 -07:00
Hans Muller
aaeaed9be8 done 2015-08-25 09:41:28 -07:00
Viktor Lidholt
af6372fd0e Removes custom joystick code and adds a new moving enemy to demo game 2015-08-25 09:28:58 -07:00
Viktor Lidholt
51715d304f Adds base rotation property to rotate-to-movement constraint 2015-08-25 09:28:58 -07:00
Viktor Lidholt
9fc36fe794 Adds virtual joystick to games library 2015-08-25 09:28:58 -07:00
Ian Hickson
1867b58c40 Merge pull request #792 from Hixie/flex-part3
Add `Row` and `Column` widgets so you don't have to use Flex.
2015-08-25 09:22:40 -07:00
Adam Barth
75633c8ce1 Merge pull request #784 from abarth/rm_epsilon
Remove floating-point errors from ScrollableWidgetList
2015-08-25 09:20:34 -07:00
Adam Barth
c696c21aa5 Remove floating-point errors from ScrollableWidgetList
We now compute which items to show using integers instead of floating point,
avoiding rounding errors.
2015-08-25 09:20:20 -07:00
Viktor Lidholt
465fbbf9f1 Merge pull request #787 from vlidholt/master
Minor code cleanup
2015-08-25 09:16:49 -07:00
Hixie
3d37e78745 Add Row and Column widgets so you don't have to use Flex.
I updated everything in widgets/, but didn't update any examples.
2015-08-24 17:50:37 -07:00
Hixie
14f3f58cd9 Make Flex shrink-wrap when unconstrained. 2015-08-24 17:34:44 -07:00
Ian Fischer
fe7e39b23c Add documentation for using sky_tool listen. 2015-08-24 16:46:01 -07:00
Viktor Lidholt
119a652d17 Minor code cleanup 2015-08-24 16:41:05 -07:00
Viktor Lidholt
acccd438e5 Merge pull request #785 from vlidholt/new_game
New demo game
2015-08-24 16:32:39 -07:00
Ian Fischer
97b432db9f Merge pull request #786 from iansf/minor_cleanup
Minor cleanup in sky_tool
2015-08-24 16:31:03 -07:00
Ian Fischer
3897ebfcfe Minor cleanup of paths and quotes. 2015-08-24 16:29:20 -07:00
Hixie
670f3cd7c9 Track the last component to build
...rather than the stack trace at the time the RenderObjectWrapper updates the RenderObject.

Also, hide some of the debug-only fields behind "debug" prefixes and assert()s.
2015-08-24 16:17:50 -07:00
Viktor Lidholt
840dfae937 Adds support for spline actions and constraints on nodes 2015-08-24 16:08:23 -07:00
Viktor Lidholt
a78370fe9c New game demo, initial version 2015-08-24 16:07:25 -07:00
Ian Hickson
1393b4c6b0 Merge pull request #781 from Hixie/better-exceptions
Better exception handling for rendering library.
2015-08-24 15:55:55 -07:00
Ian Fischer
a41825619b Merge pull request #761 from iansf/fix_linux
Fix sky_tool listen on linux.
2015-08-24 15:53:09 -07:00
Hixie
d99641dd85 Better exception handling for rendering library.
- Catch exceptions closer to the source.
- Factor out exception printing code.
- Have widget library hand the rendering library some context when syncing RenderObjectWrappers to aid with debugging.
- Fix a bug in flex.dart whereby _overflow was compared when null.
2015-08-24 15:13:04 -07:00
Adam Barth
d35d580cdb Merge pull request #780 from abarth/mimic_improvements
Mimic should track Mimicable more completely
2015-08-24 15:11:34 -07:00
Adam Barth
7077b1b3d0 Mimic should track Mimicable more completely
We now have Mimic tracking Mimicable through tree structure changes and while
moving around the screen.

Fixes #751 and #756
2015-08-24 15:11:18 -07:00
Collin Jackson
9bc23d722e Prevent the fitness app from asserting when there’s no data yet 2015-08-24 14:23:26 -07:00