Пример #1
0
        /// <summary>
        /// Update GO for a single tick created by CreateTickGO().
        /// This does not require positioning the tick, that happens automatically.
        /// fT is in range [0,1], can be used for styling/etc
        /// </summary>
        protected virtual void update_tick_go(int iTick, fGameObject go, Vector2f tickSize, float fT)
        {
            fRectangleGameObject rectGO = go as fRectangleGameObject;

            rectGO.SetWidth(tickSize.x);
            rectGO.SetHeight(tickSize.y);
        }
Пример #2
0
        protected virtual void update_geometry()
        {
            if (rootGO == null)
            {
                return;
            }

            backgroundGO.SetWidth(SliderWidth);
            backgroundGO.SetHeight(SliderHeight);

            if (handleGO != null)
            {
                update_handle_go(handleGO, SliderWidth, SliderHeight);
            }

            update_handle_position();
            update_ticks();
            update_labels();
        }