Exemplo n.º 1
0
        public override void OnGUI(Rect position)
        {
            FPD_HeaderAttribute att = (FPD_HeaderAttribute)base.attribute;

            Rect pos = position; pos.height = base.GetHeight() + att.Height;

            pos.y += att.UpperPadding;

            GUI.Label(pos, new GUIContent(att.HeaderText), HeaderStyle);
        }
Exemplo n.º 2
0
        public override float GetHeight()
        {
            FPD_HeaderAttribute att = (FPD_HeaderAttribute)base.attribute;

            return(base.GetHeight() + att.Height + att.BottomPadding + att.UpperPadding);
        }