Beispiel #1
0
        public override void AttachTo(IColossalControl control)
        {
            control.AttachControl(Panel);

            if (HorizontalScrollbar != null)
            {
                HorizontalScrollbar.AttachTo(control);
            }

            if (VerticalScrollbar != null)
            {
                VerticalScrollbar.AttachTo(control);
            }
        }
Beispiel #2
0
        public override void AttachTo(GameObject gameObject)
        {
            Panel.GameObject.transform.parent = gameObject.transform;

            if (HorizontalScrollbar != null)
            {
                HorizontalScrollbar.AttachTo(gameObject);
            }

            if (VerticalScrollbar != null)
            {
                VerticalScrollbar.AttachTo(gameObject);
            }
        }