diff options
| author | Naveen Michaud-Agrawal <naveen.michaudagrawal@gmail.com> | 2023-11-17 12:22:46 +0000 |
|---|---|---|
| committer | Naveen Michaud-Agrawal <naveen.michaudagrawal@gmail.com> | 2023-11-17 12:22:46 +0000 |
| commit | 5c3fd25d7ef7f0b5690c3d3aa8aebf675db3ad40 (patch) | |
| tree | 5fb44b8d19d3902b8f3233bd80393d5536e21da7 /virtual-programs | |
| parent | Add vertical alignment (diff) | |
| download | folk-5c3fd25d7ef7f0b5690c3d3aa8aebf675db3ad40.tar.gz folk-5c3fd25d7ef7f0b5690c3d3aa8aebf675db3ad40.zip | |
Change the text api slightly to use position instead of center
Diffstat (limited to 'virtual-programs')
| -rw-r--r-- | virtual-programs/display/text.folk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/virtual-programs/display/text.folk b/virtual-programs/display/text.folk index 0233a450..fa68aa40 100644 --- a/virtual-programs/display/text.folk +++ b/virtual-programs/display/text.folk @@ -213,8 +213,11 @@ On process "display" { When (non-capturing) /someone/ wishes to draw text with /...options/ { if {[dict exists $options center]} { + # This is deprecated lassign [dict get $options center] x0 y0 - } else { + } elseif {[dict exists $options position]} { + lassign [dict get $options position] x0 y0 + else { set x0 [dict get $options x] set y0 [dict get $options y] } |
