2021-01-13 16:28:27 +00:00
|
|
|
#include <hex/plugin.hpp>
|
2020-12-22 17:10:01 +00:00
|
|
|
|
2021-01-13 16:28:27 +00:00
|
|
|
#include <hex/views/view.hpp>
|
2020-12-22 17:10:01 +00:00
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2021-02-19 12:22:12 +00:00
|
|
|
IMHEX_PLUGIN_SETUP("Example", "WerWolv", "Example plugin used as template for plugin devs") {
|
2020-12-22 17:10:01 +00:00
|
|
|
|
2021-01-12 15:50:15 +00:00
|
|
|
ContentRegistry::Views::add<ViewExample>();
|
2020-12-22 17:10:01 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|