change to inner/outer range

This commit is contained in:
elviosak 2025-12-01 01:52:25 -03:00
parent f89c31c2de
commit b2750027da
5 changed files with 54 additions and 27 deletions

View file

@ -1177,12 +1177,12 @@ entry(xmlNode *node, char *nodename, char *content)
} else if (!strcasecmp(nodename, "unMaximizeThreshold.resistance")) {
rc.unmaximize_threshold = atoi(content);
} else if (!strcasecmp(nodename, "range.snapping")) {
rc.snap_edge_horizontal_range = atoi(content);
rc.snap_edge_vertical_range = atoi(content);
} else if (!strcasecmp(nodename, "horizontalRange.snapping")) {
rc.snap_edge_horizontal_range = atoi(content);
} else if (!strcasecmp(nodename, "verticalRange.snapping")) {
rc.snap_edge_vertical_range = atoi(content);
rc.snap_edge_range_inner = atoi(content);
rc.snap_edge_range_outer = atoi(content);
} else if (!strcasecmp(nodename, "inner.range.snapping")) {
rc.snap_edge_range_inner = atoi(content);
} else if (!strcasecmp(nodename, "outer.range.snapping")) {
rc.snap_edge_range_outer = atoi(content);
} else if (!strcasecmp(nodename, "cornerRange.snapping")) {
rc.snap_edge_corner_range = atoi(content);
} else if (!strcasecmp(nodename, "enabled.overlay.snapping")) {
@ -1461,8 +1461,8 @@ rcxml_init(void)
rc.unsnap_threshold = 20;
rc.unmaximize_threshold = 150;
rc.snap_edge_horizontal_range = 10;
rc.snap_edge_vertical_range = 10;
rc.snap_edge_range_inner = 10;
rc.snap_edge_range_outer = 10;
rc.snap_edge_corner_range = 50;
rc.snap_overlay_enabled = true;
rc.snap_overlay_delay_inner = 500;