private bool HandleVariableExcluded(DataTypes.Variables.VariableSave variable, DataTypes.RecursiveVariableFinder rvf) { string rootName = variable.GetRootName(); bool shouldExclude = false; if (rootName == "Texture Top" || rootName == "Texture Left") { var addressMode = rvf.GetValue<TextureAddress>("Texture Address"); shouldExclude = addressMode == TextureAddress.EntireTexture; } if (rootName == "Texture Width" || rootName == "Texture Height") { var addressMode = rvf.GetValue<TextureAddress>("Texture Address"); shouldExclude = addressMode == TextureAddress.EntireTexture || addressMode == TextureAddress.DimensionsBased; } if (rootName == "Texture Width Scale" || rootName == "Texture Height Scale") { var addressMode = rvf.GetValue<TextureAddress>("Texture Address"); shouldExclude = addressMode == TextureAddress.EntireTexture || addressMode == TextureAddress.Custom; } return shouldExclude; }
private bool HandleVariableExcluded(DataTypes.Variables.VariableSave variable, DataTypes.RecursiveVariableFinder rvf) { string rootName = variable.GetRootName(); bool shouldExclude = false; if(rootName == "Font" || rootName == "FontSize" || rootName == "OutlineThickness") { bool useCustomFont = rvf.GetValue<bool>("UseCustomFont"); shouldExclude = useCustomFont; } else if (rootName == "CustomFontFile") { bool useCustomFont = rvf.GetValue<bool>("UseCustomFont"); shouldExclude = useCustomFont == false; } return shouldExclude; }