some more names for debugging
This commit is contained in:
@@ -57,7 +57,7 @@ pub fn plugin(app: &mut App) {
|
||||
fn setup(mut commands: Commands, assets: Res<UIAssets>) {
|
||||
commands
|
||||
.spawn((
|
||||
Name::new("backpack"),
|
||||
Name::new("backpack-ui"),
|
||||
BackpackMarker,
|
||||
Visibility::Hidden,
|
||||
Node {
|
||||
|
||||
@@ -60,6 +60,7 @@ fn update_ui(
|
||||
|
||||
fn setup(mut commands: Commands, assets: Res<UIAssets>) {
|
||||
commands.spawn((
|
||||
Name::new("cash-ui"),
|
||||
Text::new("0"),
|
||||
CashText,
|
||||
TextFont {
|
||||
|
||||
@@ -37,13 +37,16 @@ pub fn plugin(app: &mut App) {
|
||||
|
||||
fn setup(mut commands: Commands, assets: Res<UIAssets>) {
|
||||
commands
|
||||
.spawn(Node {
|
||||
.spawn((
|
||||
Name::new("heads-ui"),
|
||||
Node {
|
||||
position_type: PositionType::Absolute,
|
||||
bottom: Val::Px(20.0),
|
||||
right: Val::Px(20.0),
|
||||
height: Val::Px(74.0),
|
||||
..default()
|
||||
})
|
||||
},
|
||||
))
|
||||
.with_children(|parent| {
|
||||
for i in 0..HEAD_SLOTS {
|
||||
spawn_head_ui(
|
||||
|
||||
@@ -201,6 +201,7 @@ fn steam_system(steam_client: Res<SteamworksClient>) {
|
||||
|
||||
fn music(assets: Res<AudioAssets>, mut commands: Commands) {
|
||||
commands.spawn((
|
||||
Name::new("sfx-music"),
|
||||
AudioPlayer::new(assets.music.clone()),
|
||||
PlaybackSettings {
|
||||
mode: PlaybackMode::Loop,
|
||||
@@ -210,6 +211,7 @@ fn music(assets: Res<AudioAssets>, mut commands: Commands) {
|
||||
));
|
||||
|
||||
commands.spawn((
|
||||
Name::new("sfx-ambient"),
|
||||
AudioPlayer::new(assets.ambient.clone()),
|
||||
PlaybackSettings {
|
||||
mode: PlaybackMode::Loop,
|
||||
|
||||
@@ -68,6 +68,7 @@ fn spawn_sounds(
|
||||
};
|
||||
|
||||
commands.spawn((
|
||||
Name::new("sfx"),
|
||||
AudioPlayer::new(source),
|
||||
PlaybackSettings {
|
||||
mode: bevy::audio::PlaybackMode::Despawn,
|
||||
|
||||
Reference in New Issue
Block a user