~shevonar/widelands/reworking-menus

« back to all changes in this revision

Viewing changes to src/wui/ware_statistics_menu.cc

  • Committer: Shevonar
  • Date: 2013-01-15 23:15:22 UTC
  • mfrom: (6432.1.56 trunk)
  • Revision ID: infomh@anmaruco.de-20130115231522-782njbcagjo6olef
mergedĀ currentĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
 
170
170
        UI::Tab_Panel * tabs =
171
171
                 new UI::Tab_Panel
172
 
                         (box, spacing, 0, g_gr->get_picture(PicMod_UI, "pics/but1.png"));
 
172
                         (box, spacing, 0, g_gr->imgcache().load(PicMod_UI, "pics/but1.png"));
173
173
 
174
174
 
175
175
        m_plot_production =
180
180
        m_plot_production->set_plotmode(WUIPlot_Area::PLOTMODE_RELATIVE);
181
181
 
182
182
        tabs->add
183
 
                ("production", g_gr->get_picture(PicMod_UI, pic_tab_production),
 
183
                ("production", g_gr->imgcache().load(PicMod_UI, pic_tab_production),
184
184
                        m_plot_production, _("Production"));
185
185
 
186
186
        m_plot_consumption =
191
191
        m_plot_consumption->set_plotmode(WUIPlot_Area::PLOTMODE_RELATIVE);
192
192
 
193
193
        tabs->add
194
 
                ("consumption", g_gr->get_picture(PicMod_UI, pic_tab_consumption),
 
194
                ("consumption", g_gr->imgcache().load(PicMod_UI, pic_tab_consumption),
195
195
                        m_plot_consumption, _("Consumption"));
196
196
 
197
197
        m_plot_economy =
202
202
        m_plot_economy->set_plotmode(WUIPlot_Area::PLOTMODE_RELATIVE);
203
203
 
204
204
        tabs->add
205
 
                ("economy_health", g_gr->get_picture(PicMod_UI, pic_tab_economy),
 
205
                ("economy_health", g_gr->imgcache().load(PicMod_UI, pic_tab_economy),
206
206
                        m_plot_economy, _("Economy Health"));
207
207
 
208
208
        m_plot_stock = new WUIPlot_Area
212
212
        m_plot_stock->set_plotmode(WUIPlot_Area::PLOTMODE_ABSOLUTE);
213
213
 
214
214
        tabs->add
215
 
                ("stock", g_gr->get_picture(PicMod_UI, pic_tab_stock),
 
215
                ("stock", g_gr->imgcache().load(PicMod_UI, pic_tab_stock),
216
216
                        m_plot_stock, _("Stock"));
217
217
 
218
218
        tabs->activate(0);
263
263
                (new WUIPlot_Generic_Area_Slider
264
264
                        (this, *m_plot_production, this,
265
265
                        0, 0, 100, 45,
266
 
                        g_gr->get_picture(PicMod_UI, "pics/but1.png")),
 
266
                        g_gr->imgcache().load(PicMod_UI, "pics/but1.png")),
267
267
                 UI::Box::AlignLeft, true);
268
268
 
269
269
}