示例#1
0
 public TextPlayerEngine(GeneratedTextDimensionsComponent GeneratedTextDimensionsComponent,
                         GeneratedTextDimensions GeneratedTextDimensions)
 {
     this.GeneratedTextDimensionsComponent = GeneratedTextDimensionsComponent;
     this.GeneratedTextDimensions          = GeneratedTextDimensions;
     this.VisibleQuadTotalCounter          = 0;
 }
示例#2
0
        public ProceduralText(string initialRawText, GeneratedTextDimensionsComponent GeneratedTextDimensionsComponent, Text textAreaText, ProceduralTextParametersV2 ProceduralTextParametersV2 = null)
        {
            this.initialRawText             = initialRawText;
            this.transformedInitialRawText  = Regex.Unescape(this.initialRawText);
            this.ProceduralTextParametersV2 = ProceduralTextParametersV2;

            #region Special Character Image mapping

            if (this.ProceduralTextParametersV2 != null)
            {
                this.transformedInitialRawText = this.ProceduralTextParametersV2.ParseParameters(this.transformedInitialRawText);
            }

            #endregion

            this.textDimensions   = new GeneratedTextDimensions(GeneratedTextDimensionsComponent);
            this.TextPlayerEngine = new TextPlayerEngine(GeneratedTextDimensionsComponent, this.textDimensions);

            this.TextMesh = new TextMesh(textAreaText);
        }
示例#3
0
 public GeneratedTextDimensions(GeneratedTextDimensionsComponent GeneratedTextDimensionsComponent)
 {
     this.GeneratedTextDimensionsComponent = GeneratedTextDimensionsComponent;
 }