Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3180 closed enhancement (fixed)

[PATCH] Visualise auras

Reported by: sanderd17 Owned by: sanderd17
Priority: Should Have Milestone: Alpha 19
Component: Core engine Keywords: patch
Cc: Patch:

Description

The patch added provides a way to visualise auras. When you select an entity with an aura, it will add icons to the affected units (similar to the status bars).

Currently implemented for the temple auras only

Attachments (3)

auravisualisation.diff (9.0 KB ) - added by sanderd17 9 years ago.
heal.png (16.2 KB ) - added by sanderd17 9 years ago.
Place the icon in binaries/data/mods/public/art/textures/ui/session/auras/heal.png
auravisualisation.2.diff (19.7 KB ) - added by sanderd17 9 years ago.

Download all attachments as: .zip

Change History (6)

by sanderd17, 9 years ago

Attachment: auravisualisation.diff added

by sanderd17, 9 years ago

Attachment: heal.png added

Place the icon in binaries/data/mods/public/art/textures/ui/session/auras/heal.png

by sanderd17, 9 years ago

Attachment: auravisualisation.2.diff added

comment:1 by sanderd17, 9 years ago

I cleaned up a lot of the aura code to a newer spiderMonkey version.

No the statusbar saves the entities causing an aura change with an icon. The GuiInterface still saves the entities that currently have status bars, so by intersecting those two sets, you get the icons to be shown.

Apart from that, it's only a matter regenerating the sprites at the right time. So either when selection changes, or when aura application changes.

All functions are made to return as early as possible. So if there are no changes, calculation should be pretty fast.

comment:2 by sanderd17, 9 years ago

Owner: set to sanderd17
Resolution: fixed
Status: newclosed

In 16611:

Visualise auras by adding status icons to affected units. Implement the visualisation for the temple aura. Fixes #3180

comment:3 by sanderd17, 9 years ago

Keywords: review removed
Note: See TracTickets for help on using tickets.