aboutsummaryrefslogtreecommitdiff
path: root/src/editor.rs
Commit message (Collapse)AuthorAgeLines
* Fix CLI not capturing keyboardArne Dußin2021-01-08-8/+11
| | | | | | 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-14/+0
|\
| * Add CLI with save featureArne Dußin2021-01-06-14/+0
| |
* | Add snapping module to replace the rigid grid snappingArne Dußin2020-12-31-3/+9
|/
* Add previously missing docs where appropriateArne Dußin2020-12-21-1/+18
|
* Add dimensional indicator with scalingArne Dußin2020-12-20-0/+3
|
* Add constant for default colours and selection toolArne Dußin2020-12-16-10/+38
|
* Refactor to make interaction between tools easierArne Dußin2020-12-15-36/+99
|
* Add unstable polygon room toolArne Dußin2020-11-24-3/+5
|
* Fix tools not workingArne Dußin2020-11-20-3/+5
| | | | | | | Since the tool sidebar was always setting the currently active tool and that meant even when no change occured, the tool was being deactivated and reactivated, nothing happened except for the icon tool. Now, it's checked if any change is necessary in the editor
* Add simple tool sidebar guiArne Dußin2020-11-20-9/+19
|
* Fix next icon still being drawn when tool is inactiveArne Dußin2020-11-10-0/+10
| | | | | | | 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.
* Fix editor not using the configured keybindingsArne Dußin2020-11-09-11/+6
|
* Add configuration optionsArne Dußin2020-11-09-5/+6
|
* Add icon toolArne Dußin2020-11-06-3/+7
|
* Add basic deletion toolArne Dußin2020-11-01-0/+2
|
* Add feature to load and save to a test swap-fileArne Dußin2020-11-01-0/+11
|
* Refactor a major part of the projectArne Dußin2020-11-01-0/+59
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.