2005-06-28 01:04:34 +02:00
|
|
|
#ifndef MESSAGES_H__
|
|
|
|
#define MESSAGES_H__
|
|
|
|
|
2005-09-30 02:59:42 +02:00
|
|
|
#include "MessagesSetup.h"
|
2005-08-20 19:37:48 +02:00
|
|
|
|
2005-06-28 01:04:34 +02:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2005-09-30 02:59:42 +02:00
|
|
|
COMMAND(CommandString,
|
|
|
|
((std::string, name))
|
|
|
|
);
|
2005-09-15 07:31:49 +02:00
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2005-09-30 02:59:42 +02:00
|
|
|
COMMAND(SetContext,
|
|
|
|
((void*, context))
|
|
|
|
);
|
|
|
|
|
|
|
|
COMMAND(ResizeScreen,
|
|
|
|
((int, width))
|
|
|
|
((int, height))
|
|
|
|
);
|
2005-06-25 04:21:26 +02:00
|
|
|
|
2005-06-28 01:04:34 +02:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2005-09-30 02:59:42 +02:00
|
|
|
COMMAND(GenerateMap,
|
|
|
|
((int, size)) // size in number of patches
|
|
|
|
);
|
2005-06-25 04:21:26 +02:00
|
|
|
|
2005-09-30 02:59:42 +02:00
|
|
|
COMMAND(LoadMap,
|
|
|
|
((std::wstring, filename))
|
|
|
|
);
|
2005-06-25 04:21:26 +02:00
|
|
|
|
2005-06-28 01:04:34 +02:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2005-09-30 02:59:42 +02:00
|
|
|
COMMAND(RenderStyle,
|
|
|
|
((bool, wireframe))
|
|
|
|
);
|
2005-09-14 07:37:52 +02:00
|
|
|
|
2005-10-09 05:26:16 +02:00
|
|
|
COMMAND(MessageTrace,
|
|
|
|
((bool, enable))
|
|
|
|
);
|
|
|
|
|
2005-10-24 03:53:03 +02:00
|
|
|
COMMAND(Screenshot,
|
|
|
|
((int, tiles)) // the final image will be (640*tiles)x(480*tiles)
|
|
|
|
);
|
|
|
|
|
2005-09-12 22:04:26 +02:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
2005-10-04 04:50:59 +02:00
|
|
|
|
2005-10-09 05:26:16 +02:00
|
|
|
COMMAND(Brush,
|
2005-10-04 04:50:59 +02:00
|
|
|
((int, width)) // number of vertices
|
|
|
|
((int, height))
|
|
|
|
((float*, data)) // width*height array, allocated with new[]
|
|
|
|
);
|
|
|
|
|
|
|
|
COMMAND(BrushPreview,
|
|
|
|
((bool, enable))
|
|
|
|
((Position, pos)) // only used if enable==true
|
|
|
|
);
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
2005-09-30 02:59:42 +02:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
2005-09-12 22:04:26 +02:00
|
|
|
|
2005-07-03 18:25:48 +02:00
|
|
|
|
2005-09-30 02:59:42 +02:00
|
|
|
struct eScrollConstantDir { enum { FORWARDS, BACKWARDS, LEFT, RIGHT }; };
|
|
|
|
INPUT(ScrollConstant,
|
|
|
|
((int, dir))
|
|
|
|
((float, speed)) // set speed 0.0f to stop scrolling
|
|
|
|
);
|
2005-07-03 18:25:48 +02:00
|
|
|
|
2005-09-30 02:59:42 +02:00
|
|
|
struct eScrollType { enum { FROM, TO }; };
|
|
|
|
INPUT(Scroll, // for scrolling by dragging the mouse FROM somewhere TO elsewhere
|
|
|
|
((int, type))
|
|
|
|
((Position, pos))
|
|
|
|
);
|
2005-09-15 07:31:49 +02:00
|
|
|
|
2005-09-30 02:59:42 +02:00
|
|
|
INPUT(SmoothZoom,
|
|
|
|
((float, amount))
|
|
|
|
);
|
2005-06-28 01:04:34 +02:00
|
|
|
|
2005-09-30 02:59:42 +02:00
|
|
|
struct eRotateAroundType { enum { FROM, TO }; };
|
|
|
|
INPUT(RotateAround,
|
|
|
|
((int, type))
|
|
|
|
((Position, pos))
|
|
|
|
);
|
2005-07-03 18:25:48 +02:00
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
2005-09-30 02:59:42 +02:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
2005-07-03 18:25:48 +02:00
|
|
|
|
2005-09-30 02:59:42 +02:00
|
|
|
WORLDCOMMAND(AlterElevation, MERGE,
|
|
|
|
((Position, pos))
|
|
|
|
((float, amount))
|
|
|
|
);
|
2005-07-03 18:25:48 +02:00
|
|
|
|
2005-09-30 02:59:42 +02:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
2005-06-28 01:04:34 +02:00
|
|
|
|
2005-09-30 02:59:42 +02:00
|
|
|
#include "MessagesSetup.h"
|
2005-06-28 01:04:34 +02:00
|
|
|
|
2005-07-03 18:25:48 +02:00
|
|
|
#endif // MESSAGES_H__
|