~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/ui_fsmenu/netsetup_lan.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:
50
50
              get_h() * 5333 / 10000,
51
51
              butw_,
52
52
              buth_,
53
 
              UI::Button::Style::kFsMenuSecondary,
 
53
              UI::ButtonStyle::kFsMenuSecondary,
54
54
              _("Join this game")),
55
55
     hostgame(this,
56
56
              "host_game",
58
58
              get_h() * 6083 / 10000,
59
59
              butw_,
60
60
              buth_,
61
 
              UI::Button::Style::kFsMenuSecondary,
 
61
              UI::ButtonStyle::kFsMenuSecondary,
62
62
              _("Host a new game")),
63
63
     back(this,
64
64
          "back",
66
66
          get_h() * 8333 / 10000,
67
67
          butw_,
68
68
          buth_,
69
 
          UI::Button::Style::kFsMenuSecondary,
 
69
          UI::ButtonStyle::kFsMenuSecondary,
70
70
          _("Back")),
71
71
     loadlasthost(this,
72
72
                  "load_previous_host",
74
74
                  get_h() * 19 / 40,
75
75
                  buth_,
76
76
                  buth_,
77
 
                  UI::Button::Style::kFsMenuSecondary,
 
77
                  UI::ButtonStyle::kFsMenuSecondary,
78
78
                  g_gr->images().get("images/ui_fsmenu/menu_load_game.png"),
79
79
                  _("Load previous host")),
80
80
 
85
85
                butw_,
86
86
                buth_,
87
87
                2,
88
 
                Panel::Style::kFsMenu,
 
88
                UI::PanelStyle::kFsMenu,
89
89
                fs_small()),
90
90
     hostname(this,
91
91
              get_w() * 16 / 25,
93
93
              get_w() * 17 / 80,
94
94
              buth_,
95
95
              2,
96
 
              Panel::Style::kFsMenu,
 
96
              UI::PanelStyle::kFsMenu,
97
97
              fs_small()),
98
98
 
99
99
     // List
102
102
               get_h() * 3333 / 10000,
103
103
               listw_,
104
104
               get_h() * 5433 / 10000,
105
 
               UI::Panel::Style::kFsMenu) {
 
105
               UI::PanelStyle::kFsMenu) {
106
106
        joingame.sigclicked.connect(
107
107
           boost::bind(&FullscreenMenuNetSetupLAN::clicked_joingame, boost::ref(*this)));
108
108
        hostgame.sigclicked.connect(