44
44
Interactive_GameBase(_game, global_s, NONE, true),
46
#define INIT_BTN(picture, callback, tooltip) \
47
TOOLBAR_BUTTON_COMMON_PARAMETERS, \
46
#define INIT_BTN(picture, name, callback, tooltip) \
47
TOOLBAR_BUTTON_COMMON_PARAMETERS(name), \
48
48
g_gr->get_picture(PicMod_Game, "pics/" picture ".png"), \
49
49
&Interactive_DServer::callback, *this, \
53
(INIT_BTN("menu_chat", toggle_chat, _("Chat"))),
53
(INIT_BTN("menu_chat", "chat", toggle_chat, _("Chat"))),
54
54
m_toggle_options_menu
55
(INIT_BTN("menu_options_menu", toggle_options_menu, _("Options"))),
55
(INIT_BTN("menu_options_menu", "options_menu", toggle_options_menu,
56
58
m_toggle_statistics
57
(INIT_BTN("menu_general_stats", toggle_statistics, _("Statistics")))
59
(INIT_BTN("menu_general_stats", "general_stats", toggle_statistics,
63
m_toolbar.set_layout_toplevel(true);
59
64
m_toolbar.add(&m_toggle_chat, UI::Box::AlignLeft);
60
65
m_toolbar.add(&m_toggle_options_menu, UI::Box::AlignLeft);
61
66
m_toolbar.add(&m_toggle_statistics, UI::Box::AlignLeft);