leaguevine / leaguevine-ultistats

MIT License
18 stars 4 forks source link

Highlight the action buttons #39

Open mliu7 opened 12 years ago

mliu7 commented 12 years ago

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.

cboulay commented 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?

mliu7 commented 12 years ago

Yeah, that sounds good. That's what I was picturing in my head too, but I didn't communicate it nicely like you did.

cboulay commented 12 years ago

Not exactly a duplicate, but very similar to Refs #91