d
This commit is contained in:
14
Utilities/platform/2/generation/pipeFormat.py
Normal file
14
Utilities/platform/2/generation/pipeFormat.py
Normal file
@@ -0,0 +1,14 @@
|
||||
def pipeFormat(fmtExRecent, fmtRecent, fmtSet, fmtToggle, fmtToggleNil, name, entity):
|
||||
props = entity.pipes[name]
|
||||
if "recent" and "ex" in props:
|
||||
return fmtExRecent
|
||||
elif "recent" in props:
|
||||
return fmtRecent
|
||||
elif "set" in props:
|
||||
return fmtSet
|
||||
elif "toggle" in props:
|
||||
return fmtToggle
|
||||
elif "toggleNil" in props:
|
||||
return fmtToggleNil
|
||||
|
||||
return "НИНАЮ"
|
||||
Reference in New Issue
Block a user