|
|
@ -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
|
|
|
|
|
|
|
|
|
|
|
|