invisible, 0x0 foundation and sprite image auto-detection
This commit is contained in:
@@ -117,6 +117,10 @@ namespace OpenRA.Mods.TS.UtilityCommands
|
||||
if (!string.IsNullOrEmpty(foundation))
|
||||
{
|
||||
var dimensions = foundation.Split('x');
|
||||
if (dimensions.First() == "0" || dimensions.Last() == "0")
|
||||
Console.WriteLine("\tImmobile:\n \t\tOccupiesSpace: False");
|
||||
else
|
||||
{
|
||||
Console.WriteLine("\tBuilding:");
|
||||
|
||||
var adjacent = rulesSection.GetValue("Adjacent", string.Empty);
|
||||
@@ -139,6 +143,7 @@ namespace OpenRA.Mods.TS.UtilityCommands
|
||||
|
||||
Console.WriteLine();
|
||||
}
|
||||
}
|
||||
|
||||
var buildup = artSection.GetValue("Buildup", string.Empty);
|
||||
if (!string.IsNullOrEmpty(buildup) && buildup != "none")
|
||||
@@ -158,7 +163,12 @@ namespace OpenRA.Mods.TS.UtilityCommands
|
||||
if (!string.IsNullOrEmpty(isAnimated) && isAnimated == "yes")
|
||||
useTerrainPalette = false;
|
||||
|
||||
var invisibleInGame = rulesSection.GetValue("InvisibleInGame", string.Empty);
|
||||
if (!string.IsNullOrEmpty(invisibleInGame) && invisibleInGame == "yes")
|
||||
Console.WriteLine("\tRenderSpritesEditorOnly:");
|
||||
else
|
||||
Console.WriteLine("\tRenderSprites:");
|
||||
|
||||
if (useTerrainPalette)
|
||||
{
|
||||
if (Game.ModData.DefaultRules.Actors.ContainsKey("world"))
|
||||
@@ -169,6 +179,10 @@ namespace OpenRA.Mods.TS.UtilityCommands
|
||||
}
|
||||
}
|
||||
|
||||
var image = rulesSection.GetValue("Image", string.Empty);
|
||||
if (!string.IsNullOrEmpty(image) && image != "none")
|
||||
Console.WriteLine("\t\tImage: " + image.ToLowerInvariant());
|
||||
|
||||
Console.WriteLine("\tWithSpriteBody:");
|
||||
Console.WriteLine("\tAutoSelectionSize:");
|
||||
Console.WriteLine("\tBodyOrientation:\n\t\tUseClassicPerspectiveFudge: False\n\t\tQuantizedFacings: 1");
|
||||
|
||||
Reference in New Issue
Block a user