chan color in sys manager
This commit is contained in:
parent
1d331f451c
commit
f61f9efccf
1 changed files with 2 additions and 0 deletions
|
|
@ -318,6 +318,8 @@ float FurnaceGUI::drawSystemChannelInfo(const DivSysDef* whichDef, int keyHitOff
|
|||
ImVec4 color=uiColors[GUI_COLOR_CHANNEL_BG];
|
||||
if (i<whichDef->maxChans) color=uiColors[chanDef.type+GUI_COLOR_CHANNEL_FM];
|
||||
if (keyHitOffset>=0) {
|
||||
if (e->curSubSong->chanColor[keyHitOffset+i])
|
||||
color=ImGui::ColorConvertU32ToFloat4(e->curSubSong->chanColor[keyHitOffset+i]);
|
||||
if (e->isChannelMuted(keyHitOffset+i)) {
|
||||
color=uiColors[GUI_COLOR_CHANNEL_MUTED];
|
||||
color.x*=MIN(1.0f,0.125f+keyHit1[keyHitOffset+i]*0.875f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue