as soon as you add veterancy or an attribute to an unit the info panel changes to infopanehero, which only has a weapon and an armor icon but i would like to have a shield-armor icon too. any ideas how i could add it below the armor icon?
But you can show the equipment panel instead of the icons + labels. You need to use my discovery to achieve that. My example does it the other way around, but you can show the equipmentpanel everywhere, too.
i thought about that too. it's quite easy to create a new info panel with triggers and just anchor it there, BUT i like the heroPanelnfo.
so i am quite far with a workaround already
watch this:
my last problem is to "lift" the text to the top. i am using custom text styles with v-align top but it doesn't work :(
how the workaround works:
i'll add an attribute with the image link in name to the unit. in layoutfiles the attribute anchors are changed to ArmorIcon. the following attribute gets the defaULT anchor of the changed attribute.
i'll keep track of the shield armor and regeneration in a dummydamageeffect and reference it with catalogs in the tooltips. everything that increases the shield armor just has to increase the attribute aswell to be shown correctly.
if no1 comes up with a way to lift the text i'll have to put it on the right side :(
__update___
why does the armor disappear??? it has the same offset as the damage label relativ to its icon.
just for all ppl who will be using the search in the future.
yes it's possible but not data only.
you need an attribute called plasmashield or w/e
Custom layoutfiles adding an image frame to the hero info pane and moving the attribute label to the right place.
on map init you have to hook the image frame and set the image (if it shall look like the others you have to create it yourself) and tooltip with triggers.
the tooltip should have a data reference to an dummy effect value.
now everytime the shieldarmor is changing (only buffs or upgrades possible), which is quite easy to track, you have to set the value of the dummy effect to the armor value.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
hello there
as soon as you add veterancy or an attribute to an unit the info panel changes to infopanehero, which only has a weapon and an armor icon but i would like to have a shield-armor icon too. any ideas how i could add it below the armor icon?
greetings
to clarify what i mean
or is it possible to create an equipmentIcon that is linked to shield armor somehow?
no.
But you can show the equipment panel instead of the icons + labels. You need to use my discovery to achieve that. My example does it the other way around, but you can show the equipmentpanel everywhere, too.
i thought about that too. it's quite easy to create a new info panel with triggers and just anchor it there, BUT i like the heroPanelnfo. so i am quite far with a workaround already watch this:
my last problem is to "lift" the text to the top. i am using custom text styles with v-align top but it doesn't work :(
how the workaround works: i'll add an attribute with the image link in name to the unit. in layoutfiles the attribute anchors are changed to ArmorIcon. the following attribute gets the defaULT anchor of the changed attribute. i'll keep track of the shield armor and regeneration in a dummydamageeffect and reference it with catalogs in the tooltips. everything that increases the shield armor just has to increase the attribute aswell to be shown correctly.
if no1 comes up with a way to lift the text i'll have to put it on the right side :(
__update___ why does the armor disappear??? it has the same offset as the damage label relativ to its icon.
just for all ppl who will be using the search in the future. yes it's possible but not data only.
now everytime the shieldarmor is changing (only buffs or upgrades possible), which is quite easy to track, you have to set the value of the dummy effect to the armor value.