Skip to content

Commit a5b71c9

Browse files
committed
Include orientation of 0 and 100 buttons
Make it even more clear what is up and what is down.
1 parent 95ca276 commit a5b71c9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fun_ui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ def draw(self, context):
142142
row = bcol.row(align=True)
143143
row.alignment = 'EXPAND'
144144
if x == 0 or x == 100:
145-
row.operator("funscript.position", text=str(x)).launchPosition=x
145+
label = "%d (%s)" % (x, "Up" if x == 100 else "Down")
146+
row.operator("funscript.position", text=label).launchPosition=x
146147
else:
147148
for i in range(x,x+30,10):
148149
row.operator("funscript.position", text=str(i)).launchPosition=i

0 commit comments

Comments
 (0)