~shevonar/widelands/reworking-menus

« back to all changes in this revision

Viewing changes to src/wui/playerdescrgroup.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:
70
70
        d->btnPlayerType = new UI::Button
71
71
                (this, "player_type",
72
72
                 xplayertype, 0, xplayerteam - xplayertype - 2, h,
73
 
                 g_gr->get_picture(PicMod_UI, "pics/but1.png"),
 
73
                 g_gr->imgcache().load(PicMod_UI, "pics/but1.png"),
74
74
                 std::string(), std::string(),
75
75
                 true, false);
76
76
        d->btnPlayerType->sigclicked.connect
79
79
        d->btnPlayerTeam = new UI::Button
80
80
                (this, "player_team",
81
81
                 xplayerteam, 0, xplayertribe - xplayerteam - 2, h,
82
 
                 g_gr->get_picture(PicMod_UI, "pics/but1.png"),
 
82
                 g_gr->imgcache().load(PicMod_UI, "pics/but1.png"),
83
83
                 std::string(), std::string(),
84
84
                 true, false);
85
85
        d->btnPlayerTeam->sigclicked.connect
88
88
        d->btnPlayerTribe = new UI::Button
89
89
                (this, "player_tribe",
90
90
                 xplayertribe, 0, xplayerinit - xplayertribe - 2, h,
91
 
                 g_gr->get_picture(PicMod_UI, "pics/but1.png"),
 
91
                 g_gr->imgcache().load(PicMod_UI, "pics/but1.png"),
92
92
                 std::string(), std::string(),
93
93
                 true, false);
94
94
        d->btnPlayerTribe->sigclicked.connect
97
97
        d->btnPlayerInit = new UI::Button
98
98
                (this, "player_initialization",
99
99
                 xplayerinit, 0, w - xplayerinit, h,
100
 
                 g_gr->get_picture(PicMod_UI, "pics/but1.png"),
 
100
                 g_gr->imgcache().load(PicMod_UI, "pics/but1.png"),
101
101
                 std::string(), _("Initialization"),
102
102
                 true, false);
103
103
        d->btnPlayerInit->sigclicked.connect