kNumbers.KListObject.needDrawBarInstantMarkerAt C# (CSharp) Method

needDrawBarInstantMarkerAt() public method

public needDrawBarInstantMarkerAt ( Rect barRect, float pct ) : void
barRect UnityEngine.Rect
pct float
return void
        public void needDrawBarInstantMarkerAt(Rect barRect, float pct)
        {
            float num = 12f;
            if (barRect.width < 150f)
            {
                num /= 2f;
            }
            Vector2 vector = new Vector2(barRect.x + barRect.width * pct, barRect.y + barRect.height);
            Rect position = new Rect(vector.x - num / 2f, vector.y, num, num);
            GUI.DrawTexture(position, BarInstantMarkerTex);
        }