feat: Added Achievements (#1230)

This PR adds Achievements to ImHex that serve as both a guide and a fun
way to learn more about ImHex and reverse engineering
This commit is contained in:
Nik
2023-08-06 21:33:15 +02:00
committed by GitHub
parent 64a0c3f6e2
commit e77f138514
61 changed files with 1427 additions and 22 deletions

View File

@@ -21,8 +21,10 @@
#include <hex/api/imhex_api.hpp>
#include <hex/api/content_registry.hpp>
#include <hex/helpers/utils.hpp>
#include <hex/api/achievement_manager.hpp>
#include <hex/api/localization.hpp>
#include <hex/helpers/utils.hpp>
#include <content/helpers/math_evaluator.hpp>
#include <imgui.h>
@@ -332,6 +334,7 @@ namespace hex::plugin::builtin::ui {
if (ImGui::IsItemHovered() && ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) {
this->m_editingPattern = &pattern;
this->m_editingPatternOffset = pattern.getOffset();
AchievementManager::unlockAchievement("hex.builtin.achievement.patterns", "hex.builtin.achievement.patterns.modify_data.name");
}
ImGui::SameLine(0, 0);