# whether a train's plan includes a different position
# whether autopoint
movpos-button-gvars $mid
- set fg white
- set bg black
- $w configure -background $bg -foreground $fg \
- -activebackground $bg -activeforeground $fg
switch -exact $posn {
- ? { manyset [lindex $poslocs 2] x y }
- default { manyset [lindex $poslocs $posn] x y }
+ ? { set poslocn 2; set fg black; set bg white }
+ default { set poslocn $posn; set fg white; set bg black }
}
+ $w configure -background $bg -foreground $fg \
+ -activebackground $bg -activeforeground $fg
+ manyset [lindex $poslocs $poslocn] x y
place $w -anchor center -x $x -y $y
}