From f45a61466178af1ff3a11c91f738171bcba2e414 Mon Sep 17 00:00:00 2001 From: dank_meme01 Date: Tue, 3 Oct 2023 11:14:51 +0200 Subject: [PATCH] add glow to spectate list --- src/ui/popup/spectate_popup.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/popup/spectate_popup.cpp b/src/ui/popup/spectate_popup.cpp index 4fd1843..dab3928 100644 --- a/src/ui/popup/spectate_popup.cpp +++ b/src/ui/popup/spectate_popup.cpp @@ -22,6 +22,7 @@ bool SpectatePopup::setup() { player->updatePlayerFrame(accData.cube, IconType::Cube); player->setColor(GameManager::get()->colorForIdx(accData.color1)); player->setSecondColor(GameManager::get()->colorForIdx(accData.color2)); + player->setGlowOutline(accData.glow); auto cell = SpectateUserCell::create({SPP_LIST_SIZE.width, SPP_CELL_HEIGHT}, accData.name, player, id, this); cells->addObject(cell); @@ -34,6 +35,8 @@ bool SpectatePopup::setup() { selfPlayer->updatePlayerFrame(selfData->cube, IconType::Cube); selfPlayer->setColor(GameManager::get()->colorForIdx(selfData->color1)); selfPlayer->setSecondColor(GameManager::get()->colorForIdx(selfData->color2)); + selfPlayer->setGlowOutline(selfData->glow); + auto selfCell = SpectateUserCell::create({SPP_LIST_SIZE.width, SPP_CELL_HEIGHT}, selfData->name, selfPlayer, 0, this); cells->addObject(selfCell);