
Bug: Done
After Map: To Fit is pressed, the slider is not set correctly



Done: (see tooltip)
button in map edit to "replace"



done:
Sprite: surround by black!

BUG:
Bei horziontal Wrap wird tile Column 0 übersprungen (rect)
Vertical -> not tested
-> test with "small" map, no bug apperent...


Bug:
Save does not save variants?
Test with Desert Sand
-> tile data was not correctly set to variant

Done: map was set twice to mappanel, which did a deinit!
Bug in Sprite Edit
- when "enable updates when not in viewport
  then in sprite edit does not update!???


Bug:
^Log/Debug/Credit/Help/Config/Navi now is displayed as maximized window.
Was seemingly introduced with new "GAME" changes in Main Window!
Bug:
 Title Screen does not resize after above windows were opened (and closed)!
-> fixed (rewind) but introduced the darn illigal state exception again :-(
set non displayed desktop panel to invisible? -> doesnt help


Done: stupid bug, gave null instead of pool
Bug:
GraniteReder (example) 
Variants not working anymore?

Done:
Bug:
Mouse selection Grid in low zooms -> not correct size, -> is correct, see: Scaler.overlappedScaling
TODO:
For mouse selection, Scale 100% correct!

done:
Add fog of war, should go on total map size
-> TestMap
Was correct - but now I reset all map coordinates to 0,0 in front


Fog of War
Tile replaced with EMPTY tile.
if all tiles empty -> remove layer


Bug - bisher so gewollt:
Sprites bewegen sich automatisch nur wenn Sie sichtbar sind - oder immer?
- done: Einstellbar bei Sprites!


Have a flag in sprite to "unable" movement
and/or enable movement by "coordinator" in stead of animation!
-> should be handled by coordinator

Sprite:
- still todo: testpanel for movement offsets
- do a sprite "display" panel... that uses it
- testing


Test:
Sprite uses Force Size!
-> Done: works
-> done: Question open: What to do with movement? -> Switch for scaling!



Done: Select and "edit" sprites in layer!

TMap
done: (untested) Join Layers -> respect sprites!


done: subsequent ation is not saved!
done: Upon saving a map remember where sprite was put!
done: (with events) Option enable Map Wrapping on out of bounds of sprite movement!

Bug:
done Deltas in sprite Editing dont seem to work anymore

Bug:
After placemnet to 0,0 (TestMap) the Tiles/Grid are off by about 10,10 -> nO bUG; THERE ARE DIFFERENT SIZED TILES ON ETHE MAP
tHE TREe has a size offset. If all Tiles were same size it would work.
No Algorithm can considder different sized tiles and chose the (arbritrary) right set! 


Layers can have sprites
Sprite drawing and positioning as tiles - but multiple actions
-> DONE: in Sprite done, tile & sprite now use Paintable!
-> Done: add sprites to layer map and display in map



done: Actions of a sprite must have follow actions!
done: remove: directions / actions
done: new actions can not be added
Sprite:
- done: button new sprite
- done: saveing to file that exists OVERWRITES file -> should be "append"
- done: still todo: add actions which are user defined (also after loading)



Cropping starts working again -> BUT

I should add another offset for "PRE" Cropping start Offset Correctnedd
-> at the moment each animation is in itself ok,
but the offsets regarding pre cropping to the original offsets are not present anymore
-> meaning a 96x96 boy all animations displays differently to all cropped animations
, since all cropped animations have a different start point!
FORGET IT -> THIS IS EXACTLY WHAT THE CHECKBOX KEEP OFFSETS IS FOR IN THE FIRST PLACE!!!!




Serious Bug -> Croping does not crop from complete image, but from a sub image of size of one sequence image ->
negative coordinates -> exception ->

Load from Large Image X, Y
and USE NOW on current subImage X,Y



Memory leak in Graphic fixed -> needed to uninitialize SingleImages and Image Components!


Bug ISO Wrapping
- Test with NewISOWrap -> wrapping is of by 2 1/2 lines!

Doc:
- ok Wrapping + Transitioning -> ONLY if map is regular!
- ok dont edit when in wraped mode!
- ok ISO - Block wrap
- ok Documentation for Transitions tiles WITH / WITHOUT Wrapping -> differences
- ok Documentation Block ISO Wrapping
- ok CTRL deletes tile
- ok ALT grabs tile
- ok click / SHIFT sets tile

Doc:

Tips:
- ok how to build an ISO Artifact Filter (rotate)
- ok how to place ISO files (overlap no, but now file on single and grid snap on)
- ok What is Assume ISO
- ok what to do to make an ISO Regular?
(display Regular?)
- ok What is the meaning of Attributes of an composite Tile -> NOT the attributes of the single tiles-> but to have grow options!
- ok build a "Link" section 
- ok explain how ISO mouse mapping is realized

TODO:
Navigation Panel in Map minimap navigation...
-> done


Bug;
Position 0,0 by use of grid and snap, might -> placement is forced on display of 0,0, not on the
actual grid
-> Distance was initialized to point 0,0 -> this was bad (Integer Max is also bad since the distance is calcculated by a square and a root -> NAN)


BUG!!!!
TineLAF does not work in fullscreen!
(correctly) - LAF paints window border!!!
-> done

Bug Map:
selection / playing of 0,0 or directly neighbouring tile is bugged
-> done, was an ISO hotsport problem (half instead of fourth was used)
-> nonetheless the algorythm for "red rect" differs from "green rect" - this might be irritating 

Bug?:
Button delete tileset, deletes only one tile! -> disabled
moved to todo

Bug?:
Image:
Scale in Selection does not "downscale" only up?
Once scale was used?
Size of imageComponent does not downscale?
-> fixed - still don´t know what it was though...


BUG!:
Map: Tile under Mouse is not correcty anmyor!
->done complete != complete & ordered

Composite Tile Placing is not testing in relation to tile overlap!
-> done

Bug:
Save Map as New -> does not really work
-> done

Zoom "to fit"
-> done

Tile unter Cursor sollte immer auf dem Tile liegen, unter dem der Cursor!!! ist! -> only done fpr square tiles
-> done (automatically with correct ISO transition tile testing)

Button: lowest coordinates to zero!
-> done


SHow if map is REGULAR!
-> done

KoordinatenAnzeige stimmen nicht bei Offset!
-> done, was not scaled

!!
check -minYPos in wrap transition rectangle
!!
-> was a Bug -> corrected!

BUG:
Graphics
- saveing in new filename
  changes filename of images?
-> mapping of windows / UNIX seperators were mixed up, 
look in UtilityString - only / and \ are handled
- done


Regular non wrapping transitions do not work?



LastISO Step:
Transition must consider wraping!
done 
- if regular
- map is block
- and map is "full"


in Layer:

//gilt für tiles, die bei vollen koordinaten staerten   
// KOOREKTUR NOTWENDIG!  




Transitioning for ISO


Bug
Assume ISO is not saved and not set/reset

Schalter für ISO Wrap!
-> done

Bug:
ISO Block wrapping, width and hight is to short the size of "fillers"
-> done


Dokument 
xml structures!
And structure of thought behind all


ISO-Maps from images
-> done

- dont show composite tiles on tiles
- dont show tiles on compiste tiles
- make composite tiles scrollable
- must set composite tile, wenn selecting a composite tile - even if last selected was a normal tile!
-> done

Done
- build tranistion layer does not work in negative

following that:

- transition layer - dont do borders
  - dont do borders implemented - but is not correct, 
  - i must implement transition does wrapping!


Picture view (fitting to specified size) of current worldmap
-> done 

TODO:
For 3x3 using grow tiles, mark the other tiles as "already grown upon"
-> done -> untested

In Grow Tile -> display composite
GROW Composite tiles!
-> done

New Stuff todo:
- save map as "meta-Tile" -> can also be used for generating/growing
-> done


Saving a new map from Algoryth + grow has 5 layers - and 3 with a depsth of 1
-> done, Hashmap was not init, when file pool did not exists

Todo:
"Shift" (or whatever) click tile on map -> sets the tile set!
-> Done -> ALT click


Growing:
- each "Source tile" must have attribute:
 * Type
 * SubType
 * GrowProbability [in Percent]

- each "Source tile" must have attribute:
 * Growable [True]
 * Type
 * SubType
 * NeedsType [corresponds to source]
 * NeedsSubType [corresspons to source, might be comma seperated]
 * GrowProbability [in relation to all other possible "growth" tiles for the source]
 * if an attribute "GrowNumber" exists -> that many tiles will be grown at once!
 * if an attribute "Overborder" exists and the value is true, grown subtiles are not restricted to the mother tile! 
   Meaning - it is enough for the child tile to "touch the mother" 
   (only for numbered tile > 1)
 * Tile without (or 1) GrowNumber is centered - Except when ParentZeroOffset is given
 * 


 * "MaxGrowPerMap" -> Integer (only for ONE growth!)
 * "ParentMinSize" -> String like "2x3" (width times height in tile count) [only working if layer is regular!]
 * "ParentZeroOffset" -> String like 22,34 (offset of top left corner in pixel of first tile of parent sizes)
   This only if GrowNumber == 1 or none given!
 * "ParentNeighbourType" -> type of a tile neighbouring the parent
 * "ParentNeighbourSubType" -> subtype of a tile neighbouring the parent
 (place lighthouses on coast...)



Bug!
Delete last graphics of collection...
-> not reproducable

In Grow tiles -> selecting a row load tileset!
-> done

- Singleton tiles for growing
-> done

- for growing "check whether area is large enough"
-> done

"Save Attribute bundle", adds the bundle to the current attributes!
-> done

init singletons befor fill
NOT POSSIBLE!
     * Since each growth is build on a NEW layer!

Start grow generation on random tile!
-> done

test border settings vor tiles!
-> done
Bug 
- Placing tiles on scaled -> sometimes gives "tile under tile - > no placing possible!
-> fixed, was a micing of using scaled and unscaled values!

- join layers (easy) -> done

- Tiggers (Timer) only active if tile is displayed
-> done

Remove tile to color matching somehow! -> done (Right Mousebutton on tablerow)

Use nearest, but keep not used colors in list "as empty" optional
-> done

test iso

wrap


Add:
Layer size is now displayed



Bug:
ISO Hotspots were only half generated

Bug: 
    switching in tiles between tiles with differen gfx, does not set gfx-LIST, but only the graphics imagepanel

LOST:
Tile with attributes were not commited, attributes are now lost in space :-(
Code is well 'though

Lost2:
Tiles with size of 16 are also lost


Bug:
Save layer as binary
adds layer "Brushes"?
-> can not be repeated

BUG:
Selecting a image of a sequence does not switch the SOURCE to that image anymore!
-> done

Bug:
Loading a tile set, the upon first loading and setting the firsttile ->
does not set the graphics.
If only one tile is in the tileset, selecting the tile does not set the gfx either, since TT thinks
it is already selected!
-> done


scroll to selected! -> done in graphics

button in grafix to build seamless tile! (double mirror)

Grow more than one tile!
- GrowNumber

Grow with variants!

Bug, build map from algo without variants???
- source seems to look that way!
-> No it is OK

Draging of DELETE, sometimes deletes WRONG tiles. -> finaly done! (paintlist was not reseted after delete!

Tile unter Cursor sollte immer auf dem Tile liegen, unter dem der Cursor!!! ist! -> only done fpr square tiles
Remember Directories! - done for images

Directory settings und Mac!

Add Tile "Variations",

done: Color Picker in Algorythm -> select color in table!

Test Filter with a filter that is correctly built!

Next:
-Filtering by imagesequence -> kann verwendet werden für
 tile transition generierung
-> todo build a correct meta filter
-> apply meta filter and test filtering

Add Color Processing to GFX

- all precondiations für Image > Map are done
- now only the actual conversion is missing
-> after that I will save images from different gernators
-> try convert a few

Bug!Save after building transitions layer ""forgets" orgnal layer!


Loading of large maps -> SUCKS! -> layer as binray?
IsTileOnPosition(x,y) -> SUCKS!

Transition map:
TopDown Canceld!
Does not work putting tiles on top of each other, since due to opaqueness the
tiles will be of different color!

Map Edit:
Place/Delete tiles even after "drag"


build transitions map, still not eliminating, doubles - looks shitty
-> changes were somehow lost, recovered using svn... strange...

Graphic
"Just Images" for all saves


Mirror

In Tile
- button add all!

in images - save class as single images!

0) halflings, and order of transitions
1) Multi load of files in dir

Do Tiles with "Smooth" feature.
Each "Smooth" tile has 8 surrounding tiles, which do a smoothing to the next tiles
Each "Smooth" tile also has a priority

On a map add a "smooth" button to process smoothies!


Tile:
- add a replace button to attribute editing, now only add is available

Map:
Forced tile sizes not correct in map!
- overlap not correct
- sizes in 100% scaling not correct
- crop ofsets not correct in map
- Coordinates should be in Map coordinates (must add offset)

images:
- play button doesnt do anything, when image has not been saved yet!
- upon a new selection, switching "of"  results in a index out of bounds exception
- paint selection must be updated on textfield changes!
- apply resets the zooom factor!
- Rotation does not work anymore
- one cant veiw the resulting animation without saving it!




Map: Display of single tile not fitted in panel correctly

In Map:
- only single on pos

New image collection MUST allways have a source file???
- stupid, had two filenames in image...

- if moved, the displayed snap does not match with the taken snap when clicked
  furthermore the taken snap is not even a snap point!

tile placing with snapping does not work with scale and move yet

snap to grid does not calculate correct, when moved

overlappinc calc not correct with scaling yet (few pixels off)


In Map:
- disable caching upon active scaling!

In map the currect offsetY and offsetX should be
the offsets of the current Layer.
This must be set when layers are switched!

Tile SETTING does not work with offset!


Grid and Offset dont work together as yet!
Hex...
-> Gird Snap not wokring anymore
-> scrolling is counter map scroll!
-> first rows / columns must be done

In Map:
- offsetting!

Unselect a cursor image as tile!
-> done

Bug: delete active Layer causes an exception
-> done

Bug: in Tile editor, upon selecting ActionTab, the selected tile resets!
-> not reproduceable

On Scaling -> what happens to animations?
They are acting weirdly! -> were not deinited befor scaling...

when doing a scale -> disable animation, otherwise an vector out of bounds exception may occur


Upon Cropping (and other actions) possibly as button:
Clear cache!
-> added Re Set button

Upon Group transformations, "re" display in animation display!
-> added Re Set button


On Mac -> Memory usage of imgages does not work!
 -> was that the agent for memory watch was not installed via comand line properly!

In Map:
- grid
 * oct
 * iso (http://www.uni-koblenz.de/~cg/Diplomarbeiten/DA_ThomasSchuster_Web.pdf)
 * snap to hotspot
- scaling

- Tile Window -> get image button (meaning that the current tiles image is displayed in graphics data sexction)

EXPORT
Button in gfx, tile and map
uses intepreter to implement own export!

Do not cache images of mouse drag!

In Map:
- up / down layer
- delete layer
- Delete under mouse

Grafix with offsets
in TILE DEFINITION
default to height / width with max of each!

- Animations can have a "random" start

Image:
a) single image: Operation "Crop" nur den notwendigen Bereich (non transparent)
   - mit Offset (für z.B. Tiles mit Fester Größe)
   - Ohne offset, totales Crop

b) multi image: anim Crop -> jeweils nur der notwendige Bereich, mit einem offset pro abim image,
   so dass das Bild stabil bleibt!
-> Automatismen!

APPLY / USE
Cropping settings in map / Image display

Cropping done -> must still be applied to save (offsets respecting),
show etc


Pro Grafik
- Ein Text von Wo die Grafik stammt, wer sie erstellt hat, welche Copyright/left etc

BUG
--- Pick color in zoom does not work correctly!

BUG
Image resource often "hangs"



Save one animation as single image

BUG
In Image edit -> lock DONE

Map
----
- Tiles laden und anzeigen
- Tiles zuweisen (mouse buttons)
- Tiles auf Map als Cursor
- Map place tiles
- Map inv/vis Layers
- Background layer -> color anzeigen
- Layer Up/Down Button
- layer & Map speichern
- Tiles in Map anzeigen
- current tile draggen
- switch layers on off



- für Tiles Attribute defaults (saveable)
- Bug in Tiles, anim tile not added to tileCollection!



                0) default place to save is the location of the org files!
                1) adjust xml to use NEW image
                2) NEW create a button to save a complete set in one file!
                3) add a button to save one anim in one file
                4) make sure the after save the new file is used!



Tile Panel next todos:
1) button: new Tile OK
   - build new Tile OK
   - clear tile info OK
   - deselct selected Graphic OK
1a) button set image OK
  - (... to tile)
2) button: add tile OK
   - check if all info is available and graphic selected OK
   - add tile to current set OK
   - set is not saved (yet) OK
3) button: new set
   - build new empty tileset OK

4) button: delete... OK
5) button: save as new ... OK
6) select graphic:
   - set selected graphic to current tile (not saved, not in set) OK
7) select tile:
   - build copy of tile for edit (when added, tile in set is replaced with copy) OK
   - select graphic & display OK
   - set all info of tile OK
8) button: replace ... OK
9) add default size to xml of tile OK
