i put a bus in the pause menu
This commit is contained in:
parent
7dcacb682a
commit
e14aab570b
1 changed files with 14 additions and 0 deletions
|
|
@ -100,6 +100,20 @@ fn setup_pause(
|
||||||
button_font.clone(), // Maybe make bold?
|
button_font.clone(), // Maybe make bold?
|
||||||
RenderLayers::layer(3),
|
RenderLayers::layer(3),
|
||||||
));
|
));
|
||||||
|
let bus_image = assets.load("bus/basicbus.png");
|
||||||
|
ui.spawn((
|
||||||
|
UiLayout::window()
|
||||||
|
.pos((Rl(50.), Rl(5.)))
|
||||||
|
.size(Rl(50.))
|
||||||
|
.anchor(Anchor::TOP_LEFT)
|
||||||
|
.pack(),
|
||||||
|
Sprite {
|
||||||
|
image: bus_image,
|
||||||
|
custom_size: Some(Vec2::new(192., 133.)),
|
||||||
|
..default()
|
||||||
|
},
|
||||||
|
RenderLayers::layer(3),
|
||||||
|
));
|
||||||
ui.spawn((UiLayout::boundary()
|
ui.spawn((UiLayout::boundary()
|
||||||
.pos1((Rl(05.), Rl(30.)))
|
.pos1((Rl(05.), Rl(30.)))
|
||||||
.pos2((Rl(95.), Rl(90.)))
|
.pos2((Rl(95.), Rl(90.)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue