GUI: compact sample editor
automatic button layout depending on available width
This commit is contained in:
parent
69e3515757
commit
012d43b331
3 changed files with 33 additions and 22 deletions
|
|
@ -497,6 +497,15 @@ bool FurnaceGUI::InvCheckbox(const char* label, bool* value) {
|
|||
return false;
|
||||
}
|
||||
|
||||
void FurnaceGUI::sameLineMaybe(float width) {
|
||||
if (width<0.0f) width=ImGui::GetFrameHeight();
|
||||
|
||||
logV("sameLineMaybe: %f %f",ImGui::GetContentRegionAvail().x,width);
|
||||
|
||||
ImGui::SameLine();
|
||||
if (ImGui::GetContentRegionAvail().x<width) ImGui::NewLine();
|
||||
}
|
||||
|
||||
const char* FurnaceGUI::getSystemName(DivSystem which) {
|
||||
/*
|
||||
if (settings.chipNames) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue