Compare commits
3 commits
b472b0ce3c
...
c0beac0132
Author | SHA1 | Date | |
---|---|---|---|
c0beac0132 | |||
12e7dda646 | |||
86ce88832d |
1 changed files with 5 additions and 1 deletions
|
@ -14,6 +14,9 @@ this.values = {
|
|||
"stack4": 0,
|
||||
"stack5": 0,
|
||||
"stack6": 0,
|
||||
"stackr": 0,
|
||||
"stackg": 0,
|
||||
"stackb": 0,
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
|
@ -68,14 +71,15 @@ def jez(target, arg, index):
|
|||
|
||||
def _apply(index, target, arg, func):
|
||||
if type(arg) is int:
|
||||
print("{} {} {}".format(func, target, arg))
|
||||
return func(target, arg, index)
|
||||
elif type(arg) is str and arg in this.values:
|
||||
print("{} {} {}".format(func, target, this.values[arg]))
|
||||
return func(target, this.values[arg], index)
|
||||
|
||||
|
||||
def apply(index, targets, args, func):
|
||||
for target in range(len(targets)):
|
||||
print("{} {} {}".format(func, targets[target]['channel'], args[target]))
|
||||
if this.values[targets[target]['channel']] != None:
|
||||
if target < len(args):
|
||||
val, jump = _apply(
|
||||
|
|
Loading…
Reference in a new issue