Skip to content

Commit

Permalink
Merge pull request #1424 from Kurtsley/rank-tooltip
Browse files Browse the repository at this point in the history
Add rank tooltip to agent profile
  • Loading branch information
FilmBoy84 committed Apr 19, 2024
2 parents 6eed0c4 + ff85a2a commit 6ec9a6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions game/ui/general/agentsheet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ void AgentSheet::displayProfile(const Agent &item, std::vector<sp<Image>> &ranks

profileForm->findControlTyped<Graphic>("SELECTED_RANK")
->setImage(item.type->displayRank ? ranks[(int)item.rank] : nullptr);
profileForm->findControlTyped<Graphic>("SELECTED_RANK")->ToolTipText = item.getRankName();
}

void AgentSheet::displayHistory(const Agent &item)
Expand Down

0 comments on commit 6ec9a6f

Please sign in to comment.