mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-05-31 00:51:37 +00:00
Added: HiRes images are now also applied to sprites.
Fixed: HiRes images should be loaded from subdirectories too. Fixed: in some cases the editor was unable to locate existing "LoRes" images when loading HiRes images. Disabled some HiRes-related warnings, because the editor doesn't track all sprites or graphics.
This commit is contained in:
parent
07a4c5c51e
commit
6b4dc3a287
5 changed files with 42 additions and 18 deletions
|
@ -239,14 +239,14 @@ namespace CodeImp.DoomBuilder.Data
|
|||
public override IEnumerable<HiResImage> LoadHiResTextures()
|
||||
{
|
||||
// Go for all files
|
||||
string[] files = GetAllFiles(HIRES_DIR, false);
|
||||
string[] files = GetAllFiles(HIRES_DIR, true);
|
||||
List<HiResImage> result = new List<HiResImage>(files.Length);
|
||||
foreach(string f in files)
|
||||
{
|
||||
if(string.IsNullOrEmpty(Path.GetFileNameWithoutExtension(f)))
|
||||
{
|
||||
// Can't load image without name
|
||||
General.ErrorLogger.Add(ErrorType.Error, "Can't load an unnamed HiRes texture from \"" + HIRES_DIR + "\". Please consider giving names to your resources.");
|
||||
General.ErrorLogger.Add(ErrorType.Error, "Can't load an unnamed HiRes texture from \"" + Path.Combine(this.location.GetDisplayName(), HIRES_DIR) + "\". Please consider giving names to your resources.");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue