# HG changeset patch # User Sam # Date 1710780212 -25200 # Node ID 6962a15f375c88e931bdb6de5d72d107892b4c7f # Parent 48b02bc3ad79c5829989f8cc3ae8149b242f34ba del: unused property diff -r 48b02bc3ad79 -r 6962a15f375c 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]]