tpt++: make tpt.selected* and tpt.brushx/y writable (replaces simstate branch) f8782338d7cf