MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / MenuClickNewspaper

Function MenuClickNewspaper

src/toolbar_gui.cpp:1042–1050  ·  view source on GitHub ↗

* Handle click on the entry in the Newspaper menu. * * @param index Menu entry clicked. * @return #CBF_NONE */

Source from the content-addressed store, hash-verified

1040 * @return #CBF_NONE
1041 */
1042static CallBackFunction MenuClickNewspaper(int index)
1043{
1044 switch (index) {
1045 case 0: ShowLastNewsMessage(); break;
1046 case 1: ShowMessageHistory(); break;
1047 case 2: DeleteAllMessages(); break;
1048 }
1049 return CBF_NONE;
1050}
1051
1052/* --- Help button menu --- */
1053

Callers

nothing calls this directly

Calls 3

ShowLastNewsMessageFunction · 0.85
ShowMessageHistoryFunction · 0.85
DeleteAllMessagesFunction · 0.85

Tested by

no test coverage detected