Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //script to write text at all cursors or just one cursor, by DG_
- // variables
- const cursorNameText = c => c.n // or use any cursors name
- const cursorText = "*BARF*" // custom text
- // write centered text at a cursor
- const r3c = (t, c) => {
- const startX = c.rawx - Math.floor(t.length / 2)
- for (let i = 0; i < t.length; i++) {
- writeCharAt(t[i], c.c ?? 0, startX + i, c.rawy)
- }
- }
- // draw text for all cursors
- for (const c of w.cursors.values()) {
- r3c(cursorNameText(c), c) // name
- r3c(cursorText, c) // custom text
- }
Add Comment
Please, Sign In to add comment