chtooltip updates... again

fix tile overflow
add psg to hierarchy
update hierarchy (ext.ops after fm)
This commit is contained in:
Eknous-P 2024-10-13 18:31:46 +04:00 committed by tildearrow
parent 721c3b55b6
commit 17da58c0ca
4 changed files with 28 additions and 5 deletions

View file

@ -298,12 +298,17 @@ void FurnaceGUI::drawSystemChannelInfo(const DivSysDef* whichDef) {
ImDrawList* dl=ImGui::GetWindowDrawList();
const ImVec2 p=ImGui::GetCursorScreenPos();
float scaler=5.0f*dpiScale;
float x=p.x+dpiScale;
float x=p.x, y=p.y;
float tooltipWidth=MIN(scrW*dpiScale,400.0f*dpiScale);
for (int i=0; i<whichDef->channels; i++) {
dl->AddRectFilled(ImVec2(x,p.y),ImVec2(x+1.5f*scaler,p.y+1.0f*scaler),ImGui::GetColorU32(uiColors[whichDef->chanTypes[i]+GUI_COLOR_CHANNEL_FM]),scaler);
dl->AddRectFilled(ImVec2(x,y),ImVec2(x+1.5f*scaler,y+1.0f*scaler),ImGui::GetColorU32(uiColors[whichDef->chanTypes[i]+GUI_COLOR_CHANNEL_FM]),scaler);
x+=2.0f*scaler;
if ((x+1.5f*scaler)>tooltipWidth+p.x) {
x=p.x;
y+=1.5f*scaler;
}
}
ImGui::Dummy(ImVec2(0,4*scaler));
ImGui::Dummy(ImVec2(0,(y-p.y)+1.5f*scaler));
}
void FurnaceGUI::drawSystemChannelInfoText(const DivSysDef* whichDef) {