Commit Graph
25 Commits
Author SHA1 Message Date
Dylan WilsonandGitHub e962cec448 A mix between Tiled and GUI stuff (#553)
* mostly restored the tiled importer unit tests

* code cleanup

* code cleanup

* almost got tiled maps serialization independent of the content pipeline

* refactored the tiled map content importer so that tiled maps can be loaded at runtime

* code cleanup

* removed nuspec files

* experimenting with an XML based GUI markup parser

* a few more markup parser features

* finally got a working open file dialog

* experimenting with markup bindings

* attached properties

* working on the gui stuff again

* working on a better textbox

* multiline textboxing

* new text box is really coming along

* removed the content explorer experiment

* restored the old gui demo back to the way it was before (for now)
2018-10-09 22:18:48 +10:00
stefanrbkandDylan Wilson 433e458af0 Real Tiled Group Support (#522)
* Change from storing layers by index to Dictionary key

Models are now stored with the `TiledMapLayer` they are part of.

* Allow render calls via TiledMapLayer

* Add TiledMapGroupLayer and model build recursion for groups

* Add rendering support for TiledMapGroupLayer

* Update TiledMapReader to read TiledMapGroupLayers

* Update Features Demo to Include a Map with a Layer Group

* Update TiledMapWriter and TiledMapProcessor to Support Groups

* Update TiledMap to Report Layers Correctly
2018-07-08 21:34:07 +10:00
stefanrbkandDylan Wilson e89fe97061 Build Textures With Prefered Transparent Color (#521)
Pass the transparent color provided by the .TMX or .TSX file to the Texture processor for custom transparency.
2018-07-06 10:11:25 +10:00
stefanrbk e84895d0e6 Removed BuildAndLoadAsset for BuildAsset 2018-07-02 14:07:30 -05:00
stefanrbk ff7ddd5f08 Fixed AddDependency/Build(AndLoad)Asset issues 2018-06-25 19:31:03 -05:00
stefanrbk a0e3c57c30 Comments and remove file accessing
Added comments into the importers and processors to show off what the new code does. Removed unneeded code involving locating external files as `Content` handles this for us automatically.
2018-06-11 18:33:02 -05:00
stefanrbk 044712f6aa Added remaining .TMX format features
Added the remaining features of the .TMX Tiled Map format. Removed the parts of the format which aren't needed for rendering, like `TiledMapTerrainContent`. Terrains and the newer WangSets are only used in constructing a map, not for rendering. Added exception throws for non-implemented parts of the format.
2018-06-09 13:45:02 -05:00
stefanrbk 1cf24d01ae Added Rough Group Layer Support
Added the ability to load files with groups. Rendering system still doesn't understand layer groups yet, so this allows groups to be initially loaded, but the sub layers of the group are extracted to the layer root, things like offsets for the group are applied directly to the sub layers, and the groups themselves are removed.
2018-06-08 14:53:57 -05:00
stefanrbk 92dc951099 Object Templates
Added handling of `TiledMapObject` templates. Tile object templates are currently not working as the tileset info is currently ignored.
2018-06-07 15:17:15 -05:00
stefanrbk 0ca4ae70da Importer and Processor
Added importer and processor for `TiledMapTilesetContent`
2018-06-06 11:53:46 -05:00
stefanrbk 184fba5928 Include tileset textures internally
Changed the reference of tileset textures so the `Texture2DContent` isn't referenced, but built into the file as tilesets don't reference the same texture more than once.
2018-06-05 09:16:55 -05:00
stefanrbk 7ce9911696 TiledMapImageContent.Content
Adds the `Content` field to `TiledMapImageContent` to reference the `Texture2DContent` instead of manually loading the content with the `ContentManager`.
2018-06-04 17:26:03 -05:00
Dylan Wilson 8293117ca2 fixed the content pipeline error 2018-01-31 00:19:31 +10:00
Dylan Wilson 97b7a32311 code cleanup 2017-11-27 20:51:05 +10:00
Dylan Wilson d1fded1ec8 one tiny tweak to rule them all 2017-11-21 20:57:32 +10:00
Dylan Wilson bfa713e91d its a bit working and a bit not 2017-11-21 20:57:32 +10:00
Dylan WilsonandGitHub b3a631aff5 Gui dialogs (#410)
* started refactoring for gui windows

* a bit more work on gui windows

* fixed some bugs and broken build stuff

* fixed some bugs in gui controls

* a little code cleanup

* got gui dialogs positioning and experimenting with named styles by type

* apply control styles directly in the constructor of controls

* got everything compiling again

* all gui controls have skinnable constructors

* rework uniform grid desired size calculations

* turns out gui layouts are complicated

* include pdb files in nuget packages

* fixed a bug in find nearest glyph

* custom control styling

* added a range constructor overload that takes one value

* rethinking control desired size behaviour

* made particle emitters more editable at runtime

* moved the auto trigger code to the particle effect instead of the emitters

* tweaks

* changed the particle modifer interface to an abstract base with an optional name

* changed the particle modifer interface to an abstract base with an optional name

* an attempt at creating a gui combo box

* rolled back the nested control experiment

* pretty good (but not perfect) combo boxes

* tweaks

* name property bindings on lists

* removed and cleaned up the hacks from the gui combo box

* minor combo box styling tweaks

* minor bug fix in gui combo box

* experiments with data binding

* fixed a mistake on the texture region service interface

* working on the ability to serialize particles

* finished particle serialization

* more robust range deserialization

* added editor browable attributes

* fixed some broken demos

* made the particle modifiers editable at runtime

* fixed some issues with particle serialization

* fixed some issues with interpolators
2017-07-22 21:22:13 +10:00
Dylan Wilson 7b8b29a8bc merged the content pipeline projects into one and setup a separate content pipeline nuget package 2017-03-21 20:57:40 +10:00
Dylan Wilson 23069bd031 finally getting back to working on the new gui system 2017-01-10 23:01:49 +10:00
Lucas Girouard-Stranks 4475e54f5a remove DotNetZip; MonoGame 3.5 has zlib support 2016-03-12 18:10:47 -08:00
Dylan Wilson a145c5e9a7 added more logging to the tiled map importer 2016-02-02 14:00:12 +10:00
Dylan Wilson af4acc4206 rough first cut of image layers 2015-08-15 22:40:34 +10:00
Dylan Wilson 61e1acb1cd completed tmx compression and encoding options 2015-08-14 21:52:45 +10:00
Dylan Wilson 0527d54124 removed dependency on tiledsharp and implemented our own xml deserialization 2015-08-12 00:01:59 +10:00
Dylan Wilson 2dc76b5444 made the tiled code more consistent and polished the sandbox a bit 2015-08-04 22:31:04 +10:00