Generalize graphics.RenderMenu and menuframe.MenuFrame