Skip to content

Commit

Permalink
using numbered_slices as texture for slice scene
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Mar 3, 2025
1 parent b19dc15 commit 08284b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/testbed/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,13 +450,13 @@ mod slice {

pub fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
commands.spawn((Camera2d, StateScoped(super::Scene::Slice)));
let image = asset_server.load("textures/fantasy_ui_borders/panel-border-010.png");
let image = asset_server.load("textures/fantasy_ui_borders/numbered_slices.png");

let slicer = TextureSlicer {
border: BorderRect::all(22.0),
center_scale_mode: SliceScaleMode::Stretch,
sides_scale_mode: SliceScaleMode::Stretch,
max_corner_scale: 1.0,
border: BorderRect::all(16.0),
center_scale_mode: SliceScaleMode::Tile { stretch_value: 1.0 },
sides_scale_mode: SliceScaleMode::Tile { stretch_value: 1.0 },
..default()
};
commands
.spawn((
Expand Down

0 comments on commit 08284b8

Please sign in to comment.