示例#1
0
        public static void SetYValues(global::RenderingLibrary.Graphics.VerticalAlignment alignment, PositionUnitType yUnits)
        {
            var state = SelectedState.Self.SelectedStateSave;

            SetAndCallReact("Y", 0.0f, "float");
            SetAndCallReact("Y Origin", alignment, typeof(global::RenderingLibrary.Graphics.VerticalAlignment).Name);
            SetAndCallReact("Y Units", yUnits, typeof(PositionUnitType).Name);

            if (SelectedState.Self.SelectedInstance?.BaseType == "Text")
            {
                SetAndCallReact("VerticalAlignment", alignment, "VerticalAlignment");
            }
        }
示例#2
0
        private void SetYValues(global::RenderingLibrary.Graphics.VerticalAlignment alignment, PositionUnitType yUnits)
        {
            var    state  = CurrentState;
            string prefix = GetVariablePrefix();

            state.SetValue(prefix + "Y", 0.0f, "float");
            state.SetValue(prefix + "Y Origin",
                           alignment, typeof(global::RenderingLibrary.Graphics.VerticalAlignment).Name);
            state.SetValue(prefix + "Y Units",
                           yUnits, typeof(PositionUnitType).Name);

            if (SelectedState.Self.SelectedInstance?.BaseType == "Text")
            {
                state.SetValue(prefix + "VerticalAlignment", alignment, "VerticalAlignment");
            }
        }