2021-01-13 17:28:27 +01:00
|
|
|
#include <hex/plugin.hpp>
|
2020-12-22 18:10:01 +01:00
|
|
|
|
2021-01-13 17:28:27 +01:00
|
|
|
#include <hex/views/view.hpp>
|
2020-12-22 18:10:01 +01:00
|
|
|
|
|
|
|
class ViewExample : public hex::View {
|
|
|
|
public:
|
2022-01-24 20:53:17 +01:00
|
|
|
ViewExample() : hex::View("Example") { }
|
|
|
|
~ViewExample() override { }
|
2020-12-22 18:10:01 +01:00
|
|
|
|
|
|
|
void drawContent() override {
|
|
|
|
if (ImGui::Begin("Example")) {
|
2021-12-31 01:10:06 +01:00
|
|
|
ImGui::TextUnformatted("Custom plugin window");
|
2020-12-22 18:10:01 +01:00
|
|
|
}
|
|
|
|
ImGui::End();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2021-10-16 11:37:29 +02:00
|
|
|
IMHEX_PLUGIN_SETUP("Example C++", "WerWolv", "Example C++ plugin used as template for plugin devs") {
|
2020-12-22 18:10:01 +01:00
|
|
|
|
2021-01-12 16:50:15 +01:00
|
|
|
ContentRegistry::Views::add<ViewExample>();
|
2020-12-22 18:10:01 +01:00
|
|
|
}
|