add script command for menu items with alternate fonts

Also: add '\a' to the list of escaped characters and remove storage of
  unneeded "filename".

mitemaltfont <altfont> <text> <action> <hoveraction> <desc>
  Displays a menu line with a text which may contain chars from an
  alternate font.

  altfont
    Name of the alternate font.

  text
    Content of menu line. Chars from the alternate font have to be marked
    with "\a". Alternate font chars have no width and are just rendered
    above the following text. Use spaces to counter that.

  action, hoveraction, desc
    Same function as with other menu lines.

DOCREF menuitemaltfont
This commit is contained in:
ac-stef
2015-06-10 14:12:43 +02:00
parent 842f120915
commit 148719c0f7
3 changed files with 12 additions and 5 deletions
+1
View File
@@ -246,6 +246,7 @@ void filterrichtext(char *dst, const char *src, int len)
{
case '\0': --src; continue;
case 'f': c = '\f'; break;
case 'a': c = '\a'; break;
case 'n': c = '\n'; break;
case 'x':
b = 16;