DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

f305e9dc3a466d0a93e9b7c9c6c9c46a5479b7bb — Jonni Liljamo 1 year, 7 months ago d218ec7
fix(client): loop logs, not actions
1 files changed, 1 insertions(+), 3 deletions(-)

M client/src/plugins/game/ui/log.rs
M client/src/plugins/game/ui/log.rs => client/src/plugins/game/ui/log.rs +1 -3
@@ 224,7 224,7 @@ fn update_log(

        let index_spaces = status.actions.len().to_string().len();

        for (i, _action) in status.actions.iter().enumerate() {
        for (i, log) in status.log.iter().enumerate() {
            let spaces = " ".repeat(index_spaces - i.to_string().len());
            let index_text = TextSection {
                value: format!("{}{}. ", spaces, i),


@@ 235,8 235,6 @@ fn update_log(
            };

            let mut sections = vec![index_text];

            let log = status.log.get(i).unwrap();
            for section in &log.sections {
                match section {
                    LogSection::Normal(value) => {