changeset 455:d405d71d1889

del: unused property
author Sam <sam@basx.dev>
date Mon, 18 Mar 2024 23:43:32 +0700
parents fdfaf83124da
children 083db2d72b6f
files semicongine/text.nim
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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]]