Mercurial > games > semicongine
changeset 916:6962a15f375c
del: unused property
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 18 Mar 2024 23:43:32 +0700 |
parents | 48b02bc3ad79 |
children | 8235d727183e |
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]]