-
Notifications
You must be signed in to change notification settings - Fork 4
/
callbacks.h
42 lines (37 loc) · 1.56 KB
/
callbacks.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (C) 2009 - 2021 Marc Vester (XaserLE)
// Copyright (C) 2009 - 2021 Settlers Freaks <sf-team at siedler25.org>
//
// SPDX-License-Identifier: GPL-3.0-or-later
// NOTE: negative callbackParams are reserved: -1 = callback is called first time, -2 = used by gameloop for registered
// callbacks (callbacks that will additionally execute WITHIN the gameloop)
// NOTE: don't forget that if the map quits (Param: MAP_QUIT), there are many windows that have to be closed.
// This happens for example if a new Map will be loaded or user goes to main menu. So if you add a new window, don't
// forget to add it to this "close lists" if it's necessary (also in the file CMap.cpp, function setMouseData(Button)).
#pragma once
namespace callback {
// PleaseWait creates a small window (not moveable, not resizeable, not minimizable, not closeable) with the String
// "Please wait..."
void PleaseWait(int Param);
void ShowStatus(int Param);
void mainmenu(int Param);
void submenuOptions(int Param);
void MinimapMenu(int Param);
void EditorHelpMenu(int Param);
void EditorMainMenu(int Param);
void EditorLoadMenu(int Param);
void EditorSaveMenu(int Param);
void EditorQuitMenu(int Param);
void EditorTextureMenu(int Param);
void EditorTreeMenu(int Param);
void EditorResourceMenu(int Param);
void EditorLandscapeMenu(int Param);
void EditorAnimalMenu(int Param);
void EditorPlayerMenu(int Param);
void EditorCreateMenu(int Param);
void EditorCursorMenu(int Param);
#ifdef _ADMINMODE
void debugger(int Param);
void viewer(int Param);
void submenu1(int Param);
#endif
} // namespace callback