Skip to content

Conversation

SebastianCrow
Copy link

Hi,

I've added a possibility to define background and foreground highlights.
It's also possible to drop highlight at all (by assigning empty function to drawFgHighlight).

Question is: why background highlight? For example, I've found it useful to render drop shadow under hovered entity.

Best Regards

It’s possible now to create custom bg and fg highlight.
No highlight is achievable as well.
@SebastianCrow
Copy link
Author

P.S. Highlight is done by assigning appropriate render functions:
entity.drawBgHighlight = function(ctx) { /* draw in context */ };
// empty function => no highlight; undefined, null => no highlight
entity.drawFgHighlight = function(ctx) { /* draw in context */ };
// empty function => no highlight; undefined, null => default highlight

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