GregTech CE Unofficial

GregTech CE Unofficial

412k Downloads

[Suggestion] Dynamic fluid cell textures

Discusser opened this issue ยท 0 comments

commented

Is your feature request related to a problem? Please describe.
I think it would be pretty cool if fluid cells showed the amount of fluid they hold through their textures.
This is a small detail though so it might not even be worth the trouble.

Describe the solution you'd like
I don't know how dynamic textures work but the amount of pixels rendered can easily be calculated through this:
fluidAmount / fluidCapacity * guiScale * 14
and then rounded to the nearest integer
(guiScale is a number from 1 to 4 with 1 being small and 4 being auto)

Additional context
An aluminium cell with 8000L/16000L of rubber, or 50%.
image

An aluminium cell with 11000L/16000L of polyethylene, or 68.75%
image

Please fill in as much useful information as possible. Also please remove all unused sections.