aboutsummaryrefslogtreecommitdiff
path: root/src/tool/deletion_tool.rs
Commit message (Collapse)AuthorAgeLines
* Rework graf karto to fit the client/server structureArne Dußin2021-02-02-75/+0
|
* Change to polygongraph instead of polygon in roomtoolArne Dußin2020-12-27-1/+2
| | | | | | | | | | | 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/+11
|
* Add dimensional indicator with scalingArne Dußin2020-12-20-10/+3
|
* Add constant for default colours and selection toolArne Dußin2020-12-16-13/+3
|
* Refactor to make interaction between tools easierArne Dußin2020-12-15-48/+27
|
* Change to f64 as the preferred floating point numberArne Dußin2020-11-27-4/+4
|
* Make polygons deletableArne Dußin2020-11-26-1/+4
| | | | | | Before, the deletion tool was not targeting polygons. I also took the liberty to broaden the functionality of the surface trait, which now can check if a rectangle or polygon is contained.
* Move containment of points/ lines into traitArne Dußin2020-11-21-3/+3
|
* Add simple tool sidebar guiArne Dußin2020-11-20-4/+15
|
* Fix deletion and wall tool ghostsArne Dußin2020-11-15-0/+4
|
* Add configuration optionsArne Dußin2020-11-09-13/+16
|
* Make it so icons can rotateArne Dußin2020-11-08-2/+4
|
* Make icons deletableArne Dußin2020-11-06-0/+1
|
* Add basic deletion toolArne Dußin2020-11-01-6/+63
|
* Refactor a major part of the projectArne Dußin2020-11-01-3/+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-0/+19