Esempio n. 1
0
void CubeMap::UpdateButtonText()
{
	IAutoMParamDlg *dlg = pblock->GetMParamDlg();
	IParamMap2 *map = dlg->GetMap();
	if(map)
	{
		TSTR p,f,e,name;
		
		ParamDef &mapdef = pblock->GetParamDef(pb_cubemapfile);	//Added to force a filename to be present	
		mapdef.init_file = cubeMapFile;					//Added to force a filename to be present
		SplitFilename(cubeMapFile, &p, &f, &e);
		name = f+e;
		map->SetText(pb_cubemapfile, name.data());

	}
}
Esempio n. 2
0
void CubeMap::UpdateButtonText()
{
	IAutoMParamDlg *dlg = pblock->GetMParamDlg();
	IParamMap2 *map = dlg->GetMap();
	if(map)
	{
		TSTR p,f,e,name;
		
		ParamDef &mapdef = pblock->GetParamDef(pb_cubemapfile);	//Added to force a filename to be present	
		static TCHAR cubemapFile[MAX_PATH];
		_tcscpy(cubemapFile,cubeMapFileAsset.GetFileName());
		mapdef.init_file = cubemapFile;					//Added to force a filename to be present
		SplitFilename(TSTR(cubemapFile), &p, &f, &e);
		name = f+e;
		map->SetText(pb_cubemapfile, name);

	}
}