pandorabox-io / in-game

Random code and stuff for in-game things
MIT License
3 stars 0 forks source link

Visual Effect when drawer is full. #107

Open Klaranth opened 3 years ago

Klaranth commented 3 years ago

specing Idea: Add a visual effect if a drawer is full.

Orekart There is a visual effect when it is empty, so, what about a visible progress-bar? Or... a corner accent (4-corners = full). I haven't used drawers enough to decide. There are not many pixels to work with for drawers.

What does that "handle" do on the drawer, does it light up when the drawer controller is active, or do anything else?

specing The handles are not animated.

Orekart I think that would be the target for a visual change, then. But make it possible for those handles to light up to indicate drawer controller activity in future, whatever you think for capacity status. They remind me of the "flat rectangle LED light" from old HDD activity indicator on personal computers.

specing Drawer full-ness could be animated client side, the count and max are exposed.

Orekart Ah, that is good! And if count is decreasing or increasing, then yes.

specing I have just never worked with textures/entities client-side, so I don't know how to do it.

S-S-X commented 3 years ago

What should also be considered is how expensive change like this would be for server and clients. Adding another entity for each drawer to indicate available space visually is probably going to make performance worse, not sure how much worse but drawer entities are already problem.

Another possibility could be to allow querying drawer array status with digiline commands. Upside would be that everyone could decide how and where they would like to display data. Downside would be added components and it would not be possible to integrate visual component with individual drawers (however you could still add digiline display or lightstone for each drawer if you like).