Facedown cards seeeem to be alright
This commit is contained in:
@@ -90,6 +90,9 @@ fn deck_widget(cards_in_deck: &Vec<card_stuffs::Card>) -> Paragraph<'static> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn card_widget<'a>(card: &'a card_stuffs::Card, top: bool, highlight: bool, select: bool) -> Paragraph<'a> {
|
fn card_widget<'a>(card: &'a card_stuffs::Card, top: bool, highlight: bool, select: bool) -> Paragraph<'a> {
|
||||||
|
if !card.visible {
|
||||||
|
return facedown_card(top);
|
||||||
|
}
|
||||||
|
|
||||||
let card_image = format!(
|
let card_image = format!(
|
||||||
"{value}{suit}
|
"{value}{suit}
|
||||||
|
|||||||
Reference in New Issue
Block a user