mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
refactor: Move custom ImGui functions to ImGuiExt namespace (#1427)
Co-authored-by: Nik <werwolv98@gmail.com>
This commit is contained in:
@@ -34,7 +34,7 @@ namespace hex::plugin::builtin {
|
||||
void drawCommitHistoryPage();
|
||||
void drawLicensePage();
|
||||
|
||||
ImGui::Texture m_logoTexture;
|
||||
ImGuiExt::Texture m_logoTexture;
|
||||
|
||||
std::future<HttpRequest::Result<std::string>> m_releaseNoteRequest, m_commitHistoryRequest;
|
||||
u32 m_clickCount = 0;
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace hex::plugin::builtin {
|
||||
void drawContent() override {
|
||||
auto* provider = ImHexApi::Provider::get();
|
||||
|
||||
ImGui::TextFormattedWrapped("{}", static_cast<const char *>("hex.builtin.view.pattern_editor.accept_pattern.desc"_lang));
|
||||
ImGuiExt::TextFormattedWrapped("{}", static_cast<const char *>("hex.builtin.view.pattern_editor.accept_pattern.desc"_lang));
|
||||
|
||||
std::vector<std::string> entries;
|
||||
entries.resize(this->m_view->m_possiblePatternFiles.get(provider).size());
|
||||
@@ -64,7 +64,7 @@ namespace hex::plugin::builtin {
|
||||
if (ImGui::IsItemHovered() && ImGui::IsMouseDoubleClicked(0))
|
||||
this->m_view->loadPatternFile(this->m_view->m_possiblePatternFiles.get(provider)[this->m_selectedPatternFile], provider);
|
||||
|
||||
ImGui::InfoTooltip(wolv::util::toUTF8String(path).c_str());
|
||||
ImGuiExt::InfoTooltip(wolv::util::toUTF8String(path).c_str());
|
||||
|
||||
index++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user