DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

d3d01bcdc5c9c99b58c364564a3549a24b4f11af — Jonni Liljamo 1 year, 7 months ago 06d3c82
feat(client): show card short details
1 files changed, 15 insertions(+), 0 deletions(-)

M client/src/plugins/game/card/mod.rs
M client/src/plugins/game/card/mod.rs => client/src/plugins/game/card/mod.rs +15 -0
@@ 192,6 192,21 @@ fn on_spawn_card(
                transform: Transform::from_xyz(0.2, -0.575, 0.),
                ..Default::default()
            });

            parent.spawn(TextMeshBundle {
                text_mesh: TextMesh {
                    text: card.card.short_details.join("\n"),
                    style: TextMeshStyle {
                        font: card_data.font_normal.clone(),
                        font_size: SizeUnit::NonStandard(4.),
                        color: Color::rgb(1., 1., 1.),
                        ..Default::default()
                    },
                    ..Default::default()
                },
                transform: Transform::from_xyz(-0.25, 0.075, 0.),
                ..Default::default()
            });
        });
    }
}