chiark / gitweb /
Loopy: optional 'autofollow' UI feature.
authorSimon Tatham <anakin@pobox.com>
Mon, 24 Apr 2017 17:32:57 +0000 (18:32 +0100)
committerSimon Tatham <anakin@pobox.com>
Wed, 26 Apr 2017 21:06:20 +0000 (22:06 +0100)
commit2d333750272c3967cfd5cd3677572cddeaad5932
treecc31f0a73647468497c7fe70c295f39482285967
parente3821d1f68bf531fa485fd5b4c2882b838824347
Loopy: optional 'autofollow' UI feature.

This is mostly intended to make play more convenient for grid types
like the new Great-Great-Dodecagonal, and other grids with very
high-degree faces, in which it's annoying to have to spend half a
dozen mouse clicks on filling in a path of edges round the outside of
one of those faces which clearly have to all be set (or clear) if any
one of them is.

For now, the new feature is enabled by yet another of my hacky
environment variables, called LOOPY_AUTOFOLLOW. You can set it to
"off", "fixed" or "adaptive", where "off" is currently the default
(hence, no user-visible change in the default behaviour from this
change). If set to 'fixed', then toggling the state of any edge will
automatically toggle any further edges which are in the same state and
share a degree-2 vertex of the underlying grid design with the
original one. In 'adaptive' mode, the game goes even further, and will
consider outgoing edges in LINE_NO state not to count for purposes of
deciding if a vertex has degree 2.
loopy.c