import bpy from bpy.props import StringProperty, IntProperty, BoolProperty from ..common import addon class GB_Prefs(bpy.types.AddonPreferences): bl_idname = addon.addon_name # TODO EnumProperty to get list of projects to choose from default_godot_project_path: StringProperty( name="Godot project path", subtype='DIR_PATH', default="//godot_project/" ) default_blender_repository_path: StringProperty( name="Blender repository root", subtype='DIR_PATH', default="//" ) default_root_collection: StringProperty( name="Root collection", default="khanat", ) default_licence: StringProperty( name="Licence", default="CC BY SA Khaganat", ) default_contributor: StringProperty( name="Contributor", default="", ) def draw(self, context): layout = self.layout box = layout.box() box.prop(self, "default_godot_project_path") box.prop(self, "default_blender_repository_path") box.prop(self, "default_root_collection") layout.split() box = layout.box() box.prop(self, "default_licence") box.prop(self, "default_contributor")