jpasqua / VisibleTesla

Java App to monitor and Control the Tesla Model S
125 stars 41 forks source link

Duplicate code for showing wheels #31

Closed jpasqua closed 10 years ago

jpasqua commented 10 years ago

There is a bunch of code duplicated between HVACController and OverviewController having to do with the selection of wheel images. Consolidate this down to one shared code set.

jpasqua commented 10 years ago

This is cleaned up in 0.29.00. The change may be useful in other places as well. There is a new method in BaseController called updateImages() which takes a map of images and a key. The key indicates which set of images to turn on. All other images are turned off. HVACController and OverviewController use their wheel images in the map.