Skip to content

Allow for using define hat shape as a modifier - #462

Open
duckboycool wants to merge 1 commit into
scratchblocks:mainfrom
duckboycool:main
Open

Allow for using define hat shape as a modifier#462
duckboycool wants to merge 1 commit into
scratchblocks:mainfrom
duckboycool:main

Conversation

@duckboycool

Copy link
Copy Markdown

Mentioned in #449

This pull request adds define-hat to the list of override shapes, and modifies draw() to render the blocks without clipping on the top (happens otherwise if you don't have a block inside the define hat) and to show the 2.0 define hat cap with different colors from the custom purple.

Currently, this lacks the ability to make outline blocks like in the normal define block.
It also needs a rework to how the fill color on the cap for 2.0 works. It is currently the same color as the stroke for a category modifier, which might require manually choosing new colors for each category except custom. For rgb color input, it uses a brighter shade of the color for the fill. This doesn't look quite the same as the normal define block by comparison, although there isn't much else you can do for a custom color.

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.

1 participant