Borders for part textures#16
Open
CodingMantisUA wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added optional
inventory_imageproperty forregister_castandregister_patternparameter 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).