public override void Init() { this.enabled = EditorPrefs.GetBool(FormKey("enabled"), this.enabled); this.prefix = EditorPrefs.GetString(FormKey("prefix"), this.prefix); this.color = HierarchyUtil.GetColor(FormKey("color"), this.color); this.drawFill = EditorPrefs.GetBool(FormKey("drawFill"), this.drawFill); }
public override void Init() { this.enabled = EditorPrefs.GetBool(FormKey("enabled"), this.enabled); // Bar { this.colorizedLine = EditorPrefs.GetBool(FormKey("colorizedLine"), this.colorizedLine); this.lineAlpha = EditorPrefs.GetFloat(FormKey("lineAlpha"), this.lineAlpha); this.lineWidth = EditorPrefs.GetFloat(FormKey("lineWidth"), this.lineWidth); } // Item { this.colorizedItem = EditorPrefs.GetBool(FormKey("colorizedItem"), this.colorizedItem); this.drawMode = (DrawMode)EditorPrefs.GetInt(FormKey("drawMode"), (int)this.drawMode); this.gradientLength = EditorPrefs.GetFloat(FormKey("gradientLength"), this.gradientLength); this.baseLevelColor = HierarchyUtil.GetColor(FormKey("baseLevelColor"), this.baseLevelColor); this.branchesLen = EditorPrefs.GetInt(FormKey("branches.Length"), this.branchesLen); this.overlayAlpha = EditorPrefs.GetFloat(FormKey("overlayAlpha"), this.overlayAlpha); } // Divider { this.dividerColor = HierarchyUtil.GetColor(FormKey("dividerColor"), this.dividerColor); this.dividerHeight = EditorPrefs.GetFloat(FormKey("dividerHeight"), this.dividerHeight); } DynamicRefresh(); }
public override void Init() { { this.enabled = false; } this.enabled = EditorPrefs.GetBool(FormKey("enabled"), this.enabled); this.color = HierarchyUtil.GetColor(FormKey("color"), this.color); }
private void DynamicRefresh() { if (branchesLen > 0) { instance.branches = new Color[branchesLen]; for (int index = 0; index < branchesLen; ++index) { instance.branches[index] = HierarchyUtil.GetColor(FormKey("branches" + index), instance.branches[index]); } } }
public override void Init() { this.enabled = EditorPrefs.GetBool(FormKey("enabled"), this.enabled); this.enabledText = EditorPrefs.GetBool(FormKey("enabledText"), this.enabledText); this.textColorUntagged = HierarchyUtil.GetColor(FormKey("textColorUntagged"), this.textColorUntagged); this.textColor = HierarchyUtil.GetColor(FormKey("textColor"), this.textColor); this.enabledItem = EditorPrefs.GetBool(FormKey("enabledItem"), this.enabledItem); this.itemColors = HierarchyUtil.GetDictionary(FormKey("itemColors"), this.itemColors); this.gradientLength = HierarchyUtil.GetData(FormKey("gradientLength"), this.gradientLength); this.invertDirection = HierarchyUtil.GetData(FormKey("invertDirection"), this.invertDirection); }
public override void Init() { // Here emphasize we want this to be disabled by default! { this.enabled = false; } this.enabled = EditorPrefs.GetBool(FormKey("enabled"), this.enabled); this.enabledText = EditorPrefs.GetBool(FormKey("enabledText"), this.enabledText); this.textColorDefault = HierarchyUtil.GetColor(FormKey("textColorDefault"), this.textColorDefault); this.textColor = HierarchyUtil.GetColor(FormKey("textColor"), this.textColor); this.enabledItem = EditorPrefs.GetBool(FormKey("enabledItem"), this.enabledItem); this.itemColors = HierarchyUtil.GetDictionary(FormKey("itemColors"), this.itemColors); this.gradientLength = HierarchyUtil.GetData(FormKey("gradientLength"), this.gradientLength); this.invertDirection = HierarchyUtil.GetData(FormKey("invertDirection"), this.invertDirection); }