OverlayInformation.ItemPanel.DrawItem C# (CSharp) Method

DrawItem() private static method

private static DrawItem ( System.Vector2 pos, System.Vector2 size, string texture, int r, int g, int b ) : void
pos System.Vector2
size System.Vector2
texture string
r int
g int
b int
return void
        private static void DrawItem(Vector2 pos, Vector2 size,string texture,int r,int g,int b)
        {
            var extraPos = texture == "materials/ensage_ui/items/emptyitembg.vmat" ? new Vector2(2,-2) : new Vector2(0,-2);
            Drawing.DrawRect(pos, size + extraPos,
                Textures.GetTexture(texture));
            Drawing.DrawRect(pos, size - new Vector2(13, 2), new Color(r, g, b, 255), true);
        }