LCARSx32 / Main-LCARS-x32-Project

http://www.lcarsx32.com
Other
27 stars 10 forks source link

Proposed code change for LCARSbuttonsClass.Flash() #3

Closed DenKomm closed 8 years ago

DenKomm commented 8 years ago

Suggested code change in BOLD to handle unwanted button state when using LCARSbuttons for other applications.

In this case, button gets stuck in "dim" state when LCARSbuttonsClass.Flash() is set to false during dim state. This is due to "isflashing" never being reset out of "True" and the Button refresh specifically has "If isLit XOR isflashing" for determining redraw state.

@@ -325,6 +325,7 @@ Public Class LCARSbuttonClass flasher.Start() Else flasher.Abort() isFlashing = False Lit = litBuffer End If End

DenKomm commented 8 years ago

Did a Pull Request Instead.