Skip to content

Commit

Permalink
Neck solo lightning shader color option
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzion committed Jul 27, 2010
1 parent b58d70d commit 3bfc568
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Neck.py
Expand Up @@ -60,6 +60,8 @@ def __init__(self, engine, instrument, playerObj):

self.boardWidth = self.engine.theme.neckWidth
self.boardLength = self.engine.theme.neckLength
self.shaderSolocolor = self.engine.theme.shaderSolocolor

#death_au: fixed neck size

if self.isDrum and self.engine.config.get("game", "large_drum_neck"):
Expand Down Expand Up @@ -609,7 +611,7 @@ def renderNeck(self, visibility, song, pos):
self.renderNeckMethod(self.failcount, 0, self.failNeck)

if (self.guitarSolo or self.instrument.starPowerActive) and self.theme == 1:
shaders.var["solocolor"]=(0.3,0.7,0.9,0.6)
shaders.var["solocolor"]=self.shaderSolocolor
else:
shaders.var["solocolor"]=(0.0,)*4

Expand Down
3 changes: 3 additions & 0 deletions src/Theme.py
Expand Up @@ -467,6 +467,7 @@
defaultDict['neckLength'] = 9.0
defaultDict['neck_prompt_x'] = .1
defaultDict['neck_prompt_y'] = .05
defaultDict['shaderSolocolor'] = (0.3,0.7,0.9,0.6)

#Setlist
defaultDict['songListDisplay'] = 1
Expand Down Expand Up @@ -853,6 +854,8 @@ def __init__(self, path, name):
self.neckLength = config.get("theme", "neck_length")
self.neck_prompt_x = config.get("theme", "menu_neck_choose_x")
self.neck_prompt_y = config.get("theme", "menu_neck_choose_y")

self.shaderSolocolor = config.get("theme", "shader_solocolor")

#Setlist
self.songListDisplay = config.get("theme", "song_list_display")
Expand Down

0 comments on commit 3bfc568

Please sign in to comment.