Exemplo n.º 1
0
    public void DrawAmmoCounter(Vector2 position, Texture2D tex, int lines)
    {
        Bars.graphic = tex;
        Rect brush = new Rect(position.x, position.y, tex.width * maxAmmo / lines, tex.height * lines);

        Bars.Draw(brush, new Vector2(maxAmmo / lines, lines), ammoPercent);
    }
Exemplo n.º 2
0
    void OnGUI()
    {
        if (skin != "")
        {
            GUI.skin = GUISkins.Get(skin);
        }
        GUI.depth = depth;
        Rect brush = area;

        //Debug.Log("dicks");
        Bars.graphic = tex;
        Bars.Draw(brush, repeat, val, tint, back, padding);

        if (message != "")
        {
            GUI.color = messageTint;
            GUIF.Label(brush, message);
        }
    }
Exemplo n.º 3
0
        public void Draw(SpriteBatch sb)
        {
            foreach (List <UiButton> List in ButtonList)
            {
                foreach (UiButton Button in List)
                {
                    Button.Draw(sb);
                }
            }

            foreach (List <UiTextString> List in StringList)
            {
                foreach (UiTextString String in List)
                {
                    String.DrawString(sb);
                }
            }

            foreach (List <UiTextBox> List in TextBoxList)
            {
                foreach (UiTextBox TextBox in List)
                {
                    TextBox.Draw(sb);
                }
            }

            foreach (UiStatusBars Bars in UiStatusBarList)
            {
                Bars.Draw(sb);
            }

            foreach (UiTabs Tabs in TabsList)
            {
                Tabs.Draw(sb);
            }
        }
Exemplo n.º 4
0
 public void DrawIcons(Rect area, float fill)
 {
     Bars.graphic  = frontGraphic;
     Bars.vertical = frontGraphic;
     Bars.Draw(area, repeat, fill, frontColor, backColor);
 }