-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Messed up last time, I'm not sure how my test worked, but when I tried it again today it didn't, so this is me fixing it up
- Loading branch information
1 parent
6a1f93e
commit 04cdde2
Showing
3 changed files
with
34 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import bpy | ||
|
||
class RightMouseNavigationPreferences(bpy.types.AddonPreferences): | ||
bl_idname = __package__ | ||
|
||
timepreference: bpy.props.FloatProperty( | ||
name="Time Threshold", | ||
description="How long you have hold right mouse to open menu", | ||
default=0.3, | ||
min=0.1, | ||
max=2 | ||
) | ||
|
||
distancepreference: bpy.props.FloatProperty( | ||
name="Distance Threshold", | ||
description="How far you have to move the mouse to trigger navigation", | ||
default=20, | ||
min=1, | ||
max=200 | ||
) | ||
|
||
def draw(self, context): | ||
layout = self.layout | ||
row = layout.row() | ||
row.prop(self, 'timepreference') | ||
row.prop(self, 'distancepreference') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters