diff options
Diffstat (limited to '')
-rw-r--r-- | classy.py | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -596,6 +596,19 @@ def create_class(): Refresh() +@menu_item('Delete Class') +def delete_class(): + cls = choose_class('Choose the class to delete', False) + if base != None: + name = cls.name + del db.class_by_struct[cls.struct] + del db.class_by_name[cls.name] + print("Deleted class %s" % name) + else: + Warning("No class chosen") + Refresh() + + @menu_item('Set VTable') def set_vtable(): cls = choose_class() |