aboutsummaryrefslogtreecommitdiff
path: root/src/tool/mod.rs
Commit message (Collapse)AuthorAgeLines
* Add constant for default colours and selection toolArne Dußin2020-12-16-0/+3
|
* Refactor to make interaction between tools easierArne Dußin2020-12-15-16/+30
|
* Add unfinished polygon room toolArne Dußin2020-11-20-0/+3
| | | | | | | 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-2/+8
|
* Fix next icon still being drawn when tool is inactiveArne Dußin2020-11-10-0/+3
| | | | | | | 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-0/+3
|
* Add icon toolArne Dußin2020-11-06-0/+3
|
* Refactor a major part of the projectArne Dußin2020-11-01-48/+4
| | | | | | | | | | 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/+9
|
* Add wall toolArne Dußin2020-10-31-6/+55
| | | | | | 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.
* Rewrite project to use raylib instead of pistonArne Dußin2020-10-30-0/+16
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.