mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 08:00:14 +00:00
feat: color minimap party dots by class instead of uniform blue
This commit is contained in:
parent
f4a31fef2a
commit
b5131b19a3
1 changed files with 10 additions and 3 deletions
|
|
@ -13329,9 +13329,16 @@ void GameScreen::renderMinimapMarkers(game::GameHandler& gameHandler) {
|
|||
float sx = 0.0f, sy = 0.0f;
|
||||
if (!projectToMinimap(memberRender, sx, sy)) continue;
|
||||
|
||||
ImU32 dotColor = (member.guid == leaderGuid)
|
||||
? IM_COL32(255, 210, 0, 235)
|
||||
: IM_COL32(100, 180, 255, 235);
|
||||
ImU32 dotColor;
|
||||
{
|
||||
auto mEnt = gameHandler.getEntityManager().getEntity(member.guid);
|
||||
uint8_t cid = entityClassId(mEnt.get());
|
||||
dotColor = (cid != 0)
|
||||
? classColorU32(cid, 235)
|
||||
: (member.guid == leaderGuid)
|
||||
? IM_COL32(255, 210, 0, 235)
|
||||
: IM_COL32(100, 180, 255, 235);
|
||||
}
|
||||
drawList->AddCircleFilled(ImVec2(sx, sy), 4.0f, dotColor);
|
||||
drawList->AddCircle(ImVec2(sx, sy), 4.0f, IM_COL32(255, 255, 255, 160), 12, 1.0f);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue