Skip to content
This repository was archived by the owner on Jul 21, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,40 +33,39 @@ class MBPreferences(bpy.types.AddonPreferences):
'''
bl_idname = __package__
# addon updater preferences
auto_check_update = bpy.props.BoolProperty(
auto_check_update: bpy.props.BoolProperty(
name="Auto-check for Update",
description="If enabled, auto-check for updates using an interval",
default=False,
default=False
)
updater_intrval_months = bpy.props.IntProperty(
updater_intrval_months: bpy.props.IntProperty(
name='Months',
description="Number of months between checking for updates",
default=0,
min=0
)
updater_intrval_days = bpy.props.IntProperty(
updater_intrval_days: bpy.props.IntProperty(
name='Days',
description="Number of days between checking for updates",
default=7,
min=0,
max=31
)
updater_intrval_hours = bpy.props.IntProperty(
updater_intrval_hours: bpy.props.IntProperty(
name='Hours',
description="Number of hours between checking for updates",
default=0,
min=0,
max=23
)
updater_intrval_minutes = bpy.props.IntProperty(
updater_intrval_minutes: bpy.props.IntProperty(
name='Minutes',
description="Number of minutes between checking for updates",
default=0,
min=0,
max=59
)

use_censors = bpy.props.BoolProperty(
use_censors: bpy.props.BoolProperty(
name='censors',
description="Use censors to cover genitals and breasts",
default=True
Expand All @@ -93,3 +92,10 @@ def draw(self, context):
# col = mainrow.column()
# col.scale_y = 2
# col.operator("wm.url_open","Open webpage ").url=addon_updater_ops.updater.website

# Registration
def register():
bpy.utils.register_class(MBPreferences)

def unregister():
bpy.utils.unregister_class(MBPreferences)