bevy/crates/bevy_ui/src
Carter Anderson 81b53d15d4 Make Commands and World apis consistent (#1703)
Resolves #1253 #1562

This makes the Commands apis consistent with World apis. This moves to a "type state" pattern (like World) where the "current entity" is stored in an `EntityCommands` builder.

In general this tends to cuts down on indentation and line count. It comes at the cost of needing to type `commands` more and adding more semicolons to terminate expressions.

I also added `spawn_bundle` to Commands because this is a common enough operation that I think its worth providing a shorthand.
2021-03-23 00:23:40 +00:00
..
flex Resolve (most) internal system ambiguities (#1606) 2021-03-10 22:37:02 +00:00
render Remove remaining camerapos bindings (#1708) 2021-03-22 18:10:35 +00:00
widget format comments (#1612) 2021-03-11 00:27:30 +00:00
anchors.rs rustfmt changes 2020-07-28 14:24:03 -07:00
entity.rs Resolve (most) internal system ambiguities (#1606) 2021-03-10 22:37:02 +00:00
focus.rs format comments (#1612) 2021-03-11 00:27:30 +00:00
lib.rs Resolve (most) internal system ambiguities (#1606) 2021-03-10 22:37:02 +00:00
margins.rs move bevy crates to their own folder 2020-04-24 17:57:20 -07:00
ui_node.rs Resolve (most) internal system ambiguities (#1606) 2021-03-10 22:37:02 +00:00
update.rs Make Commands and World apis consistent (#1703) 2021-03-23 00:23:40 +00:00