Opened 6 years ago

Last modified 4 years ago

#5014 new enhancement

Add color player on the panelEntity

Reported by: mimo Owned by:
Priority: Should Have Milestone: Backlog
Component: UI – In-game Keywords:
Cc: Patch:

Description

When playing with combined victory conditions, the panelEntity can become quite crowded (typically n relics and n heroes for a herocide+relics game).

It would be nice (and quite helpful for observers) if the frame of each icon had the player color of the entity's owner (as is done for example on the garrison panel).

Change History (7)

comment:1 by elexis, 6 years ago

Here the first line, we'll need a new GUI object in the background.

Index: binaries/data/mods/public/gui/session/session.js
===================================================================
--- binaries/data/mods/public/gui/session/session.js	(revision 21073)
+++ binaries/data/mods/public/gui/session/session.js	(working copy)
@@ -980,6 +980,7 @@
 			g_PanelEntities.push(panelEnt);
 		}
 
+		panelEnt.sprite = getPlayerHighlightColor(panelEntState.player);
 		panelEnt.tooltip = createPanelEntityTooltip(panelEntState, template);
 		panelEnt.previousHitpoints = panelEnt.currentHitpoints;
 		panelEnt.currentHitpoints = panelEntState.hitpoints;

comment:2 by temple, 6 years ago

Patch: Phab:D1268

comment:3 by elexis, 6 years ago

Keywords: simple removed
Milestone: BacklogAlpha 23
Priority: Nice to HaveShould Have

comment:4 by elexis, 6 years ago

Milestone: Alpha 23Work In Progress

Would be good to have for alpha 23, but needs UnitAI review voluntarism.

comment:5 by Stan, 6 years ago

How does it look ?

comment:6 by Imarok, 5 years ago

Component: UI & SimulationIn-game UI

Move tickets to In-game UI as UI & Simulation got some sub components.

comment:7 by Freagarach, 4 years ago

Milestone: Work In ProgressBacklog
Patch: Phab:D1268
Note: See TracTickets for help on using tickets.