Screeps3D icon indicating copy to clipboard operation
Screeps3D copied to clipboard

Visualize storage in different colors based on type

Open thmsndk opened this issue 5 years ago • 7 comments

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?

thmsndk avatar Jun 30 '19 13:06 thmsndk

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?

thmsndk avatar Jul 10 '19 22:07 thmsndk

Colors for each resource. View in Slack

thmsndk avatar Jul 10 '19 23:07 thmsndk

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.

ssmith151 avatar Jul 10 '19 23:07 ssmith151

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 🤔

thmsndk avatar May 03 '20 09:05 thmsndk

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

Gadjung avatar May 21 '20 20:05 Gadjung

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 avatar Apr 23 '21 13:04 Gadjung

@Gadjung not sure I understand what you mean by "step" storage can contain 1m and terminal 300k, right?

thmsndk avatar Apr 23 '21 17:04 thmsndk