Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Unicode in SugarCube's Click and Button Macros?

Using SugarCube 1 and Twine 1, I'd like to use unicode up and down arrows (▲ and ▼) in a <<button>> or <<click>> macro.

Can I make that happen?

If not, can I use an image?

If so, please explain how to do so.

I tried this:
<<click "&#x25B2;">>
and
<<click &#x25B2;>>

But, they both just printed the unicode.

Thanks!

Comments

  • They didn't print Unicode, they printed the raw text you entered. The link_text argument to <<click>> & <<button>> is not wikified, so you cannot use HTML character references (entity or numeric).

    You can, however, use JavaScript Unicode codepoint escapes, like so:
    <<click "\u25B2">><</click>>
    <<click "\u25BC">><</click>>
    
  • Thanks!
Sign In or Register to comment.