Merge branch 'atys' into yubo

fix_opengl_on_mac
Ulukyn 5 years ago
commit 123197b90b

@ -4303,6 +4303,17 @@ class CUpdateLandMarksColor : public IActionHandler{public: virtual void execute
}}; }};
REGISTER_ACTION_HANDLER (CUpdateLandMarksColor, "update_landmarks_color"); REGISTER_ACTION_HANDLER (CUpdateLandMarksColor, "update_landmarks_color");
NLMISC_COMMAND( setMap, "Change the map", "" )
{
if (args.size() != 1) return false;
CInterfaceManager *pIM = CInterfaceManager::getInstance();
CGroupMap *pMap = dynamic_cast<CGroupMap*>(CWidgetManager::getInstance()->getElementFromId("ui:interface:map:content:map_content:actual_map"));
if (pMap != NULL)
pMap->setMap(args[0]);
return true;
}
//////////////////// ////////////////////
// DEBUG COMMANDS // // DEBUG COMMANDS //
@ -4363,17 +4374,5 @@ NLMISC_COMMAND( testRespawn, "Debug : test respawn map", "" )
return true; return true;
} }
NLMISC_COMMAND( setMap, "Debug : test respawn map", "" )
{
if (args.size() != 1) return false;
CInterfaceManager *pIM = CInterfaceManager::getInstance();
CGroupMap *pMap = dynamic_cast<CGroupMap*>(CWidgetManager::getInstance()->getElementFromId("ui:interface:map:content:map_content:actual_map"));
if (pMap != NULL)
pMap->setMap(args[0]);
return true;
}
#endif #endif

Loading…
Cancel
Save