~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/ui_fsmenu/loadgame.cc

  • Committer: GunChleoc
  • Date: 2017-06-12 11:07:47 UTC
  • mto: This revision was merged to the branch mainline in revision 8704.
  • Revision ID: fios@foramnagaidhlig.net-20170612110747-2eri1uy1znx63wvu
Background images and colors are now defined in data/templates/default. Added StyleManager class to load and access them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
            tabley_,
90
90
            tablew_,
91
91
            tableh_,
92
 
            UI::Panel::Style::kFsMenu,
 
92
            UI::PanelStyle::kFsMenu,
93
93
            UI::TableRows::kMultiDescending),
94
94
 
95
95
     is_replay_(is_replay),
107
107
                 get_y_from_preceding(label_mapname_) + padding_,
108
108
                 get_right_column_w(right_column_x_ + indent_),
109
109
                 2 * label_height_ - padding_,
110
 
                 UI::Panel::Style::kFsMenu),
 
110
                 UI::PanelStyle::kFsMenu),
111
111
 
112
112
     label_gametime_(this, right_column_x_, get_y_from_preceding(ta_mapname_) + 2 * padding_),
113
113
     ta_gametime_(this,
115
115
                  label_gametime_.get_y(),
116
116
                  get_right_column_w(right_column_tab_),
117
117
                  label_height_,
118
 
                  UI::Panel::Style::kFsMenu),
 
118
                  UI::PanelStyle::kFsMenu),
119
119
 
120
120
     label_players_(this, right_column_x_, get_y_from_preceding(ta_gametime_)),
121
121
     ta_players_(this,
123
123
                 label_players_.get_y(),
124
124
                 get_right_column_w(right_column_tab_),
125
125
                 label_height_,
126
 
                 UI::Panel::Style::kFsMenu),
 
126
                 UI::PanelStyle::kFsMenu),
127
127
 
128
128
     label_version_(this, right_column_x_, get_y_from_preceding(ta_players_)),
129
129
     ta_version_(this, right_column_tab_, label_version_.get_y()),
134
134
                       get_y_from_preceding(label_win_condition_) + padding_,
135
135
                       get_right_column_w(right_column_x_ + indent_),
136
136
                       label_height_,
137
 
                       UI::Panel::Style::kFsMenu),
 
137
                       UI::PanelStyle::kFsMenu),
138
138
 
139
139
     delete_(this,
140
140
             "delete",
142
142
             buty_ - buth_ - 2 * padding_,
143
143
             butw_,
144
144
             buth_,
145
 
             UI::Button::Style::kFsMenuSecondary,
 
145
             UI::ButtonStyle::kFsMenuSecondary,
146
146
             _("Delete")),
147
147
 
148
148
     ta_long_generic_message_(this,
150
150
                              get_y_from_preceding(ta_mapname_) + 2 * padding_,
151
151
                              get_right_column_w(right_column_x_),
152
152
                              delete_.get_y() - get_y_from_preceding(ta_mapname_) - 6 * padding_,
153
 
                              UI::Panel::Style::kFsMenu),
 
153
                              UI::PanelStyle::kFsMenu),
154
154
 
155
155
     minimap_y_(get_y_from_preceding(ta_win_condition_) + 3 * padding_),
156
156
     minimap_w_(get_right_column_w(right_column_x_)),