2020-12-27 15:39:06 +01:00
|
|
|
#include <plugin.hpp>
|
2020-12-22 18:10:01 +01:00
|
|
|
|
|
|
|
#include <views/view.hpp>
|
|
|
|
|
|
|
|
class ViewExample : public hex::View {
|
|
|
|
public:
|
|
|
|
ViewExample() : hex::View("Example") {}
|
|
|
|
~ViewExample() override {}
|
|
|
|
|
|
|
|
void drawContent() override {
|
|
|
|
if (ImGui::Begin("Example")) {
|
|
|
|
ImGui::Text("Custom plugin window");
|
|
|
|
}
|
|
|
|
ImGui::End();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
IMHEX_PLUGIN {
|
|
|
|
|
|
|
|
View* createView() {
|
|
|
|
return new ViewExample();
|
|
|
|
}
|
|
|
|
|
|
|
|
void drawToolsEntry() {
|
|
|
|
if (ImGui::CollapsingHeader("Example Tool")) {
|
|
|
|
ImGui::Text("Custom Plugin tool");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|