js: More conventional marking of menu item types

Menu items that open dialogue boxes are now marked with ellipses, while
menu items that lead to submenus have pointing triangles.

The triangles are implemented as SVG files embedded in data: URLs in the
CSS, which is kind of silly but also works really well.  There are
suitable characters in Unicode, but some of my test systems don't have
fonts containing them, so maybe the SVG is better.
This commit is contained in:
Ben Harris
2022-11-24 16:13:57 +00:00
parent fe29d1cbf5
commit 271fb7f47c
2 changed files with 20 additions and 7 deletions

2
emcc.c
View File

@ -975,7 +975,7 @@ int main(int argc, char **argv)
populate_js_preset_menu(0, menu);
if (thegame.can_configure)
js_add_preset(0, "Custom", -1);
js_add_preset(0, "Custom...", -1);
have_presets_dropdown = npresets > 0 || thegame.can_configure;