Skip to content
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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WaterKnight
Copy link
Contributor

…terState

The notes are concerning the color of attached effects, the portrait model of units, and that AddSpecialEffectTarget can only be used on units.

…terState

The notes are concerning the color of attached effects, the portrait model of units, and that AddSpecialEffectTarget can only be used on units.
Copy link
Collaborator

@Luashine Luashine left a 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 ❤️

Comment on lines +13503 to +13505
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).
Copy link
Collaborator

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
Copy link
Collaborator

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

Comment on lines +13507 to +13511
@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.
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants