Index: Plug.tmpasm =================================================================== --- Plug.tmpasm (revision 33055) +++ Plug.tmpasm (revision 33056) @@ -2,6 +2,8 @@ put /local/pcb/mod/CONF {$(PLUGDIR)/asm/asm_conf.h} put /local/pcb/mod/CONFFILE {asm.conf} put /local/pcb/mod/CONFVAR {asm_conf_internal} +put /local/pcb/mod/MENUFILE {asm-menu.lht} +put /local/pcb/mod/MENUVAR {asm_menu} put /local/pcb/mod/OBJS [@ $(PLUGDIR)/asm/asm.o @] Index: asm-menu.lht =================================================================== --- asm-menu.lht (nonexistent) +++ asm-menu.lht (revision 33056) @@ -0,0 +1,9 @@ +ha:rnd-menu-v1 { + li:anchored { + ha:@feature_plugins { + li:submenu { + ha:Assembly helper (interactive) = { action=asm() } + } + } + } +} \ No newline at end of file Index: asm.c =================================================================== --- asm.c (revision 33055) +++ asm.c (revision 33056) @@ -41,11 +41,13 @@ #include #include #include +#include #include "search.h" #include "draw.h" #include "select.h" #include "asm_conf.h" #include "../src_plugins/asm/conf_internal.c" +#include "menu_internal.c" conf_asm_t conf_asm; #define ASM_CONF_FN "asm.conf" @@ -633,6 +635,7 @@ void pplg_uninit_asm(void) { + rnd_hid_menu_unload(rnd_gui, asm_cookie); rnd_remove_actions_by_cookie(asm_cookie); rnd_conf_unreg_file(ASM_CONF_FN, asm_conf_internal); rnd_conf_unreg_fields("plugins/asm1/"); @@ -648,5 +651,7 @@ RND_REGISTER_ACTIONS(asm_action_list, asm_cookie) + rnd_hid_menu_load(rnd_gui, NULL, asm_cookie, 175, NULL, 0, asm_menu, "plugin: asm"); + return 0; }