Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#3384 closed enhancement (fixed)

[PATCH] Missing aura visualization on female

Reported by: fabio Owned by: elexis
Priority: Nice to Have Milestone: Alpha 20
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description

  • female don't have aura visualization;
  • it would be nice also to add a generic icon for aura visualization when a template doesn't specify a specific one (easier modding).

Attachments (2)

visualize_female_inspiration_aura_v1.patch (856 bytes ) - added by elexis 9 years ago.
r16611 and r16625 implemented aura visualization. We only need to add this one line to make it work for the female inspiration aura too. Press tab if you want to see it without hovering a specific woman.
InitalProposal.png (29.2 KB ) - added by Stan 9 years ago.
First proposal, made on gimp 2.8 by myself so under CC-BY-SA 3.0

Download all attachments as: .zip

Change History (14)

by elexis, 9 years ago

r16611 and r16625 implemented aura visualization. We only need to add this one line to make it work for the female inspiration aura too. Press tab if you want to see it without hovering a specific woman.

comment:1 by elexis, 9 years ago

Component: Art & AnimationUI & Simulation
Keywords: patch review added
Summary: Missing aura visualization on female[PATCH] Missing aura visualization on female

I'm not sure if it's a good idea to add a placeholder icon as it's not descriptive.

comment:2 by fabio, 9 years ago

The idea for the placeholder icon would also be useful to report the specific icon is missing, so that one can eventually notice and fix it while having a temporary indicator that the aura is working. Something like this: http://imperfectspirituality.com/wp-content/uploads/2011/12/Energy-you-bring-ball-of-light1.jpg Not a big deal anyway.

comment:3 by Stan, 9 years ago

IMHO we could either have that little star above the heads of the units influenced by the female highlight them during a short time while clicking on her

comment:4 by elexis, 9 years ago

Currently, the aura is visualized if you hover the unit that has the aura (e.g. female, temple, hero) or if you press tab (without hovering).

comment:5 by elexis, 9 years ago

Ok the path to the placeholder might be defined in binaries/data/mods/public/simulation/components/Auras.js:

Auras.prototype.GetOverlayIcon = function(name) 
{ 
    return this.template[name].OverlayIcon || ""; 
};

Please provide a transparent image with a GPL compatible license, then we could make that happen I guess. (Not sure if leper, Itms or sanderd17 would object, but I don't mind). The file must be placed in art/textures/ui/session/auras. The existing images there have the size 128x128.

I guess you really want this to be an art ticket :D

comment:6 by Stan, 9 years ago

Well I just want to help

by Stan, 9 years ago

Attachment: InitalProposal.png added

First proposal, made on gimp 2.8 by myself so under CC-BY-SA 3.0

comment:7 by elexis, 9 years ago

By searching for <Auras> in the binaries/data/mods/public/simulation/templates folder, you will see that there are some entities that have auras which we don't really want to see.

For example the following aura should not be visualized:

  • theatron increases the territory radius by 20%

And here some auras for which I'm not sure if they should be visualized:

  • walls give an armor bonus to garrisoned archers
  • heroes make the building they are garrisoned in harder to capture

So I think having a placeholder icon would be wrong, as we can't really define a logic when to display them and when not to.

It is easier to add the icons for the missing auras. I didn't look at all templates, but I think only the heroes (15 of 31 auras) have missing aura icons, for example athen_hero_iphicrates.xml which increases the walk speed of units in his formation. Maybe we can use stan's icon for one of them.

comment:8 by Stan, 9 years ago

  • Maybe we should use my icon as default for heroes then
  • I think it could be nice that the hero building influence be visible.
  • What Icon should be used for the female ? (Which is the aim of the ticket)
Last edited 9 years ago by Stan (previous) (diff)

comment:9 by elexis, 9 years ago

The attached one-liner fixes the issue. If you want more than that, make a new ticket.

comment:10 by Itms, 9 years ago

Milestone: Alpha 19Alpha 20

comment:11 by elexis, 8 years ago

Owner: set to elexis
Resolution: fixed
Status: newclosed

In 17335:

Show icon for the female inspiration aura. Fixes #3384

comment:12 by elexis, 8 years ago

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