bevy/crates/bevy_ui/src
Brian Merchant 66f495c44e Cleaning up NodeBundle, and some slight UI module re-organization (#6473)
# Objective

`NodeBundle` contains an `image` field, which can be misleading, because if you do supply an image there, nothing will be shown to screen. You need to use an `ImageBundle` instead.

## Solution

* `image` (`UiImage`) field is removed from `NodeBundle`, 
* extraction stage queries now make an optional query for `UiImage`, if one is not found, use the image handle that is used as a default by `UiImage`: c019a60b39/crates/bevy_ui/src/ui_node.rs (L464)
* touching up docs for `NodeBundle` to help guide what `NodeBundle` should be used for
* renamed `entity.rs` to `node_bundle.rs` as that gives more of a hint regarding the module's purpose
* separating `camera_config` stuff from the pre-made UI node bundles so that `node_bundle.rs` makes more sense as a module name.
2022-11-05 20:48:15 +00:00
..
flex Prepare for upcoming rustlang by fixing upcoming clippy warnings (#6376) 2022-10-26 19:15:15 +00:00
render Cleaning up NodeBundle, and some slight UI module re-organization (#6473) 2022-11-05 20:48:15 +00:00
widget fix nightly clippy warnings (#6395) 2022-10-28 21:03:01 +00:00
camera_config.rs Cleaning up NodeBundle, and some slight UI module re-organization (#6473) 2022-11-05 20:48:15 +00:00
focus.rs Cleaning up NodeBundle, and some slight UI module re-organization (#6473) 2022-11-05 20:48:15 +00:00
geometry.rs Utility methods for Val (#6134) 2022-10-24 14:33:46 +00:00
lib.rs Cleaning up NodeBundle, and some slight UI module re-organization (#6473) 2022-11-05 20:48:15 +00:00
node_bundles.rs Cleaning up NodeBundle, and some slight UI module re-organization (#6473) 2022-11-05 20:48:15 +00:00
stack.rs Add z-index support with a predictable UI stack (#5877) 2022-11-02 22:06:04 +00:00
ui_node.rs Add z-index support with a predictable UI stack (#5877) 2022-11-02 22:06:04 +00:00
update.rs Add z-index support with a predictable UI stack (#5877) 2022-11-02 22:06:04 +00:00