bevy/examples/ui
ickshonpe 8ac745ab10
UI texture slice texture flipping reimplementation (#15034)
# Objective

Fixes #15032

## Solution

Reimplement support for the `flip_x` and `flip_y` fields.
This doesn't flip the border geometry, I'm not really sure whether that
is desirable or not.
Also fixes a bug that was causing the side and center slices to tile
incorrectly.

### Testing

```
cargo run --example ui_texture_slice_flip_and_tile
```

## Showcase
<img width="787" alt="nearest"
src="https://github.com/user-attachments/assets/bc044bae-1748-42ba-92b5-0500c87264f6">
With tiling need to use nearest filtering to avoid bleeding between the
slices.

---------

Co-authored-by: Jan Hohenheim <jan@hohenheim.ch>
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2024-09-04 19:31:41 +00:00
..
borders.rs remove rounded_borders and merge with borders example (#14317) 2024-07-15 16:54:05 +00:00
button.rs Add with_child to simplify spawning when there will only be one child (#14594) 2024-08-02 15:37:15 +00:00
display_and_visibility.rs
flex_layout.rs
font_atlas_debug.rs
grid.rs
overflow_debug.rs
overflow.rs
relative_cursor_position.rs
render_ui_to_texture.rs Simplify render_to_texture examples (#14855) 2024-08-25 14:15:11 +00:00
size_constraints.rs
text_debug.rs Cosmic text (#10193) 2024-07-04 20:41:08 +00:00
text_wrap_debug.rs Cosmic text (#10193) 2024-07-04 20:41:08 +00:00
text.rs Cosmic text (#10193) 2024-07-04 20:41:08 +00:00
transparency_ui.rs
ui_material.rs
ui_scaling.rs Cosmic text (#10193) 2024-07-04 20:41:08 +00:00
ui_texture_atlas_slice.rs Fix UI texture atlas with offset (#13620) 2024-07-30 15:31:58 +00:00
ui_texture_atlas.rs
ui_texture_slice_flip_and_tile.rs UI texture slice texture flipping reimplementation (#15034) 2024-09-04 19:31:41 +00:00
ui_texture_slice.rs Fix border color in ui_texture_slice and ui_texture_atlas_slice examples. (#14121) 2024-07-03 13:51:44 +00:00
ui.rs
viewport_debug.rs
window_fallthrough.rs Add custom cursors (#14284) 2024-08-12 15:49:03 +00:00
z_index.rs