]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
plugins: unify About window wording 130/head
authorThomas Debesse <dev@illwieckz.net>
Wed, 5 Jun 2019 02:58:28 +0000 (04:58 +0200)
committerThomas Debesse <dev@illwieckz.net>
Sun, 16 Jun 2019 13:22:23 +0000 (15:22 +0200)
also get rid of Q3Radiant, SDRadiant, GTKRadiant references
use RADIANT_NAME definition instead

16 files changed:
contrib/bobtoolz/bobToolz-GTK.cpp
contrib/bobtoolz/ctfToolz-GTK.cpp
contrib/brushexport/plugin.cpp
contrib/brushexport/plugin.h
contrib/camera/camera.cpp
contrib/camera/camera.h
contrib/prtview/AboutDialog.cpp
contrib/prtview/prtview.cpp
contrib/prtview/prtview.h
contrib/shaderplug/shaderplug.cpp
contrib/shaderplug/shaderplug.h
contrib/sunplug/sunplug.cpp
contrib/sunplug/sunplug.h
contrib/ufoaiplug/ufoai.cpp
contrib/ufoaiplug/ufoai.h
radiant/mainframe.cpp

index bbc3979c56332e3ea3ad9abaf954451ea5655fd5..8723a3b222ba0c9f48dd52b336a32c26bc264aea 100644 (file)
@@ -34,6 +34,8 @@
 #include "dialogs/dialogs-gtk.h"
 #include "../../libs/cmdlib.h"
 
+#define PLUGIN_NAME "bobToolz"
+
 void BobToolz_construct(){
 }
 
@@ -56,25 +58,25 @@ void BobToolz_destroy(){
        }
 }
 
-// plugin name
-const char* PLUGIN_NAME = "bobToolz";
-
 // commands in the menu
 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
 ui::Window g_pRadiantWnd{ui::null};
 
-static const char *PLUGIN_ABOUT =   "bobToolz for SDRadiant\n"
-                                                                       "by digibob (digibob@splashdamage.com)\n"
-                                                                       "http://www.splashdamage.com\n\n"
-                                                                       "Additional Contributors:\n"
-                                                                       "MarsMattel, RR2DO2\n";
+static const char *PLUGIN_ABOUT =
+                       PLUGIN_NAME " for "
+                       RADIANT_NAME " " RADIANT_VERSION "\n\n"
+                       "by digibob <digibob@splashdamage.com> (http://www.splashdamage.com)\n\n"
+                       "Additional Contributors: MarsMattel, RR2DO2\n\n"
+                       "Built against "
+                       RADIANT_NAME " " RADIANT_VERSION_STRING "\n"
+                       __DATE__;
 
 extern "C" const char* QERPlug_Init( void* hApp, void* pMainWidget ) {
        g_pRadiantWnd = ui::Window::from(pMainWidget);
 
-       return "bobToolz for GTKradiant";
+       return PLUGIN_NAME " for " RADIANT_NAME;
 }
 
 extern "C" const char* QERPlug_GetName() {
index a69a1a1236c9c4b53bdadb9ed6a6eea2d695a8aa..54a5efcaec8aff8473cb6969af42348fcd5f3fd5 100644 (file)
 
 #include "dialogs/dialogs-gtk.h"
 
+#define PLUGIN_NAME "ctfTools"
+#define CMD_ABOUT = "About..."
+
 // Radiant function table
 _QERFuncTable_1 g_FuncTable;
 _QERAppBSPFrontendTable g_BSPTable;             // for map name
 
 BOOL g_bBSPInitDone                 = FALSE;
 
-// plugin name
-static const char *PLUGIN_NAME = "ctfToolz";
-
 // commands in the menu
-static const char *PLUGIN_COMMANDS = "About...,Colour Changer...,Swap Light Colours,Change Angles 180,Swap Spawn Points";
+static const char *PLUGIN_COMMANDS = ABOUT_CMD ",Colour Changer...,Swap Light Colours,Change Angles 180,Swap Spawn Points";
 
 // globals
 GtkWidget *g_pRadiantWnd = NULL;
 
-static const char *PLUGIN_ABOUT = "ctfToolz for " RADIANT_NAME "\n"
-                                                                 "by djbob\n"
-                                                                 "http://www.planetquake.com/toolz\n\n";
+static const char *PLUGIN_ABOUT =
+                       PLUGIN_NAME for " RADIANT_NAME "\n\n"
+                       "Written by djbob\n\n"
+//                     20190605 dead link
+//                     "http://www.planetquake.com/toolz\n\n"
+//                     http://web.archive.org/web/20140109083123/http://planetquake.gamespy.com/toolz
+                       "Built against "
+                       RADIANT_NAME " " RADIANT_VERSION "\n"
+                       __DATE__;
 
 extern "C" LPVOID WINAPI QERPlug_GetFuncTable(){
        return &g_FuncTable;
@@ -79,7 +85,7 @@ extern "C" void WINAPI QERPlug_Dispatch( LPCSTR p, vec3_t vMin, vec3_t vMax, boo
                }
        }
 
-       if ( !strcmp( p, "About..." ) ) {
+       if ( !strcmp( p, CMD_ABOUT ) ) {
                DoMessageBox( PLUGIN_ABOUT, "About", IDOK );
        }
        else if ( !strcmp( p, "Colour Changer..." ) ) {
index 2a221c7143d201067edc57c3e97c198f8b0d5afb..da30d3394b98a67c5c15fb95656f30c557d1c789 100644 (file)
@@ -43,6 +43,8 @@
 
 #include "typesystem.h"
 
+#define CMD_ABOUT "About..."
+
 void CreateWindow( void );
 void DestroyWindow( void );
 bool IsWindowOpen( void );
@@ -60,18 +62,26 @@ const char* getName(){
        return "Brush export Plugin";
 }
 const char* getCommandList(){
-       return "Export selected as Wavefront Object;About";
+       return CMD_ABOUT ";-;Export selected as Wavefront Object";
 }
 const char* getCommandTitleList(){
        return "";
 }
 
 void dispatch( const char* command, float* vMin, float* vMax, bool bSingleBrush ){
-       if ( string_equal( command, "About" ) ) {
-               GlobalRadiant().m_pfnMessageBox( g_mainwnd, "Brushexport plugin v 2.0 by namespace (www.codecreator.net)\n"
-                                                                                                                                 "Enjoy!\n\nSend feedback to spam@codecreator.net", "About me...",
-                                                                                eMB_OK,
-                                                                                eMB_ICONDEFAULT );
+       if ( string_equal( command, CMD_ABOUT ) ) {
+               const char *label_text =
+                       PLUGIN_NAME " " PLUGIN_VERSION " for "
+                       RADIANT_NAME " " RADIANT_VERSION "\n\n"
+                       "Written by namespace <spam@codecreator.net> (www.codecreator.net)\n\n"
+                       "Built against "
+                       RADIANT_NAME " " RADIANT_VERSION_STRING "\n"
+                       __DATE__;
+
+               GlobalRadiant().m_pfnMessageBox( g_mainwnd, label_text,
+                                                                               "About " PLUGIN_NAME,
+                                                                               eMB_OK,
+                                                                               eMB_ICONDEFAULT );
        }
        else if ( string_equal( command, "Export selected as Wavefront Object" ) ) {
                if ( IsWindowOpen() ) {
@@ -101,7 +111,7 @@ class BrushExportModule : public TypeSystemRef
 _QERPluginTable m_plugin;
 public:
 typedef _QERPluginTable Type;
-STRING_CONSTANT( Name, "brushexport2" );
+STRING_CONSTANT( Name, PLUGIN_NAME );
 
 BrushExportModule(){
        m_plugin.m_pfnQERPlug_Init = &BrushExport::init;
index d924f64728304201369e6b6cebb50994008965a3..a2dc6cb63edc734f2af1377da84862ecde7d85f5 100644 (file)
@@ -22,4 +22,7 @@
 #if !defined( INCLUDED_BRUSH_EXPORT_H )
 #define INCLUDED_BRUSH_EXPORT_H
 
+#define PLUGIN_NAME "BrushExport"
+#define PLUGIN_VERSION "2.0"
+
 #endif
index 338d28ed021612a967ec649c8eb9c6c546c4499c..7d48e213e4b46a73c755ad1f3e15c539d9c4ee91 100644 (file)
@@ -49,12 +49,17 @@ int g_iEditMode = 0;                    // 0: editting points 1: adding points
 int g_iActiveTarget = -1;
 int g_iPreviewRunning = 0;              // 0: no preview 1: start preview 2: preview in progress
 
-static const char *PLUGIN_ABOUT = "Camera v1.0 for " RADIANT_NAME "\n"
-                                                                 "by Arnout van Meer (rr2do2@splashdamage.com)\n\n"
-                                                                 "This product contains software technology\n"
-                                                                 "from id Software, Inc. ('id Technology').\n"
-                                                                 "id Technology (c) 2001, 2002 id Software, Inc.";
-
+static const char *PLUGIN_ABOUT =
+                       PLUGIN_NAME " " PLUGIN_VERSION " for "
+                       RADIANT_NAME " " RADIANT_VERSION "\n\n"
+                       "Written by Arnout van Meer <rr2do2@splashdamage.com)\n\n"
+                       "Written by Geoffrey DeWan <gdewan@prairienet.org>\n\n"
+                       "This product contains software technology\n"
+                       "from id Software, Inc. ('id Technology').\n"
+                       "id Technology (c) 2001, 2002 id Software, Inc.\n\n";
+                       "Built against "
+                       RADIANT_NAME " " RADIANT_VERSION "\n"
+                       __DATE__;
 
 #include "iplugin.h"
 
index ba008a2cc0e2c342137034c54061894848b9c55c..56ce2fea7532980b79384061fe51355584f4e852 100644 (file)
@@ -27,6 +27,9 @@
 #ifndef _CAMERA_H_
 #define _CAMERA_H_
 
+#define PLUGIN_NAME "Camera"
+#define PLUGIN_VERSION "1.0"
+
 typedef unsigned char byte;
 
 #include "mathlib.h"
index 3b996d8866b5532a1c69d3a4334472642866e52e..fec540caa9a8238ae921455bda8235b6d30517a6 100644 (file)
@@ -49,7 +49,7 @@ void DoAboutDlg(){
        int loop = 1, ret = IDCANCEL;
 
        auto dlg = ui::Window(ui::window_type::TOP);
-       gtk_window_set_title(dlg, "About Portal Viewer");
+       gtk_window_set_title(dlg, "About " PLUGIN_NAME);
        dlg.connect("delete_event", G_CALLBACK(dialog_delete_callback), NULL);
        dlg.connect("destroy", G_CALLBACK(gtk_widget_destroy), NULL);
        g_object_set_data(G_OBJECT(dlg), "loop", &loop);
@@ -60,11 +60,15 @@ void DoAboutDlg(){
        dlg.add(hbox);
        gtk_container_set_border_width(GTK_CONTAINER(hbox), 10);
 
-       char const *label_text = "Version 1.000\n\n"
-                       "Gtk port by Leonardo Zide\nleo@lokigames.com\n\n"
-                       "Written by Geoffrey DeWan\ngdewan@prairienet.org\n\n"
-                       "Built against " RADIANT_NAME " " RADIANT_VERSION "\n"
+       const char *label_text =
+                       PLUGIN_NAME " " PLUGIN_VERSION " for "
+                       RADIANT_NAME " " RADIANT_VERSION "\n\n"
+                       "Gtk port by Leonardo Zide <leo@lokigames.com>\n"
+                       "Written by Geoffrey DeWan <gdewan@prairienet.org>\n\n"
+                       "Built against "
+                       RADIANT_NAME " " RADIANT_VERSION_STRING "\n"
                        __DATE__;
+
        auto label = ui::Label(label_text);
        label.show();
        hbox.pack_start( label, TRUE, TRUE, 0);
index 080af13a3c8ba35a8b1e087a4cc7a7865c95b3a5..26783004aa03bba0c6bc1b04e343d8046f66e352 100644 (file)
 #include "LoadPortalFileDialog.h"
 
 #define Q3R_CMD_SPLITTER "-"
-#define Q3R_CMD_ABOUT "About Portal Viewer"
+#define Q3R_CMD_ABOUT "About..."
 #define Q3R_CMD_LOAD "Load .prt file"
 #define Q3R_CMD_RELEASE "Unload .prt file"
 #define Q3R_CMD_SHOW_3D "Toggle portals (3D)"
 #define Q3R_CMD_SHOW_2D "Toggle portals (2D)"
-#define Q3R_CMD_OPTIONS "Configure Portal Viewer"
+#define Q3R_CMD_OPTIONS "Configure..."
 
 CopiedString INIfn;
 
@@ -185,9 +185,6 @@ void INISetInt( const char *key, int val, const char *comment /* = NULL */ ){
        save_var( INIfn.c_str(), CONFIG_SECTION, key, s );
 }
 
-
-// plugin name
-static const char *PLUGIN_NAME = "Portal Viewer";
 // commands in the menu
 static const char *PLUGIN_COMMANDS =
        Q3R_CMD_ABOUT ";"
@@ -203,7 +200,7 @@ static const char *PLUGIN_COMMANDS =
 
 
 const char* QERPlug_Init( void *hApp, void* pMainWidget ){
-       return "Portal Viewer for Q3Radiant";
+       return PLUGIN_NAME " for " RADIANT_NAME;
 }
 
 const char* QERPlug_GetName(){
@@ -294,7 +291,7 @@ class PrtViewPluginModule
 _QERPluginTable m_plugin;
 public:
 typedef _QERPluginTable Type;
-STRING_CONSTANT( Name, "prtview" );
+STRING_CONSTANT( Name, PLUGIN_NAME );
 
 PrtViewPluginModule(){
        m_plugin.m_pfnQERPlug_Init = QERPlug_Init;
index 6b0487826aff3b6b7834b80e9c5488c3e3c21d23..e6942cc99ea3811b0ad7b6bd94c407c9b7092f68 100644 (file)
 #if !defined( INCLUDED_PRTVIEW_H )
 #define INCLUDED_PRTVIEW_H
 
-#define MSG_PREFIX "Portal Viewer plugin: "
+#define PLUGIN_NAME "Portal Viewer"
+#define PLUGIN_VERSION "1.0"
+
+#define MSG_PREFIX PLUGIN_NAME " plugin: "
 
 void InitInstance();
 void SaveConfig();
@@ -31,5 +34,4 @@ void INISetInt( const char *key, int val, const char *comment = 0 );
 const int IDOK                = 1;
 const int IDCANCEL            = 2;
 
-
 #endif
index b71efcb39305ba0f3d9022a3d0538cac13285fc3..e4e601c7632f9b1b17f35ccb624c360d2e1b8db8 100644 (file)
@@ -41,6 +41,8 @@
 
 #include "generic/callback.h"
 
+#define CMD_ABOUT "About..."
+
 namespace {
 const char SHADERTAG_FILE[] = "shadertags.xml";
 }
@@ -70,23 +72,35 @@ const char* init( void* hApp, void* pMainWidget ){
        g_window = ui::Window::from(pMainWidget);
        return "";
 }
+
 const char* getName(){
-       return "ShaderPlug";
+       return PLUGIN_NAME;
 }
+
 const char* getCommandList(){
-       return "About;Create tag file";
+       return CMD_ABOUT ";-;Create tag file";
 }
+
 const char* getCommandTitleList(){
        return "";
 }
+
 void dispatch( const char* command, float* vMin, float* vMax, bool bSingleBrush ){
-       if ( string_equal( command, "About" ) ) {
-               GlobalRadiant().m_pfnMessageBox( g_window, "Shaderplug (1.0)\n\n"
-                                                                                                                                "by Shaderman (shaderman@gmx.net)",
-                                                                                "About",
+       if ( string_equal( command, CMD_ABOUT ) ) {
+               const char *label_text =
+                       PLUGIN_NAME " " PLUGIN_VERSION " for "
+                       RADIANT_NAME " " RADIANT_VERSION "\n\n"
+                       "Written by Shaderman <shaderman@gmx.net>\n\n"
+                       "Built against "
+                       RADIANT_NAME " " RADIANT_VERSION_STRING "\n"
+                       __DATE__;
+
+               GlobalRadiant().m_pfnMessageBox( g_window, label_text,
+                                                                                "About " PLUGIN_NAME,
                                                                                 eMB_OK,
                                                                                 eMB_ICONDEFAULT );
        }
+
        if ( string_equal( command, "Create tag file" ) ) {
                CreateTagFile();
        }
@@ -130,25 +144,25 @@ void GetAllShaders(){
 
 void GetArchiveList(){
        GlobalFileSystem().forEachArchive(makeCallbackF(loadArchiveFile));
-       globalOutputStream() << "Shaderplug: " << (const Unsigned)Shaderplug::archives.size() << " archives found.\n";
+       globalOutputStream() << PLUGIN_NAME ": " << (const Unsigned)Shaderplug::archives.size() << " archives found.\n";
 }
 
 void CreateTagFile(){
        const char* shader_type = GlobalRadiant().getGameDescriptionKeyValue( "shaders" );
 
        GetAllShaders();
-       globalOutputStream() << "Shaderplug: " << (const Unsigned)shaders.size() << " shaders found.\n";
+       globalOutputStream() << PLUGIN_NAME ": " << (const Unsigned)shaders.size() << " shaders found.\n";
 
        if ( string_equal( shader_type, "quake3" ) ) {
                GetTextures( "jpg" );
                GetTextures( "tga" );
                GetTextures( "png" );
 
-               globalOutputStream() << "Shaderplug: " << (const Unsigned)textures.size() << " textures found.\n";
+               globalOutputStream() << PLUGIN_NAME ":" << (const Unsigned)textures.size() << " textures found.\n";
        }
 
        if ( shaders.size() || textures.size() != 0 ) {
-               globalOutputStream() << "Shaderplug: Creating XML tag file.\n";
+               globalOutputStream() << PLUGIN_NAME ":Creating XML tag file.\n";
 
                TagBuilder.CreateXmlDocument();
 
@@ -206,7 +220,7 @@ class ShaderPluginModule
 _QERPluginTable m_plugin;
 public:
 typedef _QERPluginTable Type;
-STRING_CONSTANT( Name, "ShaderPlug" );
+STRING_CONSTANT( Name, PLUGIN_NAME );
 
 ShaderPluginModule(){
        m_plugin.m_pfnQERPlug_Init = &Shaderplug::init;
index d30c625d4ce8ff4f0132a86b47cd862bbc187fd2..a7f198110c2d59c700ca7e9f66f84ce4eba9a307 100644 (file)
@@ -24,4 +24,7 @@
 
 #include "xml/xmltextags.h"
 
+#define PLUGIN_NAME "ShaderPlug"
+#define PLUGIN_VERSION "1.0"
+
 #endif
index 41689042edc46523ce668d3fe720abab12db1f6e..4a02ea4c42f6acb169d15a42d2e23f3548e55eee 100644 (file)
@@ -37,6 +37,8 @@
 
 #include <gtk/gtk.h>     // to display something with gtk (windows, buttons etc.), the whole package might not be necessary
 
+#define CMD_ABOUT "About..."
+
 void about_plugin_window();
 void MapCoordinator();
 
@@ -190,13 +192,13 @@ char MenuList[100] = "";
 
 const char* init( void* hApp, void* pMainWidget ){
        main_window = ui::Window::from(pMainWidget);
-       return "Initializing SunPlug for GTKRadiant";
+       return "Initializing " PLUGIN_NAME " for " RADIANT_NAME;
 }
 const char* getName(){
-       return "SunPlug"; // name that is shown in the menue
+       return PLUGIN_NAME; // name that is shown in the menue
 }
 const char* getCommandList(){
-       const char about[] = "About...";
+       const char about[] = CMD_ABOUT;
        const char etMapCoordinator[] = ";ET-MapCoordinator";
 
        strcat( MenuList, about );
@@ -209,7 +211,7 @@ const char* getCommandTitleList(){
        return "";
 }
 void dispatch( const char* command, float* vMin, float* vMax, bool bSingleBrush ){ // message processing
-       if ( string_equal( command, "About..." ) ) {
+       if ( string_equal( command, CMD_ABOUT ) ) {
                about_plugin_window();
        }
        if ( string_equal( command, "ET-MapCoordinator" ) ) {
@@ -223,7 +225,7 @@ class SunPlugModule : public TypeSystemRef
 _QERPluginTable m_plugin;
 public:
 typedef _QERPluginTable Type;
-STRING_CONSTANT( Name, "SunPlug" );
+STRING_CONSTANT( Name, PLUGIN_NAME );
 
 SunPlugModule(){
        m_plugin.m_pfnQERPlug_Init = &SunPlug::init;
@@ -258,7 +260,7 @@ void about_plugin_window(){
        gtk_window_set_transient_for( window, SunPlug::main_window ); // make the window to stay in front of the main window
        window.connect( "delete_event", G_CALLBACK( delete_event ), NULL ); // connect the delete event
        window.connect( "destroy", G_CALLBACK( destroy ), NULL ); // connect the destroy event for the window
-       gtk_window_set_title( window, "About SunPlug" ); // set the title of the window for the window
+       gtk_window_set_title( window, "About " PLUGIN_NAME ); // set the title of the window for the window
        gtk_window_set_resizable( window, FALSE ); // don't let the user resize the window
        gtk_window_set_modal( window, TRUE ); // force the user not to do something with the other windows
        gtk_container_set_border_width( GTK_CONTAINER( window ), 10 ); // set the border of the window
@@ -266,7 +268,15 @@ void about_plugin_window(){
        auto vbox = ui::VBox( FALSE, 10 ); // create a box to arrange new objects vertically
        window.add(vbox);
 
-       auto label = ui::Label( "SunPlug v1.0 for " RADIANT_NAME " 1.5\nby Topsun" ); // create a label
+       char const *label_text = 
+       PLUGIN_NAME " " PLUGIN_VERSION " for "
+       RADIANT_NAME " " RADIANT_VERSION "\n\n"
+       "Written by Topsun\n\n"
+       "Built against "
+       RADIANT_NAME " " RADIANT_VERSION_STRING "\n"
+       __DATE__;
+
+       auto label = ui::Label( label_text ); // create a label
        gtk_label_set_justify( GTK_LABEL( label ), GTK_JUSTIFY_LEFT ); // text align left
        vbox.pack_start( label, FALSE, FALSE, 2 ); // insert the label in the box
 
index 8ea4f50cca2a9eaced1154a77bcb02d01db6ae8a..402709dfbcafbf589fa2d22995d2b13df2a4e55e 100644 (file)
@@ -19,7 +19,9 @@
  */
 
 #ifndef _PLUGIN_SUNPLUG_
-  #define _PLUGIN_SUNPLUG_
+#define _PLUGIN_SUNPLUG_
 
+#define PLUGIN_NAME "SunPlug"
+#define PLUGIN_VERSION "1.0"
 
 #endif // _PLUGIN_SUNPLUG_
index 99815ab013b670aec626b4f3c0993d7f8e2bf62b..962a2ebd4ea039a100ca129b2f5fe02ad7764d26 100644 (file)
@@ -32,8 +32,6 @@
 
 #include <gtk/gtk.h>
 
-#define PLUGIN_VERSION "0.4"
-
 #include "ifilter.h"
 #include "ibrush.h"
 #include "iundo.h"       // declaration of undo system
@@ -43,6 +41,8 @@
 #include "qerplugin.h"   // declaration to use other interfaces as a plugin
 #include "ieclass.h"
 
+#define CMD_ABOUT "About..."
+
 class UFOAIPluginDependencies :
        public GlobalRadiantModuleRef,  // basic class for all other module refs
        public GlobalUndoModuleRef,     // used to say radiant that something has changed and to undo that
@@ -66,24 +66,29 @@ const char* init( void* hApp, void* pMainWidget ){
        return "Initializing GTKRadiant UFOAI plugin";
 }
 const char* getName(){
-       return "UFO:AI";
+       return PLUGIN_NAME;
 }
 const char* getCommandList(){
        /*GlobalRadiant().getGameName()*/
-       return "About;-;Worldspawn reset;Worldspawn;Perform check;-;Level 1;Level 2;Level 3;Level 4;Level 5;Level 6;Level 7;Level 8;-;StepOn;ActorClip;WeaponClip;Nodraw";
+       return CMD_ABOUT ";-;Worldspawn reset;Worldspawn;Perform check;-;Level 1;Level 2;Level 3;Level 4;Level 5;Level 6;Level 7;Level 8;-;StepOn;ActorClip;WeaponClip;Nodraw";
 }
 const char* getCommandTitleList(){
        return "";
 }
 void dispatch( const char* command, float* vMin, float* vMax, bool bSingleBrush ){
        char const *message = NULL;
-       if ( string_equal( command, "About" ) ) {
-               char const *version_string = "UFO:AI Plugin (http://ufoai.sf.net)\nBuild: " __DATE__
-                       "\nRadiant version: " RADIANT_VERSION
-                       "\nPlugin version: " PLUGIN_VERSION
-                       "\nAuthor: Martin Gerhardy (tlh2000/mattn)\n";
+       if ( string_equal( command, CMD_ABOUT ) ) {
+               const char *label_text = 
+                       PLUGIN_NAME " " PLUGIN_VERSION " for "
+                       RADIANT_NAME " " RADIANT_VERSION "\n\n"
+                       "Written by Martin Gerhardy (tlh2000/mattn)\n"
+                       "for the UFO:AI project (http://ufoai.sf.net)\n\n"
+                       "Built against "
+                       RADIANT_NAME " " RADIANT_VERSION_STRING "\n"
+                       __DATE__;
+
                GlobalRadiant().m_pfnMessageBox( g_mainwnd,
-                                                                                version_string, "About",
+                                                                                label_text, "About" PLUGIN_NAME,
                                                                                 eMB_OK, eMB_ICONDEFAULT );
        }
        else if ( string_equal( command, "Level 1" ) ) {
index 38ad4ccf437889cef010cd0190e4a7cf35b8d597..4611e3c49d1fa8c7af95c5331f02f33eec895331 100644 (file)
@@ -19,4 +19,7 @@
 #if !defined( INCLUDED_UFOAI_H )
 #define INCLUDED_UFOAI_H
 
+#define PLUGIN_NAME "UFO:AI"
+#define PLUGIN_VERSION "0.4"
+
 #endif
index a1c35919307495e42eba0a5a705d966e4b73bc1a..d84fe69fbfa02201b0179fbe6f44d3682d883f46 100644 (file)
@@ -2378,7 +2378,7 @@ ui::MenuItem create_help_menu(){
 
        create_menu_item_with_mnemonic( menu, "Bug report", makeCallbackF(OpenBugReportURL) );
        create_menu_item_with_mnemonic( menu, "Shortcuts list", makeCallbackF(DoCommandListDlg) );
-       create_menu_item_with_mnemonic( menu, "_About", makeCallbackF(DoAbout) );
+       create_menu_item_with_mnemonic( menu, "_About...", makeCallbackF(DoAbout) );
 
        return help_menu_item;
 }