==============================================================================
PCL2ED - provisional Lemmings 2 level editor
==============================================================================
written by geoo89, with the use of:
	OpenGLut/freeGLuT (GL utility toolkit)
	lem2zip by Mindless
------------------------------------------------------------------------------


Table of Contents

1	Introduction
2	Usage
3	Controls
4	Changelog
5	Acknowledgements

------------------------------------------------------------------------------


-------------------
1. Introduction
-------------------

PCL2ED is a provisional Lemmings 2 level editor which does not support editing level statistics.
It is recommended to use it together with L2Suite (http://geoo.digibase.ca/L2Suite/) and the editors supported by it, as the controls are somewhat unintuitive and the program might not be fully stable.

Original release thread: http://henriwatson.com/lemmings/index.php?topic=361.0 (outdated)

Source and some other related stuff can be found here: http://geoo.digibase.ca/PCL2ED/

Note: Program (likely) needs OpenGL32.dll to run.

-------------------
2. Usage
-------------------

First put the program into the main Lemmings 2 directory.

The program runs via commandline, with the parameter being the path of a level file. If you feed it with anything else, it will crash.
e.g. for Classic 1: PCL2ED.exe levels/level000.dat

Using L2Suite, the program can also be run without explicitely invoking the commandline.

Compression support has been added by now thanks to Mindless.


-------------------
3. Controls
-------------------

When editing, there are 4 modes: NoDraw, Sprite, Tile and Object.
In any mode, doubleclicking the right mousebutton will select the object under the cursor; if there is no object under the cursor, it will select the sprite under the cursor; and switch into the respective mode.
Singleclicking the right mousebutton will take you back to NoDraw mode.

The action of left-clicking is dependent on mode.
In NoDraw and Object mode, it will select the object under the cursor. If there is no object under the cursor, in NoDraw mode it will do nothing. In Object mode it will draw a new object.
In Sprite/Tile mode, leftclicking will draw Sprite/Tile respectively.

Key settings:

+/-		In NoDraw mode: to change the level arrangement, i.e. the amount of sprites per row. This will affect all rows, and the level will have to be fully re-designed then
		In object mode: change the object ID
Arrow keys	In any mode but Object mode: Change the view window of the level
		In Object mode: move the selected object
WASD		In Object mode: extends/contracts the selected object, i.e. for some objects like steel, water or the swing chain it is possible line up replicates of an object horizontally or vertically
Delete key	Deletes the selected object
'B'		Toggle background draw, i.e. whether terrain (Sprites/Tiles) is solid or background
F3		Save the level.

-------------------
4. Changelog
-------------------

08-09-09:
	initial release
09-10-28:
	bugfix: bugs that made the program crash or not display correctly on most systems fixed.
09-12-12:
	feature: compression support added. Style/level filed don't need to be uncompressed anymore.

-------------------
5. Acknowledgements
-------------------

Thanks to:
	- Mindless: for lem2zip and its source
	- ccexplore: some additional information on the L2 objects format (even though I didn't make use of it yet)