Changeset 216
- Timestamp:
- 03/16/08 12:24:26 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
GtkRadiant/branches/ZeroRadiant/plugins/model/plugin.cpp
r214 r216 165 165 static const char *PLUGIN_NAME = "Model loading module"; 166 166 static const char *PLUGIN_COMMANDS = "About;-;Flush & Reload Models;Flush & Reload Selected"; 167 static const char *PLUGIN_ABOUT = "Model Module v1.0 for GtkRadiant\nby Arnout van Meer (rr2do2@splashdamage.com)\n\nBased on the MD3Model Module by SPoG\nPicoModel Library Copyright (c) 2002, Randy Reddig & seaw0lf ";167 static const char *PLUGIN_ABOUT = "Model Module v1.0 for GtkRadiant\nby Arnout van Meer (rr2do2@splashdamage.com)\n\nBased on the MD3Model Module by SPoG\nPicoModel Library Copyright (c) 2002, Randy Reddig & seaw0lf\n\nSupported models:\n"; 168 168 169 169 extern "C" const char* QERPlug_Init (void *hApp, void* pMainWidget) … … 189 189 else if( !strcmp( p, "Flush & Reload Models" ) ) 190 190 DoFlushReloadAll(); 191 else if( !strcmp( p, "About" ) ) 192 g_FuncTable.m_pfnMessageBox(NULL, PLUGIN_ABOUT, "About", MB_OK, NULL); 191 else if( !strcmp( p, "About" ) ) { 192 const picoModule_t** modules = PicoModuleList( NULL ); 193 char about_buf[1024]; 194 strncpy(about_buf, PLUGIN_ABOUT, sizeof(about_buf) - 1); 195 while(*modules != NULL) { 196 const picoModule_t* module = *modules++; 197 strncat(about_buf, module->displayName, sizeof(about_buf) - 1); 198 strncat(about_buf, " (", sizeof(about_buf) - 1); 199 strncat(about_buf, module->defaultExts[0], sizeof(about_buf) - 1); 200 strncat(about_buf, ")\n\t", sizeof(about_buf) - 1); 201 strncat(about_buf, module->copyright, sizeof(about_buf) - 1); 202 strncat(about_buf, "\n", sizeof(about_buf) - 1); 203 } 204 g_FuncTable.m_pfnMessageBox(NULL, about_buf, "About", MB_OK, NULL); 205 } 193 206 } 194 207
