Skip to content

Commit 4761ff9

Browse files
renamed ClownUI to ColorUI and added simple setting
1 parent afe5bd8 commit 4761ff9

File tree

10 files changed

+28
-5
lines changed

10 files changed

+28
-5
lines changed

modules/release/ClownUI.tox

-20.8 KB
Binary file not shown.

modules/release/ColorUI.tox

26.1 KB
Binary file not shown.
5.63 KB
Binary file not shown.
5.23 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

scripts/ClownUI/ExtClownUI.py renamed to scripts/ColorUI/ExtColorUI.py

+25-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'''Info Header Start
22
Name : ExtClownUI
33
Author : Dan@DAN-4090
4-
Saveorigin : FunctionStore_tools_2023.335.toe
4+
Saveorigin : FunctionStore_tools_2023.427.toe
55
Saveversion : 2023.11600
66
Info Header End'''
77

@@ -12,11 +12,12 @@
1212

1313
import random
1414

15-
class ExtClownUI:
15+
class ExtColorUI:
1616
def __init__(self, ownerComp):
1717
self.ownerComp = ownerComp
1818
CustomParHelper.Init(self, ownerComp, enable_properties=True, enable_callbacks=True)
1919
self.table_out : tableDAT = self.ownerComp.op('table_out')
20+
self.colors_saved = {}
2021

2122
def __randomizeColors(self):
2223
for ui_element in ui.colors:
@@ -52,3 +53,25 @@ def onParCheck(self):
5253
colortocheck = self.evalGroupColortocheck
5354
self._whichUIElement(colortocheck)
5455

56+
57+
def onParUielement(self, val):
58+
if val in ui.colors:
59+
self.ownerComp.parGroup.Color = ui.colors[val]
60+
#
61+
def onParSetcolor(self):
62+
# store current color
63+
try:
64+
if self.evalUielement not in self.colors_saved:
65+
self.colors_saved[self.evalUielement] = ui.colors[self.evalUielement]
66+
# set new color
67+
ui.colors[self.evalUielement] = self.ownerComp.parGroup.Color.eval()
68+
except:
69+
pass
70+
71+
def onParResetcolor(self):
72+
try:
73+
ui.colors[self.evalUielement] = self.colors_saved[self.evalUielement]
74+
self.ownerComp.parGroup.Color = self.colors_saved[self.evalUielement]
75+
except:
76+
pass
77+

scripts/FNS_OpMenu/install.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'''Info Header Start
22
Name : install
33
Author : Dan@DAN-4090
4-
Saveorigin : FunctionStore_tools_2023.410.toe
4+
Saveorigin : FunctionStore_tools_2023.427.toe
55
Saveversion : 2023.11600
66
Info Header End'''
77

scripts/NoUI/ExtNoUI.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'''Info Header Start
33
Name : ExtNoUI
44
Author : Dan@DAN-4090
5-
Saveorigin : FunctionStore_tools_2023.377.toe
5+
Saveorigin : FunctionStore_tools_2023.427.toe
66
Saveversion : 2023.11600
77
Info Header End'''
88
CustomParHelper: CustomParHelper = next(d for d in me.docked if 'ExtUtils' in d.tags).mod('CustomParHelper').CustomParHelper # import

scripts/QuickExt/stubser/extStubser_.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'''Info Header Start
22
Name : extStubser
33
Author : Dan@DAN-4090
4-
Saveorigin : FunctionStore_tools_2023.416.toe
4+
Saveorigin : FunctionStore_tools_2023.427.toe
55
Saveversion : 2023.11600
66
Info Header End'''
77
import ast

0 commit comments

Comments
 (0)