Mucked around in the select_button code a bit. Need some work here. Got it to refresh the current item and cost consistantly - don't think I broke anything else.
Think I have a fix for dialogue boxes getting ignored, but it requires rewriting the mouse handler. Really, dialogue boxes are a convenient excuse to refactor that monstrosity, but they could use a bit of help too. Of course, they still need to be able to refresh themselves.
It's 3 in the morning, the web page is fresh, and it's time to give in to the night. The start of a 3-day is fresh in my mind, giving me plenty of time to rewrite.