void LandscapeEditorColor::TextureWillChanged(const String &forKey)
{
    if("property.landscape.texture.tilemask" == forKey)
    {
        if(savedPath.length())
        {
            SaveTextureAction(savedPath);
        }
    }
}
Exemple #2
0
void LandscapeEditorBase::SaveTextureAs(const String &pathToFile, bool closeLE)
{
    SaveTextureAction(pathToFile);
    
    if(closeLE)
    {
        state = ELE_TEXTURE_SAVED;
        Close();
    }
}
void LandscapeEditorHeightmap::TextureWillChanged(const String &forKey)
{
    if("property.landscape.texture.heightmap" == forKey)
    {
        if(savedPath.length())
        {
            SaveTextureAction(savedPath);

			StoreOriginalHeightmap();
        }
    }
    else if("property.landscape.texture.tilemask" == forKey) 
    {
        if(tilemaskImage && tilemaskWasChanged)
        {
            tilemaskWasChanged = false;
            ImageLoader::Save(tilemaskImage, tilemaskPathname);
        }
    }
}
void LandscapeEditorCustomColors::SaveColorLayer(const FilePath &pathName)
{
	SaveTextureAction(pathName);
}