//
// Code by reyalP aka Reed Mideke
//
-// Based on
+// Based on
//
/*
v0.25
- tooltips, follow gtkradiant coding conventions
- Why ?
- -----
- http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=88
-
-
How ?
-----
- textures 'n widgets 'n stuff.
#include "bkgrnd2d.h"
#include "dialog.h"
-#define CMD_SEP "-"
+#define CMD_SEP "-"
#define CMD_CONFIG "Configure..."
#define CMD_ABOUT "About..."
// =============================================================================
static const char *PLUGIN_NAME = "2d window background plugin";
//backwards for some reason
-static const char *PLUGIN_COMMANDS = CMD_ABOUT ";"
+static const char *PLUGIN_COMMANDS = CMD_ABOUT ";"
CMD_SEP ";"
CMD_CONFIG
;
#define NUM_TOOLBAR_BUTTONS 4
struct toolbar_button_info_s
{
- char *image;
- char *text;
- char *tip;
+ const char *image;
+ const char *text;
+ const char *tip;
void (*func)();
IToolbarButton::EType type;
};
-struct toolbar_button_info_s toolbar_buttons[NUM_TOOLBAR_BUTTONS] =
+struct toolbar_button_info_s toolbar_buttons[NUM_TOOLBAR_BUTTONS] =
{
{
"bkgrnd2d_xy_toggle.bmp",
extern "C" void QERPlug_Dispatch (const char *p, vec3_t vMin, vec3_t vMax, bool bSingleBrush)
{
- Sys_Printf (MSG_PREFIX "Command \"%s\"\n",p);
+ Sys_Printf (MSG_PREFIX "Command \"%s\"\n",p);
if(!strcmp(p, CMD_ABOUT)) {
g_FuncTable.m_pfnMessageBox(NULL, PLUGIN_ABOUT, "About", MB_OK, NULL);
- }
+ }
else if(!strcmp(p,CMD_CONFIG)) {
ShowBackgroundDialog();
}
//TODO these three suck
void DoBkgrndToggleXY()
{
- Sys_Printf (MSG_PREFIX "DoBkgrndToggleXY\n");
+ Sys_Printf (MSG_PREFIX "DoBkgrndToggleXY\n");
// always toggle, since the buttons do
backgroundXY.m_bActive = (backgroundXY.m_bActive) ? false:true;
// if we don't have image or extents, and we activated,
void DoBkgrndToggleXZ()
{
- Sys_Printf (MSG_PREFIX "DoBkgrndToggleXZ\n");
+ Sys_Printf (MSG_PREFIX "DoBkgrndToggleXZ\n");
backgroundXZ.m_bActive = (backgroundXZ.m_bActive) ? false:true;
if(backgroundXZ.m_bActive && !backgroundXZ.Valid())
ShowBackgroundDialogPG(1);
void DoBkgrndToggleYZ()
{
- Sys_Printf (MSG_PREFIX "DoBkgrndToggleYZ\n");
+ Sys_Printf (MSG_PREFIX "DoBkgrndToggleYZ\n");
backgroundYZ.m_bActive = (backgroundYZ.m_bActive) ? false:true;
if(backgroundYZ.m_bActive && !backgroundYZ.Valid())
ShowBackgroundDialogPG(2);
CSynapseServer* g_pSynapseServer = NULL;
CSynapseClientBkgrnd2d g_SynapseClient;
-
+
#if __GNUC__ >= 4
#pragma GCC visibility push(default)
#endif