From 53d376eaeef991850d35318b147f75c8f103319d Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Sun, 27 Dec 2020 21:54:31 +0100 Subject: Change to polygongraph instead of polygon in roomtool 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. --- src/tool/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/tool/mod.rs') diff --git a/src/tool/mod.rs b/src/tool/mod.rs index 70534ac..4130244 100644 --- a/src/tool/mod.rs +++ b/src/tool/mod.rs @@ -31,17 +31,17 @@ use raylib::core::drawing::RaylibDrawHandle; /// The types of tools available in graf karto. For information about the tool itself, please see the /// referenced Tool's documentation. pub enum ToolType { - /// See [super::RectRoomTool] for information on this tool. + /// See [RectRoomTool] for information on this tool. RectRoomTool, - /// See [super::PolygonRoomTool] for information on this tool. + /// See [PolygonRoomTool] for information on this tool. PolygonRoomTool, - /// See [super::WallTool] for information on this tool. + /// See [WallTool] for information on this tool. WallTool, - /// See [super::IconTool] for information on this tool. + /// See [IconTool] for information on this tool. IconTool, - /// See [super::DeletionTool] for information on this tool. + /// See [DeletionTool] for information on this tool. DeletionTool, - /// See [super::SelectionTool] for information on this tool. + /// See [SelectionTool] for information on this tool. SelectionTool, /// Not a real tool but used to know how many tools are available. New tools must be added /// above this variant. -- cgit v1.2.3-70-g09d2