mirror of https://github.com/WerWolv/ImHex
parent
51547dc941
commit
cae0f772d5
|
|
@ -37,13 +37,18 @@ namespace hex::fonts {
|
|||
});
|
||||
}
|
||||
|
||||
u32 index = 0;
|
||||
for (const auto &[path, fontName] : hex::getFonts()) {
|
||||
ImGui::PushID(index);
|
||||
if (ImGui::Selectable(limitStringLength(fontName, 50).c_str(), m_path == path)) {
|
||||
m_path = path;
|
||||
m_pixelPerfectFont = false;
|
||||
changed = true;
|
||||
}
|
||||
ImGui::SetItemTooltip("%s", fontName.c_str());
|
||||
ImGui::PopID();
|
||||
|
||||
index += 1;
|
||||
}
|
||||
|
||||
ImGui::EndCombo();
|
||||
|
|
|
|||
Loading…
Reference in New Issue