GUI: fix hash hide in channel names
This commit is contained in:
parent
0efe8a1320
commit
2ac9d0d243
|
@ -282,7 +282,7 @@ void FurnaceGUI::drawOrders() {
|
||||||
for (int i=0; i<e->getTotalChannelCount(); i++) {
|
for (int i=0; i<e->getTotalChannelCount(); i++) {
|
||||||
if (!e->curSubSong->chanShow[i]) continue;
|
if (!e->curSubSong->chanShow[i]) continue;
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::Text("%s",e->getChannelShortName(i));
|
ImGui::TextNoHashHide("%s",e->getChannelShortName(i));
|
||||||
}
|
}
|
||||||
ImGui::PopStyleColor();
|
ImGui::PopStyleColor();
|
||||||
for (int i=0; i<e->curSubSong->ordersLen; i++) {
|
for (int i=0; i<e->curSubSong->ordersLen; i++) {
|
||||||
|
|
|
@ -686,7 +686,7 @@ void FurnaceGUI::drawPattern() {
|
||||||
bool hovered=ImGui::ItemHoverable(rect,ImGui::GetID(chanID),0);
|
bool hovered=ImGui::ItemHoverable(rect,ImGui::GetID(chanID),0);
|
||||||
ImU32 col=(hovered || (mobileUI && ImGui::IsMouseDown(ImGuiMouseButton_Left)))?ImGui::GetColorU32(ImGuiCol_HeaderHovered):ImGui::GetColorU32(ImGuiCol_Header);
|
ImU32 col=(hovered || (mobileUI && ImGui::IsMouseDown(ImGuiMouseButton_Left)))?ImGui::GetColorU32(ImGuiCol_HeaderHovered):ImGui::GetColorU32(ImGuiCol_Header);
|
||||||
dl->AddRectFilled(rect.Min,rect.Max,col);
|
dl->AddRectFilled(rect.Min,rect.Max,col);
|
||||||
dl->AddText(ImVec2(minLabelArea.x,rect.Min.y),ImGui::GetColorU32(channelTextColor(i)),chanID);
|
dl->AddTextNoHashHide(ImVec2(minLabelArea.x,rect.Min.y),ImGui::GetColorU32(channelTextColor(i)),chanID);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 1: { // line
|
case 1: { // line
|
||||||
|
@ -707,7 +707,7 @@ void FurnaceGUI::drawPattern() {
|
||||||
));
|
));
|
||||||
dl->AddRectFilledMultiColor(rect.Min,rect.Max,fadeCol0,fadeCol0,fadeCol,fadeCol);
|
dl->AddRectFilledMultiColor(rect.Min,rect.Max,fadeCol0,fadeCol0,fadeCol,fadeCol);
|
||||||
dl->AddLine(ImVec2(rect.Min.x,rect.Max.y),ImVec2(rect.Max.x,rect.Max.y),ImGui::GetColorU32(chanHeadBase),2.0f*dpiScale);
|
dl->AddLine(ImVec2(rect.Min.x,rect.Max.y),ImVec2(rect.Max.x,rect.Max.y),ImGui::GetColorU32(chanHeadBase),2.0f*dpiScale);
|
||||||
dl->AddText(ImVec2(minLabelArea.x,rect.Min.y+3.0*dpiScale),ImGui::GetColorU32(channelTextColor(i)),chanID);
|
dl->AddTextNoHashHide(ImVec2(minLabelArea.x,rect.Min.y+3.0*dpiScale),ImGui::GetColorU32(channelTextColor(i)),chanID);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -734,14 +734,14 @@ void FurnaceGUI::drawPattern() {
|
||||||
rMax.x-=3.0f*dpiScale;
|
rMax.x-=3.0f*dpiScale;
|
||||||
rMax.y-=6.0f*dpiScale;
|
rMax.y-=6.0f*dpiScale;
|
||||||
dl->AddRectFilledMultiColor(rMin,rMax,fadeCol0,fadeCol0,fadeCol,fadeCol,4.0f*dpiScale);
|
dl->AddRectFilledMultiColor(rMin,rMax,fadeCol0,fadeCol0,fadeCol,fadeCol,4.0f*dpiScale);
|
||||||
dl->AddText(ImVec2(minLabelArea.x,rect.Min.y+6.0*dpiScale),ImGui::GetColorU32(channelTextColor(i)),chanID);
|
dl->AddTextNoHashHide(ImVec2(minLabelArea.x,rect.Min.y+6.0*dpiScale),ImGui::GetColorU32(channelTextColor(i)),chanID);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 3: // split button
|
case 3: // split button
|
||||||
ImGui::Dummy(ImVec2(1.0f,2.0f*dpiScale));
|
ImGui::Dummy(ImVec2(1.0f,2.0f*dpiScale));
|
||||||
//ImGui::SetCursorPosX(minLabelArea.x);
|
//ImGui::SetCursorPosX(minLabelArea.x);
|
||||||
ImGui::TextUnformatted(chanID);
|
ImGui::TextNoHashHide("%s",chanID);
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::PushFont(mainFont);
|
ImGui::PushFont(mainFont);
|
||||||
ImGui::SmallButton(muted?ICON_FA_VOLUME_OFF:ICON_FA_VOLUME_UP);
|
ImGui::SmallButton(muted?ICON_FA_VOLUME_OFF:ICON_FA_VOLUME_UP);
|
||||||
|
@ -764,7 +764,7 @@ void FurnaceGUI::drawPattern() {
|
||||||
rMax.x-=3.0f*dpiScale;
|
rMax.x-=3.0f*dpiScale;
|
||||||
rMax.y-=3.0f*dpiScale;
|
rMax.y-=3.0f*dpiScale;
|
||||||
dl->AddRect(rMin,rMax,fadeCol,0.0f,2.0*dpiScale);
|
dl->AddRect(rMin,rMax,fadeCol,0.0f,2.0*dpiScale);
|
||||||
dl->AddText(ImVec2(minLabelArea.x,rect.Min.y+3.0*dpiScale),ImGui::GetColorU32(channelTextColor(i)),chanID);
|
dl->AddTextNoHashHide(ImVec2(minLabelArea.x,rect.Min.y+3.0*dpiScale),ImGui::GetColorU32(channelTextColor(i)),chanID);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -785,7 +785,7 @@ void FurnaceGUI::drawPattern() {
|
||||||
rMax.x-=3.0f*dpiScale;
|
rMax.x-=3.0f*dpiScale;
|
||||||
rMax.y-=3.0f*dpiScale;
|
rMax.y-=3.0f*dpiScale;
|
||||||
dl->AddRect(rMin,rMax,fadeCol,4.0f*dpiScale,ImDrawFlags_RoundCornersAll,2.0*dpiScale);
|
dl->AddRect(rMin,rMax,fadeCol,4.0f*dpiScale,ImDrawFlags_RoundCornersAll,2.0*dpiScale);
|
||||||
dl->AddText(ImVec2(minLabelArea.x,rect.Min.y+3.0*dpiScale),ImGui::GetColorU32(channelTextColor(i)),chanID);
|
dl->AddTextNoHashHide(ImVec2(minLabelArea.x,rect.Min.y+3.0*dpiScale),ImGui::GetColorU32(channelTextColor(i)),chanID);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue