protected override void DrawSelf(SpriteBatch spriteBatch) { CalculatedStyle style = GetInnerDimensions(); float calculateLiquidQuantity = _tank.GetCurrentAmount() * 100 / _tank.GetMaxCapacity(); spriteBatch.Draw(BackTexture, style.Position(), Color.White); if (IsMouseHovering) { Main.hoverItemName = _tank.GetCurrentAmount() + " mB"; } }