void Draw(Rect a)
    {
        GUI.skin = skin;
        GUI.skin.FontSize(fontSize);

        GUIContent c;

        if (tex == null)
        {
            c = new GUIContent(message);
        }
        else
        {
            c = new GUIContent(message, tex);
        }


        GUIF.Box(a, c);

        if (GUIF.Button(a.BottomCenter(.3f, .2f).MoveUp(.1f), "Ok"))
        {
            dismissed = true;
            slider.Slide(direction.Flip(), slidePower);
        }

        GUIF.InvisibleButton(ScreenF.all);
    }
Пример #2
0
    void OnGUI()
    {
        GUI.depth = -100000;

        GUI.skin = skin;
        GUI.skin.FontSize(fontSize);

        GUIContent content;

        if (tex == null)
        {
            content = new GUIContent(tickMessage, tex);
        }
        else
        {
            content = new GUIContent(tickMessage);
        }

        Color col = color;

        if (fading)
        {
            col.a = alpha;
        }
        GUI.color = col;

        Rect brush = area.Denormalized();

        if (isBox)
        {
            GUIF.Box(brush, content, padding);
        }
        else
        {
            GUIF.Label(brush, content, padding);
        }
    }
Пример #3
0
 public new void Draw(Component caller)
 {
     GUIF.Box(area, content);
 }