From 1ecfecf3066035ce774881c140eaede67a9d0362 Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Tue, 21 Mar 2023 09:33:15 -0400 Subject: [PATCH] Add the current player color to the playing field view model --- kifu/kifu-core/src/ui/playing_field.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kifu/kifu-core/src/ui/playing_field.rs b/kifu/kifu-core/src/ui/playing_field.rs index 3737980..ea97ea5 100644 --- a/kifu/kifu-core/src/ui/playing_field.rs +++ b/kifu/kifu-core/src/ui/playing_field.rs @@ -8,6 +8,7 @@ pub struct PlayingFieldView { pub player_card_white: types::PlayerCardElement, pub chat: types::ChatElement, pub message: types::TextFieldElement, + pub current_player: Color, } pub fn playing_field() -> PlayingFieldView { @@ -50,5 +51,6 @@ pub fn playing_field() -> PlayingFieldView { player_card_white, chat, message, + current_player: Color::White, } }