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