Open mliu7 opened 12 years ago
The buttons should only be highlighted as long as the current_state is congruent with the button state. For example, when pressing "Drop", drop should be highlighted only while the player prompt is to choose the dropped player. Then, after the dropped player is chosen and the roster switches to the other team, the prompt is about "who picked up", so I don't think the "Drop" button should be highlighted anymore. If anything, all of those action buttons should be disabled (visually obvious too).
Thus I propose each button has three states: disabled, enabled, enabled+highlighted. Buttons will be disabled when in the middle of a multi-player event. Buttons will be enabled+highlighted whenever the current_state is congruent with the button.
Does that make sense?
Yeah, that sounds good. That's what I was picturing in my head too, but I didn't communicate it nicely like you did.
Not exactly a duplicate, but very similar to Refs #91
The "Completion" action button should be highlighted by default when throwing a pass is an option. When a different action is clicked, that button should then be highlighted and the completion button should be unhighlighted. The action button should remain highlighted until the user finishes the action. For instance, if a user clicks D'ed Pass, the D'ed pass button should remain highlighted until the user clicks the player name of the person that D'ed the pass.