~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/wui/general_statistics_menu.cc

  • Committer: The Widelands Bunnybot
  • Date: 2024-10-19 13:45:54 UTC
  • Revision ID: bunnybot@widelands.org-20241019134554-kz2gcbecf0y7bd7n
170 files were automatically formatted.

(by bunnybot)
5a9087b08ab9bbc48795ff0f7f1f370f60108b1a

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
        for (Widelands::Game::GeneralStatsVector::size_type i = 0; i < general_statistics_size; ++i) {
101
101
                const Widelands::Player* p = parent.game().get_player(i + 1);
102
102
                const RGBColor& color = p != nullptr ? p->get_playercolor() :
103
 
                                             // The plot is always invisible if this player doesn't
104
 
                                             // exist, but we need to assign a color anyway
105
 
                                             kPlayerColors[i];
 
103
                                                       // The plot is always invisible if this player doesn't
 
104
                                                       // exist, but we need to assign a color anyway
 
105
                                                       kPlayerColors[i];
106
106
 
107
107
                unsigned o = 0;
108
108
                plot_.register_plot_data(i * ndatasets_ + o++, &genstats[i].land_size, color);
371
371
        for (UI::Button* c : cbs_) {
372
372
                // The saved value indicates whether we explicitly need to toggle this button
373
373
                fw.unsigned_8(((c != nullptr) && c->style() != UI::Button::VisualState::kPermpressed) ? 1 :
374
 
                                                                                              0);
 
374
                                                                                                        0);
375
375
        }
376
376
        fw.signed_32(slider_->get_slider().get_value());
377
377
}