private static void LoadHiddenHeaderNames() { string data = PersistentData.Get("HiddenHeaderNames"); if (data == null) { headerHiddenSaved = new Dictionary <string, bool>(); } else { headerHiddenSaved = Parser.Deserialize <Dictionary <string, bool> >(data); } }
public static Gradient GetGradient(Texture texture) { if (texture != null) { string gradient_data_string = FileHelper.LoadValueFromFile(texture.name, PATH.GRADIENT_INFO_FILE); if (gradient_data_string != null) { Debug.Log(texture.name + " Gradient loaded from file."); Gradient g = Parser.Deserialize <Gradient>(gradient_data_string); return(g); } Debug.Log(texture.name + " Converted into Gradient."); return(Converter.TextureToGradient(GetReadableTexture(texture))); } return(new Gradient()); }
private static void LoadHiddenHeaderNames() { string data = PersistentData.Get("HiddenHeaderNames"); if (data == null) { headerHiddenSaved = new Dictionary <string, bool>(); } else { headerHiddenSaved = Parser.Deserialize <Dictionary <string, bool> >(data); } data = PersistentData.Get("HeaderHiderState"); if (data == null) { state = HeaderHidingType.simple; } else { state = (HeaderHidingType)Enum.Parse(typeof(HeaderHidingType), data); } }