Exemplo n.º 1
0
        protected FloatPropertyPanel AddOffsetAfterProperty(CustomCrosswalkStyle customStyle, UIComponent parent)
        {
            var offsetAfterProperty = AddOffsetProperty(parent, nameof(customStyle.OffsetAfter));

            offsetAfterProperty.Text            = Localize.StyleOption_OffsetAfter;
            offsetAfterProperty.Value           = customStyle.OffsetAfter;
            offsetAfterProperty.OnValueChanged += (float value) => customStyle.OffsetAfter.Value = value;

            return(offsetAfterProperty);
        }
Exemplo n.º 2
0
        protected static FloatPropertyPanel AddOffsetBeforeProperty(CustomCrosswalkStyle customStyle, UIComponent parent)
        {
            var offsetBeforeProperty = AddOffsetProperty(parent);

            offsetBeforeProperty.Text            = Localize.StyleOption_OffsetBefore;
            offsetBeforeProperty.Value           = customStyle.OffsetBefore;
            offsetBeforeProperty.OnValueChanged += (float value) => customStyle.OffsetBefore.Value = value;

            return(offsetBeforeProperty);
        }