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"); } }
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"); } }