Skip to content

Borders for part textures#16

Open
CodingMantisUA wants to merge 1 commit into
LunaSquee:masterfrom
CodingMantisUA:part-border-textures
Open

Borders for part textures#16
CodingMantisUA wants to merge 1 commit into
LunaSquee:masterfrom
CodingMantisUA:part-border-textures

Conversation

@CodingMantisUA

Copy link
Copy Markdown
Contributor

Added optional inventory_image property for register_cast and register_pattern parameter object.
Now each part can opt-in to providing ready texture.
General idea: from blank cast/pattern shape of the part is cut out, next border is overlayed. For casts color '#826800' is used to match ingot/gem/lump casts. For pattern I'm cutting out border pixels from blank one and making them darker to stand out. Not sure if I'm matching original borders, but tried to pick pleasing darkening. Color '#A0A0A0' can be altered to change darkening.
Main idea is to decouple part textures from blank cast/pattern ones. To make it easier to add new parts or change blanks textures.
While on the topic, added separate texture for MCL ingots. new API allows it and ingot looks at home in the new ingot cast.
Updated tool station to use part borders as placeholders (instead of blacked out part textures).

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