Mercurial > games > semicongine
comparison semiconginev2/text/textbox.nim @ 1240:42eeb59f3a43
add: more tests, line and point rendering
author | sam <sam@basx.dev> |
---|---|
date | Mon, 22 Jul 2024 12:42:35 +0700 |
parents | 69489a678141 |
children |
comparison
equal
deleted
inserted
replaced
1239:69489a678141 | 1240:42eeb59f3a43 |
---|---|
45 | 45 |
46 let anchorY = (case textbox.verticalAlignment | 46 let anchorY = (case textbox.verticalAlignment |
47 of Top: 0'f32 | 47 of Top: 0'f32 |
48 of Center: -height / 2 | 48 of Center: -height / 2 |
49 of Bottom: -height | 49 of Bottom: -height |
50 ) - textbox.font.capHeight | 50 ) + textbox.font.capHeight |
51 | 51 |
52 var | 52 var |
53 offsetX = 0'f32 | 53 offsetX = 0'f32 |
54 offsetY = 0'f32 | 54 offsetY = 0'f32 |
55 lineIndex = 0 | 55 lineIndex = 0 |