big refactoring #12 : add a few functions in g_editor.c to replace many sys_vgui calls