# HG changeset patch # User Sam # Date 1710780212 -25200 # Node ID d405d71d1889cb4bc0fb73fd5ef5a93004e5b467 # Parent fdfaf83124daaecf44dd45766075106820142f3d del: unused property diff -r fdfaf83124da -r d405d71d1889 semicongine/text.nim --- a/semicongine/text.nim Sat Mar 16 21:14:43 2024 +0700 +++ b/semicongine/text.nim Mon Mar 18 23:43:32 2024 +0700 @@ -216,13 +216,6 @@ proc `text=`*(text: var Text, newText: string) = `text=`(text, newText.toRunes) -proc position*(text: Text): Vec2f = - text.position -proc `position=`*(text: var Text, value: Vec2f) = - if value != text.position: - text.position = value - text.dirty = true - proc color*(text: Text): Vec4f = text.mesh.material["color", 0, Vec4f] proc `color=`*(text: var Text, value: Vec4f) = @@ -243,7 +236,7 @@ text.verticalAlignment = value text.dirty = true -proc initText*(font: Font, text = "".toRunes, maxLen: int = text.len, color = newVec4f(0.07, 0.07, 0.07, 1), position = newVec2f(), verticalAlignment = VerticalAlignment.Center, horizontalAlignment = HorizontalAlignment.Center, maxWidth = 0'f32, transform = Unit4): Text = +proc initText*(font: Font, text = "".toRunes, maxLen: int = text.len, color = newVec4f(0.07, 0.07, 0.07, 1), verticalAlignment = VerticalAlignment.Center, horizontalAlignment = HorizontalAlignment.Center, maxWidth = 0'f32, transform = Unit4): Text = var positions = newSeq[Vec3f](int(maxLen * 4)) indices: seq[array[3, uint16]]