diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-13 21:22:53 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-13 21:22:53 +0100 |
| commit | cc42c90477733beddb01ceebaaa9f8a11642b977 (patch) | |
| tree | 146953fcc2fc4538f105d9d23ab3f0bb509a768e | |
| parent | 6f73a75a29696e04807a9a19bb858fecb0e57c0d (diff) | |
Bold table captions implemented.
| -rw-r--r-- | doc/uidesign.txt | 2 | ||||
| -rw-r--r-- | src/display.c | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/uidesign.txt b/doc/uidesign.txt index c4b6635..8662c07 100644 --- a/doc/uidesign.txt +++ b/doc/uidesign.txt @@ -33,7 +33,7 @@ Stack Points: For each table card stack it shows the sum of points of all cards DONE: Use colored borders/numbers/stars to distinguish cards and for a nicer UI look. DONE: A selected card and a selected stack should be displayed as bold text. DONE: Display revealed cards next to nicks after all players have chosen their cards. -Table captions will be printed bold. +DONE: Table captions will be printed bold. Sort table every round by lowest cards after players selected/revealed the cards Highlight current player (who is choosing a stack) by inverting its line. diff --git a/src/display.c b/src/display.c index cbc9eb1..7772732 100644 --- a/src/display.c +++ b/src/display.c @@ -117,7 +117,9 @@ static void draw_cardstack(WINDOW *w, const uint8_t row, const uint8_t col, cons void display_window_table_cards(const tablestacks ts, const bool highlight, const uint8_t highlighted_stack) { + wattron(w_table_cards, A_BOLD); mvwprintw(w_table_cards, 0, 2, "Table Cards:"); + wattroff(w_table_cards, A_BOLD); for (uint8_t i = 0; i < NUM_TABLESTACKS; i++) { @@ -138,7 +140,9 @@ void display_window_table_cards(const tablestacks ts, const bool highlight, cons void display_window_stack_points(const tablestacks ts) { + wattron(w_stack_points, A_BOLD); mvwprintw(w_stack_points, 0, 0, "Pts:"); + wattroff(w_stack_points, A_BOLD); for (uint8_t i = 0; i < NUM_TABLESTACKS; i++) { @@ -156,8 +160,10 @@ void display_window_stack_points(const tablestacks ts) */ void display_window_current_state(const player_name_open_card_tuple pnoc[], const uint8_t num_players, const uint32_t score) { + wattron(w_current_state, A_BOLD); mvwprintw(w_current_state, 0, 0, "Current state:"); mvwprintw(w_current_state, 0, 22, "Your Score: %3d", score); + wattroff(w_current_state, A_BOLD); mvwprintw(w_current_state, 1, 1, "Player Card"); mvwprintw(w_current_state, 1, 22, "Player Card"); mvwvline(w_current_state, 1, 19, ACS_VLINE, 6); // Vertical line @@ -185,7 +191,9 @@ void display_window_current_state(const player_name_open_card_tuple pnoc[], cons */ void display_window_hand_cards(const hand h, const bool highlight, const uint8_t highlighted_card) { + wattron(w_hand_cards, A_BOLD); mvwprintw(w_hand_cards, 0, 0, "Hand Cards:"); + wattroff(w_hand_cards, A_BOLD); for (uint8_t i = 0; i < MAX_HAND_CARDS; i++) { |
