Hello again,
Another issue I have with my building selling upgrades for hero custom attributes is the fact that the hotkey and the tooltips don't work properly.
I use a few basic Lua triggers and make the building sell units with the attributes icons.
When the building sells one of the attributes "units", i set the total bonus for this attribute in its dedicated global variable array, that is used by the trigger setting the hero attributes and attributes bonuses (mostly critical strike damage multiplier and attack bonus, the last one decreases attack cooldown automatically as it's a wrapper for agility without armor bonus).
Once again it all works perfectly, but then the hotkey i have set for the units (P for power, D for dexterity and V for velocity attributes) does not show in the unit's tooltip nor work.
Also the sold unit's tooltips are just plain white in spite of their name and tooltip being like "Increase Dexterity by 1".
Any idea how to fix both these issues ?
EDIT : screenshots added to give you a better idea of the issue :
Another issue I have with my building selling upgrades for hero custom attributes is the fact that the hotkey and the tooltips don't work properly.
I use a few basic Lua triggers and make the building sell units with the attributes icons.
When the building sells one of the attributes "units", i set the total bonus for this attribute in its dedicated global variable array, that is used by the trigger setting the hero attributes and attributes bonuses (mostly critical strike damage multiplier and attack bonus, the last one decreases attack cooldown automatically as it's a wrapper for agility without armor bonus).
Once again it all works perfectly, but then the hotkey i have set for the units (P for power, D for dexterity and V for velocity attributes) does not show in the unit's tooltip nor work.
Also the sold unit's tooltips are just plain white in spite of their name and tooltip being like "Increase Dexterity by 1".
Any idea how to fix both these issues ?
EDIT : screenshots added to give you a better idea of the issue :