diff --git a/main.cpp b/main.cpp deleted file mode 100644 index fdf48f2..0000000 --- a/main.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#include -#include -#include -#include - - -reflect::ReflectAPI* api = nullptr; -reflect::ComponentId button1; -reflect::ComponentId titleText; -reflect::ComponentId textText; - -void onClick(reflect::ComponentId btn) { - const char* titleStr = api->getText(titleText); - const char* textStr = api->getText(textText); - MessageBoxA(nullptr, textStr, titleStr, MB_OK); -} -extern "C" __declspec(dllexport) void reflectMain(reflect::ReflectAPI* api_) { - api = api_; - button1 = api->getComponentById("btn1"); - - titleText = api->getComponentById("text1"); - textText = api->getComponentById("text2"); - api->setOnClick(button1, onClick); - -}; \ No newline at end of file