public void needDrawBarThreshold(Rect barRect, float threshPct, float curLevel)
{
float num = (float)((barRect.width <= 60f) ? 1 : 2);
Rect position = new Rect(barRect.x + barRect.width * threshPct - (num - 1f), barRect.y + barRect.height / 2f, num, barRect.height / 2f);
Texture2D image;
if (threshPct < curLevel)
{
image = BaseContent.BlackTex;
GUI.color = new Color(1f, 1f, 1f, 0.9f);
}
else
{
image = BaseContent.GreyTex;
GUI.color = new Color(1f, 1f, 1f, 0.5f);
}
GUI.DrawTexture(position, image);
GUI.color = Color.white;
}