diff options
Diffstat (limited to 'src/paperflight/static/items.js')
-rw-r--r-- | src/paperflight/static/items.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/paperflight/static/items.js b/src/paperflight/static/items.js index 47a434e..09c9888 100644 --- a/src/paperflight/static/items.js +++ b/src/paperflight/static/items.js @@ -46,4 +46,12 @@ function constructRect(x, y, width, height, state){ update: updateSwitchRect, x, y, width, height, state } +} +function constructText(x, y, text, font){ + return { + draw: drawText, + update: () => {}, + style: "black", + x, y, text, font + } }
\ No newline at end of file |