Commit Graph

11 Commits

Author SHA1 Message Date
Amaury Carrade 01d9a5e99a Updated copyright
CeCILL licence in a dedicated file + headers updated.
2021-04-12 14:34:16 +02:00
Vlammar cc58b1d320 Checkstyle added and refactor 2020-12-10 22:13:05 +01:00
Vlammar f4cfe934a7 fixed indent 2020-08-20 23:55:16 +02:00
Vlammar 219869c82b added images flush and removed useless gc.dispose 2020-07-08 09:06:54 +02:00
Amaury Carrade 5701296d67
Licenses are a mess in this project. (#96)
* Fixed software licenses in README & license header template.
* Fixed license headers on all files.
2020-06-14 14:29:18 +02:00
Adrien Prokopowicz c18202f800
Fix Splatter map deployment.
* NEW: Incomplete splatter maps can now be retreived by shift-clicking.
* NEW: When in creative mode, retreived maps are given back when not
  in the player's inventory.
* BUG: Splatter maps are now deployed correctly.
2016-05-02 17:40:54 +02:00
Adrien Prokopowicz b5751f38eb * BUG: Fixes splitting images having multiples of 128 as dimensions. 2016-04-02 22:11:31 +02:00
Prokopyl 5c9feddd6e Added image-to-map rendering.
* NEW: Implemented the RendererExecutor for splitted and scaled images.
* NEW: Implemented image saving.
* NEW: Worker callbacks now take as a parameter the return value of the Runnable.
* NEW: Worker runnables can now request data from the main thread using the Future API.
* BUG: null is now a valid value for the "name" field.
* BUG: Fix map loading for Posters and Single maps.
* OPT: The PosterImage class now only makes the primary calculations when instanciated.
  The splitting is now a separate method.
* OPT: When a map data entry is invalid, only the error message is shown in console 
  rather than the full backtrace.
2015-03-26 16:03:40 +01:00
Prokopyl 1cb42e4965 Started refactoring. Plugin is not working yet !
* NEW: Added proper license headers.
* NEW: New image loading management.
* NEW: Added a threaded worker to run the image loading/saving.
* OPT: Moved images to the images/ subdirectory.
2015-03-16 20:40:44 +01:00
Prokopyl bdf35e9eef * BUG: Map items show correctly their position if they are part of a multiple-map poster. 2015-02-18 15:27:07 +01:00
ProkopyL e31c20191f Code cleanup, starting to reorganize packages, and various (unstable!) updates.
* NEW: Added the commands and image packages.
* NEW: ImageMap is now an abstract class rather than an interface, 
  allowing to add several useful common methods.
* NEW: The MapType enumeration is now part of the ImageMap class.
* NEW: Added some utility methods to the MapType enumeration.
* NEW: imageName, ownerName and worldName are now common map properties.
* NEW: The PosterImage class (was previously Poster) is now used to hold
  the sub-images in the PosterMap class, instead of holding an array of 
  SingleMaps.
* NEW: Completely rewrote the image splitting algorithm.
* NEW: Removed the MapData and PosterData classes. They were uselessly
  wrapped by the PosterMap and SingleMap classes.
* BUG: Fixed some method's accessibility.
* OPT: Cleaned up the map renderer a bit.
2015-02-17 18:31:55 +01:00