Thursday, July 20, 2017

FMod - Foreground highlight fix

Today I stumbled upon yet another small UI glitch in Abiathar. When the foreground highlight is enabled in the advanced tile property overlay settings, the highlight renders perfectly fine, but when edits are made, the highlight doesn't appear on the altered tiles. This is because the tile update handler of the properties render plane sets the graphics compositing mode to source-copy to erase the previous image, but doesn't put it back to source-over. The drawing of the blocking lines removes the foreground highlight.

I adjusted that method to switch back to source-copy after clearing the tile. That fixed the problem.

No comments:

Post a Comment