/// <summary> /// Sets the anchor type to use. /// See <see cref="Anchor_Pos"/> /// </summary> /// <param name="a">The anchor method to use.</param> public void SetAnchor(Anchor_Pos a) { anchor = a; LayoutText(); }
/// <summary> /// Duplicates the settings of another SpriteText object. /// </summary> /// <param name="s">The SpriteText object to be copied.</param> public virtual void Copy(SpriteText s) { offsetZ = s.offsetZ; characterSize = s.characterSize; lineSpacing = s.lineSpacing; lineSpaceSize = s.lineSpaceSize; anchor = s.anchor; alignment = s.alignment; tabSize = s.tabSize; texture = s.texture; SetPixelToUV(texture); font = s.font; spriteFont = FontStore.GetFont(font); lineSpaceSize = lineSpacing * spriteFont.LineHeight * worldUnitsPerTexel; color = s.color; text = s.text; ProcessString(text); pixelPerfect = s.pixelPerfect; dynamicLength = s.dynamicLength; SetCamera(s.renderCamera); hideAtStart = s.hideAtStart; m_hidden = s.m_hidden; Hide(m_hidden); }
/// <summary> /// Duplicates the settings of another SpriteText object. /// </summary> /// <param name="s">The SpriteText object to be copied.</param> public virtual void Copy(SpriteText s) { offsetZ = s.offsetZ; characterSize = s.characterSize; lineSpacing = s.lineSpacing; lineSpaceSize = s.lineSpaceSize; anchor = s.anchor; alignment = s.alignment; tabSize = s.tabSize; multiline = s.multiline; maxWidth = s.maxWidth; removeUnsupportedCharacters = s.removeUnsupportedCharacters; parseColorTags = s.parseColorTags; password = s.password; maskingCharacter = s.maskingCharacter; ignoreClipping = s.ignoreClipping; texture = s.texture; SetPixelToUV(texture); font = s.font; spriteFont = FontStore.GetFont(font); lineSpaceSize = lineSpacing * spriteFont.LineHeight * worldUnitsPerTexel; color = s.color; text = s.text; ProcessString(text); pixelPerfect = s.pixelPerfect; dynamicLength = s.dynamicLength; SetCamera(s.renderCamera); hideAtStart = s.hideAtStart; m_hidden = s.m_hidden; Hide(m_hidden); }
/// <summary> /// Sets the anchor type to use. /// See <see cref="Anchor_Pos"/> /// </summary> /// <param name="a">The anchor method to use.</param> public void SetAnchor(Anchor_Pos a) { anchor = a; }