Screeps3D
Screeps3D copied to clipboard
Visualize storage in different colors based on type
KittyTack on slack suggested that minerals and power should render different colors than yellow in storage and terminals.
We should utilize the same colors for minerals as utilized to render the mineral that can be mined.
In fact, we should render the storage depending on the type of storage everywhere we can
- [ ] storage
- [ ] terminal
- [ ] link
- [ ] creeps
- others?
But how do we handle storage containing multiple kinds of storage? what kind of storage can actually contain multiple kinds of storage?
Should a storage have different "pies" ontop of each other with a height based on percentage wise. should it be like a piechart? not sure how we should visualize the difference in each model that supports containing multiple kinds of storage.
We could also "just" color the storage based on the resource with the highest amount?
Colors for each resource. View in Slack
https://github.com/screeps/engine/tree/refact-store/DEV-351?files=1
This update coming out soon will give everything a store value. Just be prepared to know carry will be deprecated soon.
Perhaps we could generate and update a texture, kinda like we do with creep body parts that way we can "partially" fill a "progressbar".
We gotta be creative with the texture on creep storage though 🤔
not sure it can be done in a generic way for all structures / objects regarding storage and terminal, i think that a dedicated approach would be better. depending how precise we want to be, a similar approach to one of PowerBanks can be done, i.e showing structure fill with X increments with material showing whether it's Energy or anything else.
with having a more dedicated display it gets problematic, because with all possible Mineral/PackedMineral/Deposit/Commodity/Boost it will get bit colorful (and thus less informative)
I'd stick to limit display as per official client : Energy, Power and Everything-Else
current idea (and implementation) is to generate 1x1000px texture which will represent the everything that is in storage. that means that 'step' for storage is 1k, for terminal 300.
@Gadjung not sure I understand what you mean by "step" storage can contain 1m and terminal 300k, right?