aboutsummaryrefslogtreecommitdiff
path: root/src/editor.rs
Commit message (Collapse)AuthorAgeLines
* Fix next icon still being drawn when tool is inactiveArne Dußin2020-11-10-0/+10
| | | | | | | The icon that would be placed next, but is not on the map was always drawn once the icon-tool was activated once. This is no longer the case. Also, the tool now saves the last icon that was selected and keeps the rotation of it between placements, which I deemed more intuitive.
* Fix editor not using the configured keybindingsArne Dußin2020-11-09-11/+6
|
* Add configuration optionsArne Dußin2020-11-09-5/+6
|
* Add icon toolArne Dußin2020-11-06-3/+7
|
* Add basic deletion toolArne Dußin2020-11-01-0/+2
|
* Add feature to load and save to a test swap-fileArne Dußin2020-11-01-0/+11
|
* Refactor a major part of the projectArne Dußin2020-11-01-0/+59
In order to be able to save and load the map, a major rework of the code seemed necessary, since Vector2 and Rectangle of raylib do not implement serialize, and it seems cleanest to use the serialize/deserialize traits of serde, to save for instance to RON. ToolShed was renamed to Editor, since it should better show, that it does quite a bit more than harbour tools. The map data is now centrally saved in the editor, instead of decentralised in the tool structs.