-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add notes to AddSpecialEffectTarget, SetUnitColor and SetAllyColorFil… #141
base: master
Are you sure you want to change the base?
Conversation
…terState The notes are concerning the color of attached effects, the portrait model of units, and that AddSpecialEffectTarget can only be used on units.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I applaud your deep testing. It's great that you have more understanding of mechanics than I do ❤️
portrait model, it won't restart the animation, either). The portrait model can be updated by deselect the unit, switching | ||
to another unit of a differet type or of a different player. Another option is to call `SetUnitColor` on the unit that is | ||
showing its portrait model or using `SetAllyColorFilterState` (see `SetAllyColorFilterState` for specifics). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe a double new line before "The portrait model"? The paragraph is quite long and that sentence begins to describe one of two workarounds.
Double new line because of markdown interpretation
will not change the portrait color. The portrait will only update correctly if you | ||
deselect the unit. | ||
will not change the portrait color (switching to a unit of the same type and player will not do a re-render of the | ||
portrait model, it won't restart the animation, either). The portrait model can be updated by deselect the unit, switching |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by deselect the unit
-> by deselecting the unit
@note If the unit being re-colored is the one currently showing its portrait model in the user interface, | ||
it will correctly re-color the portrait model. | ||
|
||
@note If the unit being re-colored is the one currently showing its portrait model in the user interface, | ||
the portrait model will be forced to update and restart its animation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these two can be collapsed into one note, right? Not just for repetition's sake, I have seen the Notepad++ auto-completion screenshot by @Leyki
, the longer descriptions of ours fill the entire 1080p screen
…terState
The notes are concerning the color of attached effects, the portrait model of units, and that AddSpecialEffectTarget can only be used on units.