更新到0.6.0.2

This commit is contained in:
2026-07-06 08:47:33 +08:00
parent e29a5178b7
commit 97d41a1385
473 changed files with 156342 additions and 5 deletions
@@ -0,0 +1,46 @@
namespace DrawXXL
{
using UnityEngine;
public class LineFrom_fadeableAnimSpeed_2D : ParentOf_Lines_fadeableAnimSpeed_2D
{
public Vector2 start = Vector2.zero;
public Vector2 direction = Vector2.one;
public Color endColor = default(Color); //Can be ignored if the line should have only one color. If it is specified then the line will have a fading color transition, starting with "color"(link) at the start of the line and ending with "endColor" at the end of the line
public DrawBasics.LineStyle style = DrawBasics.LineStyle.solid;
public float stylePatternScaleFactor = 1.0f;
public float alphaFadeOutLength_0to1 = 0.0f;
public bool skipPatternEnlargementForLongLines = false;
public bool skipPatternEnlargementForShortLines = false;
public LineFrom_fadeableAnimSpeed_2D(Vector2 start, Vector2 direction)
{
this.start = start;
this.direction = direction;
}
public void Draw()
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return; }
if (UtilitiesDXXL_Colors.IsDefaultColor(endColor))
{
lineAnimationProgress = InternalDraw(start, direction, color, width, text, style, custom_zPos, stylePatternScaleFactor, animationSpeed, lineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
else
{
lineAnimationProgress = InternalDraw_withColorFade(start, direction, color, endColor, width, text, style, custom_zPos, stylePatternScaleFactor, animationSpeed, lineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
}
public static LineAnimationProgress InternalDraw(Vector2 start, Vector2 direction, Color color, float width, string text, DrawBasics.LineStyle style, float custom_zPos, float stylePatternScaleFactor, float animationSpeed, LineAnimationProgress precedingLineAnimationProgress, float endPlates_size, float alphaFadeOutLength_0to1, float enlargeSmallTextToThisMinTextSize, float durationInSec, bool hiddenByNearerObjects, bool skipPatternEnlargementForLongLines, bool skipPatternEnlargementForShortLines)
{
return Ray_fadeableAnimSpeed_2D.InternalDraw(start, direction, color, width, text, style, custom_zPos, stylePatternScaleFactor, animationSpeed, precedingLineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
public static LineAnimationProgress InternalDraw_withColorFade(Vector2 start, Vector2 direction, Color startColor, Color endColor, float width, string text, DrawBasics.LineStyle style, float custom_zPos, float stylePatternScaleFactor, float animationSpeed, LineAnimationProgress precedingLineAnimationProgress, float endPlates_size, float alphaFadeOutLength_0to1, float enlargeSmallTextToThisMinTextSize, float durationInSec, bool hiddenByNearerObjects, bool skipPatternEnlargementForLongLines, bool skipPatternEnlargementForShortLines)
{
return Ray_fadeableAnimSpeed_2D.InternalDrawColorFade(start, direction, startColor, endColor, width, text, style, custom_zPos, stylePatternScaleFactor, animationSpeed, precedingLineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 088adf8aae92ab043aaf562383a64900
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,53 @@
namespace DrawXXL
{
using UnityEngine;
public class LineTo_fadeableAnimSpeed_2D : ParentOf_Lines_fadeableAnimSpeed_2D
{
public Vector2 direction = Vector2.one;
public Vector2 end = Vector2.zero;
public Color endColor = default(Color); //Can be ignored if the line should have only one color. If it is specified then the line will have a fading color transition, starting with "color"(link) at the start of the line and ending with "endColor" at the end of the line
public DrawBasics.LineStyle style = DrawBasics.LineStyle.solid;
public float stylePatternScaleFactor = 1.0f;
public float alphaFadeOutLength_0to1 = 0.0f;
public bool skipPatternEnlargementForLongLines = false;
public bool skipPatternEnlargementForShortLines = false;
public LineTo_fadeableAnimSpeed_2D(Vector2 direction, Vector2 end)
{
this.direction = direction;
this.end = end;
}
public void Draw()
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return; }
if (UtilitiesDXXL_Colors.IsDefaultColor(endColor))
{
lineAnimationProgress = InternalDraw(direction, end, color, width, text, style, custom_zPos, stylePatternScaleFactor, animationSpeed, lineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
else
{
lineAnimationProgress = InternalDraw_withColorFade(direction, end, color, endColor, width, text, style, custom_zPos, stylePatternScaleFactor, animationSpeed, lineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
}
public static LineAnimationProgress InternalDraw(Vector2 direction, Vector2 end, Color color, float width, string text, DrawBasics.LineStyle style, float custom_zPos, float stylePatternScaleFactor, float animationSpeed, LineAnimationProgress precedingLineAnimationProgress, float endPlates_size, float alphaFadeOutLength_0to1, float enlargeSmallTextToThisMinTextSize, float durationInSec, bool hiddenByNearerObjects, bool skipPatternEnlargementForLongLines, bool skipPatternEnlargementForShortLines)
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return null; }
if (UtilitiesDXXL_Log.ErrorLogForInvalidVectors(end, "end")) { return null; }
if (UtilitiesDXXL_Log.ErrorLogForInvalidVectors(direction, "direction")) { return null; }
return Ray_fadeableAnimSpeed_2D.InternalDraw(end - direction, direction, color, width, text, style, custom_zPos, stylePatternScaleFactor, animationSpeed, precedingLineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
public static LineAnimationProgress InternalDraw_withColorFade(Vector2 direction, Vector2 end, Color startColor, Color endColor, float width, string text, DrawBasics.LineStyle style, float custom_zPos, float stylePatternScaleFactor, float animationSpeed, LineAnimationProgress precedingLineAnimationProgress, float endPlates_size, float alphaFadeOutLength_0to1, float enlargeSmallTextToThisMinTextSize, float durationInSec, bool hiddenByNearerObjects, bool skipPatternEnlargementForLongLines, bool skipPatternEnlargementForShortLines)
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return null; }
if (UtilitiesDXXL_Log.ErrorLogForInvalidVectors(end, "end")) { return null; }
if (UtilitiesDXXL_Log.ErrorLogForInvalidVectors(direction, "direction")) { return null; }
return Ray_fadeableAnimSpeed_2D.InternalDrawColorFade(end - direction, direction, startColor, endColor, width, text, style, custom_zPos, stylePatternScaleFactor, animationSpeed, precedingLineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: edbac6eb23275604f8945fd659b58f64
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,47 @@
namespace DrawXXL
{
using UnityEngine;
public class LineWithAlternatingColors_fadeableAnimSpeed_2D : ParentOf_Lines_fadeableAnimSpeed_2D
{
public Vector2 start = Vector2.zero;
public Vector2 end = Vector2.one;
public Color alternatingColor = DrawBasics.defaultColor2_ofAlternatingColorLines;
public float lengthOfStripes = 0.04f;
public float alphaFadeOutLength_0to1 = 0.0f;
public bool skipPatternEnlargementForLongLines = false;
public bool skipPatternEnlargementForShortLines = false;
public LineWithAlternatingColors_fadeableAnimSpeed_2D(Vector2 start, Vector2 end)
{
this.start = start;
this.end = end;
}
public void Draw()
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return; }
lineAnimationProgress = InternalDraw(start, end, color, alternatingColor, width, lengthOfStripes, text, custom_zPos, animationSpeed, lineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
public static LineAnimationProgress InternalDraw(Vector2 start, Vector2 end, Color color1, Color color2, float width, float lengthOfStripes, string text, float custom_zPos, float animationSpeed, LineAnimationProgress precedingLineAnimationProgress, float endPlates_size, float alphaFadeOutLength_0to1, float enlargeSmallTextToThisMinTextSize, float durationInSec, bool hiddenByNearerObjects, bool skipPatternEnlargementForLongLines, bool skipPatternEnlargementForShortLines)
{
//Lines drawn with this function have a higher likelyhood of accidentially using up high numbers of drawnLinePerFrame, because "lengthOfStripes" can be set manually instead of beeing determined by the lineStyle-code
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return null; }
if (UtilitiesDXXL_Log.ErrorLogForInvalidFloats(lengthOfStripes, "lengthOfStripes")) { return null; }
lengthOfStripes = Mathf.Max(lengthOfStripes, 0.001f);
UtilitiesDXXL_LineStyles.curr_dashLength_forAlternatingColorStripesLine = lengthOfStripes;
Color prev_defaultAlternateColorOfStripedLines = DrawBasics.defaultColor2_ofAlternatingColorLines;
if (UtilitiesDXXL_Colors.IsDefaultColor(color2) == false)
{
DrawBasics.defaultColor2_ofAlternatingColorLines = color2;
}
LineAnimationProgress lineAnimationProgress = Line_fadeableAnimSpeed_2D.InternalDraw(start, end, color1, width, text, DrawBasics.LineStyle.alternatingColorStripes, custom_zPos, 1.0f, animationSpeed, precedingLineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
UtilitiesDXXL_LineStyles.curr_dashLength_forAlternatingColorStripesLine = UtilitiesDXXL_LineStyles.default_dashLength_forAlternatingColorStripesLine;
DrawBasics.defaultColor2_ofAlternatingColorLines = prev_defaultAlternateColorOfStripedLines;
return lineAnimationProgress;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 49f154dfbca7db94fbd0853a4becea96
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,56 @@
namespace DrawXXL
{
using UnityEngine;
public class Line_fadeableAnimSpeed_2D : ParentOf_Lines_fadeableAnimSpeed_2D
{
public Vector2 start = Vector2.zero;
public Vector2 end = Vector2.one;
public Color endColor = default(Color); //Can be ignored if the line should have only one color. If it is specified then the line will have a fading color transition, starting with "color"(link) at the start of the line and ending with "endColor" at the end of the line
public DrawBasics.LineStyle style = DrawBasics.LineStyle.solid;
public float stylePatternScaleFactor = 1.0f;
public float alphaFadeOutLength_0to1 = 0.0f;
public bool skipPatternEnlargementForLongLines = false;
public bool skipPatternEnlargementForShortLines = false;
public Line_fadeableAnimSpeed_2D(Vector2 start, Vector2 end)
{
this.start = start;
this.end = end;
}
public void Draw()
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return; }
if (UtilitiesDXXL_Colors.IsDefaultColor(endColor))
{
lineAnimationProgress = InternalDraw(start, end, color, width, text, style, custom_zPos, stylePatternScaleFactor, animationSpeed, lineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
else
{
lineAnimationProgress = InternalDrawColorFade(start, end, color, endColor, width, text, style, custom_zPos, stylePatternScaleFactor, animationSpeed, lineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
}
public static LineAnimationProgress InternalDraw(Vector2 start, Vector2 end, Color color, float width, string text, DrawBasics.LineStyle style, float custom_zPos, float stylePatternScaleFactor, float animationSpeed, LineAnimationProgress precedingLineAnimationProgress, float endPlates_size, float alphaFadeOutLength_0to1, float enlargeSmallTextToThisMinTextSize, float durationInSec, bool hiddenByNearerObjects, bool skipPatternEnlargementForLongLines, bool skipPatternEnlargementForShortLines)
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return null; }
float zPos = UtilitiesDXXL_DrawBasics2D.TryFallbackToDefaultZ(custom_zPos);
Vector3 startV3 = UtilitiesDXXL_DrawBasics2D.Position_V2toV3(start, zPos);
Vector3 endV3 = UtilitiesDXXL_DrawBasics2D.Position_V2toV3(end, zPos);
style = UtilitiesDXXL_LineStyles.FallbackTo2DLineStyle(style);
return UtilitiesDXXL_DrawBasics.Line(startV3, endV3, color, width, text, style, stylePatternScaleFactor, animationSpeed, precedingLineAnimationProgress, UtilitiesDXXL_DrawBasics2D.xyPlane_throughZero, true, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines, null, true, endPlates_size);
}
public static LineAnimationProgress InternalDrawColorFade(Vector2 start, Vector2 end, Color startColor, Color endColor, float width, string text, DrawBasics.LineStyle style, float custom_zPos, float stylePatternScaleFactor, float animationSpeed, LineAnimationProgress precedingLineAnimationProgress, float endPlates_size, float alphaFadeOutLength_0to1, float enlargeSmallTextToThisMinTextSize, float durationInSec, bool hiddenByNearerObjects, bool skipPatternEnlargementForLongLines, bool skipPatternEnlargementForShortLines)
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return null; }
float zPos = UtilitiesDXXL_DrawBasics2D.TryFallbackToDefaultZ(custom_zPos);
Vector3 startV3 = UtilitiesDXXL_DrawBasics2D.Position_V2toV3(start, zPos);
Vector3 endV3 = UtilitiesDXXL_DrawBasics2D.Position_V2toV3(end, zPos);
style = UtilitiesDXXL_LineStyles.FallbackTo2DLineStyle(style);
return UtilitiesDXXL_DrawBasics.LineColorFade(startV3, endV3, startColor, endColor, width, text, style, stylePatternScaleFactor, animationSpeed, precedingLineAnimationProgress, UtilitiesDXXL_DrawBasics2D.xyPlane_throughZero, true, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines, null, true, endPlates_size, 1.0f);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f3e548e7fc1483d468a96d2f848ae2b3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,38 @@
namespace DrawXXL
{
using UnityEngine;
public class MovingArrowsLine_fadeableAnimSpeed_2D : ParentOf_Lines_fadeableAnimSpeed_2D
{
public Vector2 start = Vector2.zero;
public Vector2 end = Vector2.one;
public float distanceBetweenArrows = 0.5f;
public float lengthOfArrows = 0.15f;
public bool backwardAnimationFlipsArrowDirection = true;
public MovingArrowsLine_fadeableAnimSpeed_2D(Vector2 start, Vector2 end)
{
this.start = start;
this.end = end;
width = 0.05f;
animationSpeed = 0.5f;
}
public void Draw()
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return; }
lineAnimationProgress = InternalDraw(start, end, color, width, distanceBetweenArrows, lengthOfArrows, text, custom_zPos, animationSpeed, lineAnimationProgress, backwardAnimationFlipsArrowDirection, endPlates_size, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects);
}
public static LineAnimationProgress InternalDraw(Vector2 start, Vector2 end, Color color, float lineWidth, float distanceBetweenArrows, float lengthOfArrows, string text, float custom_zPos, float animationSpeed, LineAnimationProgress precedingLineAnimationProgress, bool backwardAnimationFlipsArrowDirection, float endPlates_size, float enlargeSmallTextToThisMinTextSize, float durationInSec, bool hiddenByNearerObjects)
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return null; }
float zPos = UtilitiesDXXL_DrawBasics2D.TryFallbackToDefaultZ(custom_zPos);
Vector3 startV3 = UtilitiesDXXL_DrawBasics2D.Position_V2toV3(start, zPos);
Vector3 endV3 = UtilitiesDXXL_DrawBasics2D.Position_V2toV3(end, zPos);
return UtilitiesDXXL_DrawBasics.MovingArrowsLine(startV3, endV3, color, lineWidth, distanceBetweenArrows, lengthOfArrows, text, animationSpeed, precedingLineAnimationProgress, backwardAnimationFlipsArrowDirection, true, UtilitiesDXXL_DrawBasics2D.xyPlane_throughZero, endPlates_size, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, true);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 659ff1f21b2084545adb1b16388f8eff
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,39 @@
namespace DrawXXL
{
using UnityEngine;
public class MovingArrowsRay_fadeableAnimSpeed_2D : ParentOf_Lines_fadeableAnimSpeed_2D
{
public Vector2 start = Vector2.zero;
public Vector2 direction = Vector2.one;
public float distanceBetweenArrows = 0.5f;
public float lengthOfArrows = 0.15f;
public bool backwardAnimationFlipsArrowDirection = true;
public MovingArrowsRay_fadeableAnimSpeed_2D(Vector2 start, Vector2 direction)
{
this.start = start;
this.direction = direction;
width = 0.05f;
animationSpeed = 0.5f;
}
public void Draw()
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return; }
lineAnimationProgress = InternalDraw(start, direction, color, width, distanceBetweenArrows, lengthOfArrows, text, custom_zPos, animationSpeed, lineAnimationProgress, backwardAnimationFlipsArrowDirection, endPlates_size, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects);
}
public static LineAnimationProgress InternalDraw(Vector2 start, Vector2 direction, Color color, float lineWidth, float distanceBetweenArrows, float lengthOfArrows, string text, float custom_zPos, float animationSpeed, LineAnimationProgress precedingLineAnimationProgress, bool backwardAnimationFlipsArrowDirection, float endPlates_size, float enlargeSmallTextToThisMinTextSize, float durationInSec, bool hiddenByNearerObjects)
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return null; }
if (UtilitiesDXXL_Log.ErrorLogForInvalidVectors(start, "start")) { return null; }
if (UtilitiesDXXL_Log.ErrorLogForInvalidVectors(direction, "direction")) { return null; }
Vector2 end = start + direction;
return MovingArrowsLine_fadeableAnimSpeed_2D.InternalDraw(start, end, color, lineWidth, distanceBetweenArrows, lengthOfArrows, text, custom_zPos, animationSpeed, precedingLineAnimationProgress, backwardAnimationFlipsArrowDirection, endPlates_size, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e028a464c86618c4dae6c4ce5794d09d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,39 @@
namespace DrawXXL
{
using UnityEngine;
public class RayWithAlternatingColors_fadeableAnimSpeed_2D : ParentOf_Lines_fadeableAnimSpeed_2D
{
public Vector2 start = Vector2.zero;
public Vector2 direction = Vector2.one;
public Color alternatingColor = DrawBasics.defaultColor2_ofAlternatingColorLines;
public float lengthOfStripes = 0.04f;
public float alphaFadeOutLength_0to1 = 0.0f;
public bool skipPatternEnlargementForLongLines = false;
public bool skipPatternEnlargementForShortLines = false;
public RayWithAlternatingColors_fadeableAnimSpeed_2D(Vector2 start, Vector2 direction)
{
this.start = start;
this.direction = direction;
}
public void Draw()
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return; }
lineAnimationProgress = InternalDraw(start, direction, color, alternatingColor, width, lengthOfStripes, text, custom_zPos, animationSpeed, lineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
public static LineAnimationProgress InternalDraw(Vector2 start, Vector2 direction, Color color1, Color color2, float width, float lengthOfStripes, string text, float custom_zPos, float animationSpeed, LineAnimationProgress precedingLineAnimationProgress, float endPlates_size, float alphaFadeOutLength_0to1, float enlargeSmallTextToThisMinTextSize, float durationInSec, bool hiddenByNearerObjects, bool skipPatternEnlargementForLongLines, bool skipPatternEnlargementForShortLines)
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return null; }
if (UtilitiesDXXL_Log.ErrorLogForInvalidVectors(start, "start")) { return null; }
if (UtilitiesDXXL_Log.ErrorLogForInvalidVectors(direction, "direction")) { return null; }
Vector2 end = start + direction;
return LineWithAlternatingColors_fadeableAnimSpeed_2D.InternalDraw(start, end, color1, color2, width, lengthOfStripes, text, custom_zPos, animationSpeed, precedingLineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 9ec7bbe5c073a8d4cb21c6d776eb9b8a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,52 @@
namespace DrawXXL
{
using UnityEngine;
public class Ray_fadeableAnimSpeed_2D : ParentOf_Lines_fadeableAnimSpeed_2D
{
public Vector2 start = Vector2.zero;
public Vector2 direction = Vector2.one;
public Color endColor = default(Color); //Can be ignored if the line should have only one color. If it is specified then the line will have a fading color transition, starting with "color"(link) at the start of the line and ending with "endColor" at the end of the line
public DrawBasics.LineStyle style = DrawBasics.LineStyle.solid;
public float stylePatternScaleFactor = 1.0f;
public float alphaFadeOutLength_0to1 = 0.0f;
public bool skipPatternEnlargementForLongLines = false;
public bool skipPatternEnlargementForShortLines = false;
public Ray_fadeableAnimSpeed_2D(Vector2 start, Vector2 direction)
{
this.start = start;
this.direction = direction;
}
public void Draw()
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return; }
if (UtilitiesDXXL_Colors.IsDefaultColor(endColor))
{
lineAnimationProgress = InternalDraw(start, direction, color, width, text, style, custom_zPos, stylePatternScaleFactor, animationSpeed, lineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
else
{
lineAnimationProgress = InternalDrawColorFade(start, direction, color, endColor, width, text, style, custom_zPos, stylePatternScaleFactor, animationSpeed, lineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
}
public static LineAnimationProgress InternalDraw(Vector2 start, Vector2 direction, Color color, float width, string text, DrawBasics.LineStyle style, float custom_zPos, float stylePatternScaleFactor, float animationSpeed, LineAnimationProgress precedingLineAnimationProgress, float endPlates_size, float alphaFadeOutLength_0to1, float enlargeSmallTextToThisMinTextSize, float durationInSec, bool hiddenByNearerObjects, bool skipPatternEnlargementForLongLines, bool skipPatternEnlargementForShortLines)
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return null; }
if (UtilitiesDXXL_Log.ErrorLogForInvalidVectors(start, "start")) { return null; }
if (UtilitiesDXXL_Log.ErrorLogForInvalidVectors(direction, "direction")) { return null; }
return Line_fadeableAnimSpeed_2D.InternalDraw(start, start + direction, color, width, text, style, custom_zPos, stylePatternScaleFactor, animationSpeed, precedingLineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
public static LineAnimationProgress InternalDrawColorFade(Vector2 start, Vector2 direction, Color startColor, Color endColor, float width, string text, DrawBasics.LineStyle style, float custom_zPos, float stylePatternScaleFactor, float animationSpeed, LineAnimationProgress precedingLineAnimationProgress, float endPlates_size, float alphaFadeOutLength_0to1, float enlargeSmallTextToThisMinTextSize, float durationInSec, bool hiddenByNearerObjects, bool skipPatternEnlargementForLongLines, bool skipPatternEnlargementForShortLines)
{
if (DXXLWrapperForUntiysBuildInDrawLines.CheckIfDrawingIsCurrentlySkipped()) { return null; }
if (UtilitiesDXXL_Log.ErrorLogForInvalidVectors(start, "start")) { return null; }
if (UtilitiesDXXL_Log.ErrorLogForInvalidVectors(direction, "direction")) { return null; }
return Line_fadeableAnimSpeed_2D.InternalDrawColorFade(start, start + direction, startColor, endColor, width, text, style, custom_zPos, stylePatternScaleFactor, animationSpeed, precedingLineAnimationProgress, endPlates_size, alphaFadeOutLength_0to1, enlargeSmallTextToThisMinTextSize, durationInSec, hiddenByNearerObjects, skipPatternEnlargementForLongLines, skipPatternEnlargementForShortLines);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 02f1cbdf9dc4b9a48a7a7f638519ea99
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: