Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add colour of Resource nodes (A, B) to minimap #89

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

elliotrpage
Copy link

This is a small change so that Resource nodes show up as their own colour on the minimap.

Any questions just let me know!
Resolves #88

@@ -8,12 +8,11 @@ const MATERIAL_ALBEDO_TO_REPLACE_EPSILON = 0.05
resource_a = max(0, value)
if resource_a == 0:
queue_free()

@export var color = Constants.Match.Resources.A.COLOR
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we can drop @export in the case of both resource files - that variable should be as read-only as possible to avoid situations where the color is being changed in runtime

@Scony Scony merged commit b0516a4 into lampe-games:main Dec 12, 2023
1 check failed
@Scony
Copy link
Contributor

Scony commented Dec 12, 2023

Actually, I'll fix it, thanks for contributing!

@elliotrpage
Copy link
Author

Thank you! 👍

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.

Resources should display their own colour in Minimap
2 participants