aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
Commit message (Collapse)AuthorAgeLines
* Fix CLI not capturing keyboardArne Dußin2021-01-08-1/+2
| | | | | | This is not a very nice solution and is due to limitations of raylib. Since I want to change the way input is handled in the future this is an okay solution, but when overhauling the input needs to be changed.
* Merge branch 'master' into snappingArne Dußin2021-01-06-2/+14
|\
| * Merge pull request #25 from LordSentox/better-polygonsArne Dußin2021-01-06-0/+9
| |\ | | | | | | Change to polygongraph instead of polygon in roomtool
| | * Change to polygongraph instead of polygon in roomtoolArne Dußin2020-12-27-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 CLI with save featureArne Dußin2021-01-06-1/+5
| | |
* | | Position indicator is now dependent on current snappingArne Dußin2021-01-05-2/+1
| | |
* | | Merge branch 'master' into snappingArne Dußin2021-01-05-0/+2
|\| |
| * | Add indicator to show where the mouse is pointingArne Dußin2020-12-28-2/+2
| |/
* / Add snapping module to replace the rigid grid snappingArne Dußin2020-12-31-0/+6
|/
* Add previously missing docs where appropriateArne Dußin2020-12-21-0/+19
|
* Add dimensional indicator with scalingArne Dußin2020-12-20-2/+7
|
* Add new dimension indicatorArne Dußin2020-12-16-1/+1
|
* Add constant for default colours and selection toolArne Dußin2020-12-16-0/+1
|
* Refactor to make interaction between tools easierArne Dußin2020-12-15-6/+7
|
* Change to f64 as the preferred floating point numberArne Dußin2020-11-27-3/+3
|
* Change prints to logs where necessaryArne Dußin2020-11-25-3/+5
| | | | | There were quite a few places, where I hardcoded a print in. Most of these should use the logger instead, so I fixed it.
* Change to different GUI styleArne Dußin2020-11-20-0/+7
|
* Add simple tool sidebar guiArne Dußin2020-11-20-1/+9
|
* Fix some style errorsArne Dußin2020-11-10-0/+2
| | | | | Fixed the last warnings and ran clippy on the project. Fixed where appropriate and taught clippy otherwise. Now runs through clean.
* Add dimension indicator without direct value editingArne Dußin2020-11-10-0/+6
|
* Remove instant exit key in favour of OS-keysArne Dußin2020-11-09-1/+4
|
* Add configuration optionsArne Dußin2020-11-09-1/+27
|
* Add icon toolArne Dußin2020-11-06-2/+1
|
* Remove test svg renderArne Dußin2020-11-05-8/+0
|
* Add (very) basic path-drawingArne Dußin2020-11-03-2/+12
|
* Combine zooming in and zooming out into one functionArne Dußin2020-11-02-5/+8
| | | | | There was a lot of duplicate and hacky code in the zooming functions, so I made them cleaner while hopefully staying true to the idea.
* Limit FPS to 120Arne Dußin2020-11-02-0/+1
| | | | | At least under windows a very high CPU and GPU load was noticed, which is why this change was made.
* Tether on zoomArne Dußin2020-11-02-2/+2
|
* Refactor a major part of the projectArne Dußin2020-11-01-7/+8
| | | | | | | | | | 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 wall toolArne Dußin2020-10-31-4/+4
| | | | | | 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-115/+31
| | | | | 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.
* Make grid "infinite"Arne Dußin2020-10-29-21/+8
|
* Make map draggableArne Dußin2020-10-29-4/+28
| | | | | The map can be dragged around, but since the grid is not yet infinitely big, it feels quite weird to zoom and drag
* Make rectangles zoom together with the gridArne Dußin2020-10-29-29/+19
|
* Add option to abort adding a rectangleArne Dußin2020-10-28-1/+4
|
* Add possibility to draw rectanglesArne Dußin2020-10-28-6/+92
|
* Add simple grid that can be scrolledArne Dußin2020-10-28-1/+40
|
* Initialise empty rust projectArne Dußin2020-10-20-0/+3