GUI: new osc renderer, part 12

This commit is contained in:
tildearrow 2024-02-14 04:09:24 -05:00
parent 4242e79144
commit 523a290374
5 changed files with 103 additions and 35 deletions

View file

@ -4679,6 +4679,11 @@ bool FurnaceGUI::loop() {
pushToggleColors(newOscCode);
if (ImGui::Button("New Code")) newOscCode=!newOscCode;
popToggleColors();
ImGui::AlignTextToFramePadding();
ImGui::Text("Line size");
ImGui::SameLine();
ImGui::SetNextItemWidth(120.0f*dpiScale);
ImGui::InputFloat("##NewCodeLS",&newOscLineWidth,1,1,"%.1f");
} else if (renderBackend==GUI_BACKEND_GL) {
ImGui::Text("Master, are you playing a trick on me?\nThat's not very nice!");
} else {
@ -6949,6 +6954,8 @@ bool FurnaceGUI::init() {
}
}
newOscLineWidth=dpiScale;
updateWindowTitle();
rend->clear(ImVec4(0.0,0.0,0.0,1.0));
@ -7327,6 +7334,7 @@ FurnaceGUI::FurnaceGUI():
shallDetectScale(0),
cpuCores(0),
secondTimer(0.0f),
newOscLineWidth(2.0f),
userEvents(0xffffffff),
mobileMenuPos(0.0f),
autoButtonSize(0.0f),