Coats of arms should be able to contain more than two colors ... #6322

Open
opened 2024-02-20 18:51:14 +00:00 by Boot · 1 comment
Member

A three-colour setup reuqires a rewrite. Two colours are easy using black and white masks. If a third colour comes into play, we could support 4 or 5 colours as well. But not with the current code or update. If this is a wish, please open a new issue.

Originally posted by @AliasAlreadyTaken in /your-land/bugtracker/issues/6278#issuecomment-75147

A three-colour setup reuqires a rewrite. Two colours are easy using black and white masks. If a third colour comes into play, we could support 4 or 5 colours as well. But not with the current code or update. If this is a wish, please open a new issue. _Originally posted by @AliasAlreadyTaken in /your-land/bugtracker/issues/6278#issuecomment-75147_
Member

If we define shields directly in the code, I see no reason to not just add a function for creating shields that will take custom texture name - Chache got a hang of it and provided an example in original issue: #6278
castle_shield_cyan.png^(castle_shield_green.png^[mask:castle_shield_mask_partyperpale.png)^(castle_shield_white.png^[mask:castle_shield_mask_pale.png)

So something like:

local texture_name = "castle_shield_cyan.png^(castle_shield_green.png^[mask:castle_shield_mask_partyperpale.png)^(castle_shield_white.png^[mask:castle_shield_mask_pale.png)"

create_shield("shield_name",texture_name)

Limiting them to 2 colors only makes sense for performance reasons or if we want some in-game method for creating them... But those are nodes, so it's kinda useless.

If we define shields directly in the code, I see no reason to not just add a function for creating shields that will take custom texture name - Chache got a hang of it and provided an example in original issue: https://gitea.your-land.de/your-land/bugtracker/issues/6278 `castle_shield_cyan.png^(castle_shield_green.png^[mask:castle_shield_mask_partyperpale.png)^(castle_shield_white.png^[mask:castle_shield_mask_pale.png)` So something like: ```lua local texture_name = "castle_shield_cyan.png^(castle_shield_green.png^[mask:castle_shield_mask_partyperpale.png)^(castle_shield_white.png^[mask:castle_shield_mask_pale.png)" create_shield("shield_name",texture_name) ``` Limiting them to 2 colors only makes sense for performance reasons or if we want some in-game method for creating them... But those are nodes, so it's kinda useless.
AliasAlreadyTaken added the
1. kind/enhancement
label 2024-02-20 20:29:02 +00:00
AliasAlreadyTaken was assigned by Boot 2024-02-21 15:51:54 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#6322
No description provided.