like i have posted before you have to create a new unit info pane using the unit info pane template!! this is an exact copy of what you see selecting a normal unit. if you display it (using triggers to hook it) selecting a hero you will have your weapons shown. moving it over your normal info pane, hero units will be shown as normal units (which might be a drawback).
moving the normal hero info pane and hiding the parts that are shown twice now would require a more complex custom UI but would contain all stuff you want
there is another solution to your weapon show problem:
just create a unit info pane from the template and hide the hero info pane. in order to have attributes and veterancy shown you have to hide only parts of the hero info pane. must be done in layoutfiles.
to your weapon problem, could you post a screenshot of the 2 weapons? (editor-tableview)
hmm.. your unit has X weapons. they only fire all together if the unit is moving. the same weapons do not fire while being stationary?!
ok then the linked cd flag is not the problem.
did you test your weapons one by one? stationary and in motion
Needs triggers to update tooltip (the direct info can be manipulated with the attribute)
Doesn't show additional effects ( Damage : 6 instead of Damage : 1 (+5)) the green +5 won't be possible ( if you add another label with green text right behind the attribute label this could be simulated)
@Freddy2287: Go
just set it to level 0 with triggers?
@DrSuperEvil: Go
unlike wc3 upgrades can be reset too, or set to any level
@Stormahawk: Go
like i have posted before you have to create a new unit info pane using the unit info pane template!! this is an exact copy of what you see selecting a normal unit. if you display it (using triggers to hook it) selecting a hero you will have your weapons shown. moving it over your normal info pane, hero units will be shown as normal units (which might be a drawback).
moving the normal hero info pane and hiding the parts that are shown twice now would require a more complex custom UI but would contain all stuff you want
@Stormahawk: Go
there is another solution to your weapon show problem:
just create a unit info pane from the template and hide the hero info pane. in order to have attributes and veterancy shown you have to hide only parts of the hero info pane. must be done in layoutfiles.
to your weapon problem, could you post a screenshot of the 2 weapons? (editor-tableview)
@Stormahawk: Go
hmm.. your unit has X weapons. they only fire all together if the unit is moving. the same weapons do not fire while being stationary?! ok then the linked cd flag is not the problem. did you test your weapons one by one? stationary and in motion
@Stormahawk: Go
share cooldown flag
@Stormahawk: Go
hello there
if you are not using all 5 attributes a hero can have (at least in the layout files) you can use them to show additional info on the unit and update it with triggers.
http://www.sc2mapster.com/forums/development/gui/62565-unit-info-panel-add-shield-icon-to-hero/
check out the link above, i have added a shield info to hero units.
Drawbacks:
the layout:
<Desc> <Frame type="InfoPaneHero" name="GameUI/UIContainer/ConsoleUIContainer/InfoPanel/InfoPaneHero" file="GameUI"> <Frame type="Label" name="AttributeLabel1"> <Anchor side="Top" relative="$parent/CustomShieldIcon" pos="Min" offset="10"/> <Anchor side="Left" relative="$parent/CustomShieldIcon" pos="Max" offset="10"/> <Style val="@@InfoPaneHeroWeapon_Prot"/> </Frame>
<Frame type="Label" name="AttributeLabel2"> <Anchor side="Top" relative="$parent/CustomAttributeIcon" pos="Min" offset="2"/> <Anchor side="Left" relative="$parent/CustomAttributeIcon" pos="Max" offset="10"/> <Style val="@@InfoPaneHeroWeapon_Prot"/> </Frame>
<Frame type="Image" name="CustomShieldIcon" template="EquipmentIcon/EquipmentIconTemplate"> <Width val="32"/> <Height val="32"/> <Texture val="@@UI/ButtonBorderNormal" layer="1"/> <Anchor side="Top" relative="$parent/ExperienceBar" pos="Max" offset="20"/> <Anchor side="Left" relative="$parent" pos="Mid" offset="10"/> </Frame>
<Frame type="Image" name="CustomAttributeIcon" template="EquipmentIcon/EquipmentIconTemplate"> <Width val="32"/> <Height val="32"/> <Texture val="@@UI/ButtonBorderNormal" layer="1"/> <Anchor side="Top" relative="$parent/CustomShieldIcon" pos="Max" offset="2"/> <Anchor side="Left" relative="$parent" pos="Mid" offset="10"/> </Frame> </Frame> </Desc>