====== zproj_GetMapAlternateName ====== ===== Description ===== Get the alternative name of a map in the project, either the 'long' display name (e.g. "Heightfield") or the 'short' abbreviated name (e.g. "HF"). ===== Files ===== ^ Declaration | ''zProj.h'' | ^ Implementation | ''zProj.cpp'' | ===== Function prototype ===== bool zproj_GetMapAlternateName(const char* lpMapName, ZSTR hAltName, bool GetLongName = true); ===== Arguments ===== ^ Name ^ Type ^ Comment ^ | //lpMapName// | ''const char*'' | A pointer to a C-style string containing the map name. | | //hAltName// | ''ZSTR'' | A [[zeolite:types:ZSTR]] handle to a string variable that is to receive the alternative name of the map. | | //GetLongName// | ''bool'' | A flag that determines whether the long or short names of the map is to be retrieved. See comments for more information. | ===== Return value ===== True if: * //lpMapName// refers to a valid map in the project, and; * The map named by //lpMapName// has a registered alternative name. False otherwise. ===== Comments ===== ==== GetLongName ==== If the //GetLongName// argument is ''true'', //lpMapName// must contain the 'short' name of the map (e.g. "WM"), and //hAltName// will receive the long name of the map (e.g. "Water map"). Conversely, if //GetLongName// is ''false'', //lpMapName// must contain the 'long' name of the map, and //hAltName// will receive the short name of the map.