Skip to content

Commit

Permalink
Visgroups now use colorscale instead of color
Browse files Browse the repository at this point in the history
Also adjusted color of other visgroups to a blue-green color instead of red (since red looks like it sohuld be hidden)
  • Loading branch information
drewc5131 committed Dec 7, 2020
1 parent 59f9ad9 commit 8b83275
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions toontown/leveleditor/VisGroupsEditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def toggleVisGroup(self, groupName, state):
target.addVisible(groupName)
# Update vis and color
groupNP.show()
groupNP.setColor(1, 0, 0, 1)
groupNP.setColorScale(0, .8, .5, 1)
else:
print('Vis Group:', self.target, 'removing group:', groupName)
if groupName in visList:
Expand All @@ -160,7 +160,7 @@ def toggleVisGroup(self, groupName, state):
# Update vis and color
if self.showMode.get() == 1:
groupNP.hide()
groupNP.clearColor()
groupNP.clearColorScale()
# Update scene
self.refreshVisibility()

Expand All @@ -173,15 +173,15 @@ def refreshVisibility(self):
if key in visList:
groupNP.show()
if key == self.target:
groupNP.setColor(0, 1, 0, 1)
groupNP.setColorScale(0, 1, 0, 1)
else:
groupNP.setColor(1, 0, 0, 1)
groupNP.setColorScale(0, .8, .5, 1)
else:
if self.showMode.get() == 0:
groupNP.show()
else:
groupNP.hide()
groupNP.clearColor()
groupNP.clearColorScale()

def preDestroy(self):
# First clear level editor variable
Expand Down

0 comments on commit 8b83275

Please sign in to comment.