aboutsummaryrefslogtreecommitdiff
path: root/src/tool/wall_tool.rs
Commit message (Collapse)AuthorAgeLines
* Change to polygongraph instead of polygon in roomtoolArne Dußin2020-12-27-0/+1
| | | | | | | | | | | The polygon room tool used a convoluted process for determining what the user actually wants to draw. I have changed to the polygon graph instead, which makes the checks easier and restricts the user a bit less. In the process however I found a serious problem with my handling float, so everything needed to change to margin compares (which I of course should have done in the beginning. Guys, take the warning seriously and don't ignore it for ten years like I did. It will come back to haunt you.. apparently) instead of direct equality.
* Add previously missing docs where appropriateArne Dußin2020-12-21-0/+6
|
* Refactor to make interaction between tools easierArne Dußin2020-12-15-88/+25
|
* Merge pull request #21 from LordSentox/wall-joinMax Pernklau2020-11-29-4/+30
|\ | | | | | | Make walls join nicer in corners
| * Merge branch 'master' into wall-joinMax Pernklau2020-11-29-5/+5
| |\ | |/ |/|
* | Change to f64 as the preferred floating point numberArne Dußin2020-11-27-8/+8
| |
| * Make walls join nicer in cornersArne Dußin2020-11-27-4/+30
|/
* Add simple tool sidebar guiArne Dußin2020-11-20-4/+15
|
* Fix deletion and wall tool ghostsArne Dußin2020-11-15-0/+4
|
* Add constant for the grid accuracyArne Dußin2020-11-10-3/+3
| | | | | 0.5 was used as a magical number throughout the code for that until now, which I now changed.
* Remove unused importsArne Dußin2020-11-10-1/+1
|
* Add configuration optionsArne Dußin2020-11-09-10/+17
|
* Add icon toolArne Dußin2020-11-06-10/+4
|
* Change wall tool to not cancel when clickingArne Dußin2020-11-01-1/+1
|
* 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-17/+19
| | | | | | | | | | 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.
* 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-0/+79
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.