aboutsummaryrefslogtreecommitdiff
path: root/src/tool
Commit message (Collapse)AuthorAgeLines
* Fix some style errorsArne Dußin2020-11-10-1/+1
| | | | | Fixed the last warnings and ran clippy on the project. Fixed where appropriate and taught clippy otherwise. Now runs through clean.
* Remove unused importsArne Dußin2020-11-10-3/+3
|
* Add dimension indicator without direct value editingArne Dußin2020-11-10-2/+9
|
* Fix next icon still being drawn when tool is inactiveArne Dußin2020-11-10-31/+41
| | | | | | | 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.
* Add configuration optionsArne Dußin2020-11-09-40/+68
|
* Make it so icons can rotateArne Dußin2020-11-08-29/+67
|
* Make icons deletableArne Dußin2020-11-06-0/+1
|
* Add icon toolArne Dußin2020-11-06-20/+153
|
* Change wall tool to not cancel when clickingArne Dußin2020-11-01-1/+1
|
* Add basic deletion toolArne Dußin2020-11-01-6/+63
|
* Make walls 10cm thick instead of constant pixel valuesArne Dußin2020-11-01-2/+2
|
* Refactor a major part of the projectArne Dußin2020-11-01-82/+38
| | | | | | | | | | 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.
* Add stub for deletion toolArne Dußin2020-11-01-2/+28
|
* Remove commented out codeArne Dußin2020-10-31-13/+0
|
* Make walls thickerArne Dußin2020-10-31-1/+16
| | | | | Walls were really hard to see, especially on High-DPI Monitors, so I made them stand out more
* Add wall toolArne Dußin2020-10-31-12/+137
| | | | | | The wall tool is currently just one pixels lines, which must be changed in the future, of course, but this is also to test changing between tools.
* Snap rooms to the gridArne Dußin2020-10-30-2/+10
|
* Make rooms a little bit brighterArne Dußin2020-10-30-6/+6
|
* Rewrite project to use raylib instead of pistonArne Dußin2020-10-30-0/+97
Sorry piston.. I really tried liking you, but I just couldn't :/ It's not you, it's me. What am I saying? It's you, sorry not sorry.