summaryrefslogtreecommitdiff
path: root/src/toolbar_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-06-19 20:04:24 +0000
committerbelugas <belugas@openttd.org>2008-06-19 20:04:24 +0000
commitbee793422077fbc208457c5775b67c2d6d693579 (patch)
tree80725be5bda840c51f4abf893e2430d9cceed6ff /src/toolbar_gui.cpp
parent32c2041f891b451d66a72871986871c46b6f8263 (diff)
downloadopenttd-bee793422077fbc208457c5775b67c2d6d693579.tar.xz
(svn r13588) -Documentation: Document the function PopupMainPlayerToolbMenu. Makes it a bit clearer, don't you think?
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r--src/toolbar_gui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index 90a11e92d..a4b4b5887 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -1611,6 +1611,11 @@ static const Widget _player_menu_widgets[] = {
{ WIDGETS_END},
};
+/** Shows the list of players appearing under the buttons that are linked to options for
+ * multiple players.
+ * @param parent Window who triggered that action. It's the toolbar, in fact
+ * @param main_button widget which has been used
+ * @param gray bit-mapping of the items that will need to be grayed out once displayed */
static void PopupMainPlayerToolbMenu(Window *parent, int main_button, int gray)
{
parent->LowerWidget(main_button);