(RGUI) Refactor menu_type_is and other things