mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user