Change to allow values to be different from choices
This commit is contained in:
parent
afb90fc6b6
commit
9615596dd9
|
|
@ -8,7 +8,7 @@ username2entIdBase = {
|
|||
'samir': 2*EntIdRange,
|
||||
'skyler': 3*EntIdRange,
|
||||
'joe': 4*EntIdRange,
|
||||
'mark': 5*EntIdRange,
|
||||
'DrEvil': 5*EntIdRange,
|
||||
}
|
||||
assert uniqueElements(username2entIdBase.values())
|
||||
|
||||
|
|
|
|||
|
|
@ -222,7 +222,12 @@ class Stomper(Nodepath):
|
|||
attribs = (
|
||||
('headScale', Vec3(1,1,1), 'scale'),
|
||||
('motion', 3, 'choice',
|
||||
{'choiceSet':['linear','sinus','half sinus','slow fast']}),
|
||||
{'choiceSet':['linear','sinus','half sinus','slow fast'],
|
||||
'valueDict':{'linear':0,
|
||||
'sinus':1,
|
||||
'half sinus':2,
|
||||
'slow fast':3}
|
||||
}),
|
||||
('period', 2., 'float'),
|
||||
('phaseShift', 0., 'float', {'min':0, 'max':1}),
|
||||
('range', 6, 'float'),
|
||||
|
|
@ -239,7 +244,12 @@ class StomperPair(Nodepath):
|
|||
attribs = (
|
||||
('headScale', Vec3(1,1,1), 'scale'),
|
||||
('motion', 3, 'choice',
|
||||
{'choiceSet':['linear','sinus','half sinus','slow fast']}),
|
||||
{'choiceSet':['linear','sinus','half sinus','slow fast'],
|
||||
'valueDict':{'linear':0,
|
||||
'sinus':1,
|
||||
'half sinus':2,
|
||||
'slow fast':3}
|
||||
}),
|
||||
('period', 2., 'float'),
|
||||
('phaseShift', 0., {'min':0, 'max':1}),
|
||||
('range', 6, 'float'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue