MCPcopy Create free account
hub / github.com/crossuo/crossuo / OpenWorldMap

Method OpenWorldMap

src/CrossUO.cpp:5873–5889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5871}
5872
5873void CGame::OpenWorldMap()
5874{
5875 size_t pluginsInfoCount = Crypt::GetPluginsCount();
5876 if (pluginsInfoCount > 0u)
5877 {
5878 CPluginPacketOpenMap().SendToPlugin(); //TODO: query if plugin supports world map
5879 return;
5880 }
5881
5882 int x = g_ConfigManager.GameWindowX + (g_ConfigManager.GameWindowWidth / 2) - 200;
5883 int y = g_ConfigManager.GameWindowY + (g_ConfigManager.GameWindowHeight / 2) - 150;
5884
5885 CGumpWorldMap *gump = new CGumpWorldMap(x, y);
5886 gump->Called = true;
5887
5888 g_GumpManager.AddGump(gump);
5889}
5890
5891void CGame::OpenJournal()
5892{

Callers 2

GumpMenubar.cppFile · 0.80
ProcessSubMenuMethod · 0.80

Calls 4

GetPluginsCountFunction · 0.85
SendToPluginMethod · 0.80
AddGumpMethod · 0.80

Tested by

no test coverage detected