aboutsummaryrefslogtreecommitdiff
path: root/src/tool
Commit message (Collapse)AuthorAgeLines
* Fix clippy lints and add polygon tool button iconArne Dußin2020-11-25-3/+2
|
* Add polygon rooms that can actually kind of be usedArne Dußin2020-11-25-35/+149
| | | | | | It's still kind of strange to use the polygon tool, but at least it seems stable enough so I'm confident enough (and sick enough of it) to release it into the wild.
* Add unstable polygon room toolArne Dußin2020-11-24-4/+63
|
* Merge branch 'triangulation' into polygon-roomsArne Dußin2020-11-23-3/+3
|\
| * Move containment of points/ lines into traitArne Dußin2020-11-21-3/+3
| |
* | Add unfinished polygon room toolArne Dußin2020-11-20-0/+94
|/ | | | | | | When adding the polygon room tool, a problem with drawing polygons arised. Drawing a simple, but nonregular polygon is not something that is supported by raylib, so further additions to the math library are needed.
* Add simple tool sidebar guiArne Dußin2020-11-20-18/+64
|
* Merge branch 'fix-dim-markers' into fix-ghost-toolsArne Dußin2020-11-15-0/+6
|\
| * Fix the dimension indicators persisting after addArne Dußin2020-11-15-0/+6
| | | | | | | | | | The dimension indicators were drawn very for the blink of an eye when starting a rect that comes after the first. This commit should fix that.
* | Fix deletion and wall tool ghostsArne Dußin2020-11-15-0/+8
|/
* Add constant for the grid accuracyArne Dußin2020-11-10-9/+11
| | | | | 0.5 was used as a magical number throughout the code for that until now, which I now changed.
* 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.