Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
add glow to spectate list
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmeme01 committed Oct 3, 2023
1 parent f1514ec commit f45a614
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui/popup/spectate_popup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);

Expand Down

0 comments on commit f45a614

Please sign in to comment.