HomeWildfire Games

RangeVisualization component and use it to visualize Aura ranges.


RangeVisualization component and use it to visualize Aura ranges.

Differential Revision: https://code.wildfiregames.com/D238
Fixes #4349
Patch By: Sandarac


Event Timeline

elexis added inline comments.May 27 2017, 10:07 PM

This fixes #4260

elexis added a comment.Jun 6 2017, 3:38 PM

Wasdat? Missing a step in a for-loop?

fatherbushido added inline comments.

Why did you choose to remove that check?


The comment was not so bad

fatherbushido added inline comments.Jun 12 2017, 1:56 PM

uhm I see, as we add the thickness, it won't never be the case

fatherbushido added inline comments.Jun 12 2017, 2:35 PM

Ok we see overlay.m_Closed = true; some lines above

elexis added a comment.Aug 9 2017, 1:34 AM

There is a small GUI bug - if an non-owned entity is selected and captured, the overlay is not shown until selecting the thing again.

mimo raised a concern with this commit.Aug 24 2017, 7:11 PM
mimo added a subscriber: mimo.
mimo added inline comments.

Maybe i missed something, but this GuiInterfaceCall on each turn looks like overkill, especially as now we do it also for heal range, and other cases will certainly be added in the future.

Wouldn't it be better that each time one option is changed in the option panel, the gui receives a notification with the name of the option changed, and takes action accordingly?

This commit now has outstanding concerns.Aug 24 2017, 7:11 PM
elexis added inline comments.Aug 25 2017, 5:34 AM

Don't recall if it's only used for reloading the configuration or whether there was some weird edge case.

Performance cost isn't intense as it just sets one variable, but it's indeed messy to do it in this function.

Only the foremost GUI page gets code exection (so no instant feedback). Should be sufficient to just send a callback (f.e. the aiconfig dialog uses that) informing that the options changed when the options page is closed. Collecting the changes config values seems unneeded atm.

elexis requested verification of this commit.Mar 12 2018, 5:49 AM

That GUIInterface done only on init and when closing the options dialog following rP21527.

This commit now requires verification by auditors.Mar 12 2018, 5:49 AM
mimo accepted this commit.Mar 13 2018, 7:01 PM

ok looks good (although i have not tested it in game)

All concerns with this commit have now been addressed.Mar 13 2018, 7:01 PM
vladislavbelov added inline comments.

This method should be marked as virtual to prevent overloading or missed usage.


It should be TEXTURE_BASE_PATH as all other constants, the current version is less readable.