From 19c2d34967fa64d5200e5ff381d198d12a3ba125 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 1 Oct 2004 07:51:12 +0000 Subject: - Improved memory system for pupmenu(), which now stores 255 entries max. Meaning menus come back to previous selection almost always. Also fixed annoying bug that caused Mirror menu (M in editmode) to start at 2nd item - New hotkey (test :) CTRL+TAB in editmode gives (and shows!) current selectmode. I prefer this over cycling, since the menu is informing you what happens. - To enforce pupmenus to start at specific item, use pupmenu_set_active() - pupmenu_col() to be done --- source/blender/include/BIF_interface.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/include/BIF_interface.h') diff --git a/source/blender/include/BIF_interface.h b/source/blender/include/BIF_interface.h index 30b79c09136..a006c1ef44f 100644 --- a/source/blender/include/BIF_interface.h +++ b/source/blender/include/BIF_interface.h @@ -273,8 +273,9 @@ void uiBlockSetFunc (uiBlock *block, void (*func)(void *arg1, void *arg2), void void uiButSetFunc (uiBut *but, void (*func)(void *arg1, void *arg2), void *arg1, void *arg2); void uiBlockSetDrawExtraFunc(uiBlock *block, void (*func)()); -short pupmenu(char *instr); -short pupmenu_col(char *instr, int maxrow); +extern void pupmenu_set_active(int val); +extern short pupmenu(char *instr); +extern short pupmenu_col(char *instr, int maxrow); extern void uiFreePanels(struct ListBase *lb); extern void uiNewPanelTabbed(char *, char *); -- cgit v1.2.3