Skip to content

Commit 8b83275

Browse files
committed
Visgroups now use colorscale instead of color
Also adjusted color of other visgroups to a blue-green color instead of red (since red looks like it sohuld be hidden)
1 parent 59f9ad9 commit 8b83275

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

toontown/leveleditor/VisGroupsEditor.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def toggleVisGroup(self, groupName, state):
151151
target.addVisible(groupName)
152152
# Update vis and color
153153
groupNP.show()
154-
groupNP.setColor(1, 0, 0, 1)
154+
groupNP.setColorScale(0, .8, .5, 1)
155155
else:
156156
print('Vis Group:', self.target, 'removing group:', groupName)
157157
if groupName in visList:
@@ -160,7 +160,7 @@ def toggleVisGroup(self, groupName, state):
160160
# Update vis and color
161161
if self.showMode.get() == 1:
162162
groupNP.hide()
163-
groupNP.clearColor()
163+
groupNP.clearColorScale()
164164
# Update scene
165165
self.refreshVisibility()
166166

@@ -173,15 +173,15 @@ def refreshVisibility(self):
173173
if key in visList:
174174
groupNP.show()
175175
if key == self.target:
176-
groupNP.setColor(0, 1, 0, 1)
176+
groupNP.setColorScale(0, 1, 0, 1)
177177
else:
178-
groupNP.setColor(1, 0, 0, 1)
178+
groupNP.setColorScale(0, .8, .5, 1)
179179
else:
180180
if self.showMode.get() == 0:
181181
groupNP.show()
182182
else:
183183
groupNP.hide()
184-
groupNP.clearColor()
184+
groupNP.clearColorScale()
185185

186186
def preDestroy(self):
187187
# First clear level editor variable

0 commit comments

Comments
 (0)