static const char* PLUGIN_COMMANDS = "About...,-,Reset Textures...,PitOMatic,-,Vis Viewer,Brush Cleanup,Polygon Builder,Caulk Selection,-,Tree Planter,Drop Entity,Plot Splines,-,Merge Patches,Split patches,Split patches cols,Split patches rows,Turn edge";
// globals
-static ui::Window g_pRadiantWnd{ui::null};
+static ui::Window main_window{ui::null};
extern "C" const char* QERPlug_Init( void* hApp, void* pMainWidget ) {
- g_pRadiantWnd = ui::Window::from(pMainWidget);
+ main_window = ui::Window::from(pMainWidget);
return PLUGIN_NAME " for " RADIANT_NAME;
}
RADIANT_NAME " " RADIANT_VERSION_STRING "\n"
__DATE__;
- GlobalRadiant().m_pfnMessageBox( g_pRadiantWnd, label_text,
+ GlobalRadiant().m_pfnMessageBox( main_window, label_text,
"About " PLUGIN_NAME,
eMB_OK,
eMB_ICONDEFAULT );
static const char *PLUGIN_COMMANDS = ABOUT_CMD ",Colour Changer...,Swap Light Colours,Change Angles 180,Swap Spawn Points";
// globals
-GtkWidget *g_pRadiantWnd = NULL;
+GtkWidget *main_window = NULL;
extern "C" LPVOID WINAPI QERPlug_GetFuncTable(){
return &g_FuncTable;
}
extern "C" LPCSTR WINAPI QERPlug_Init( HMODULE hApp, GtkWidget* pMainWidget ){
- g_pRadiantWnd = pMainWidget;
+ main_window = pMainWidget;
memset( &g_FuncTable, 0, sizeof( _QERFuncTable_1 ) );
g_FuncTable.m_fVersion = QER_PLUG_VERSION;
g_FuncTable.m_nSize = sizeof( _QERFuncTable_1 );
RADIANT_NAME " " RADIANT_VERSION "\n"
__DATE__;
- GlobalRadiant().m_pfnMessageBox( g_pRadiantWnd, label_text,
+ GlobalRadiant().m_pfnMessageBox( main_window, label_text,
"About " PLUGIN_NAME,
eMB_OK,
eMB_ICONDEFAULT );