void Initialize() { initialized = true; isProSkin = EditorGUIUtility.isProSkin; separatorColor = isProSkin ? new Color(0.18f, 0.18f, 0.18f) : new Color(0.59f, 0.59f, 0.59f); yellowColor = isProSkin ? new Color(1.00f, 0.90f, 0.40f) : new Color(0.31f, 0.31f, 0.31f); checkBoxChecked = Resources.Instance.GetTexture(Image.kCheckBoxChecked); checkBoxUnchecked = Resources.Instance.GetTexture(Image.kCheckBoxUnchecked); restoreButtonTexture = Resources.Instance.GetTexture(Image.kRestoreButton); componentsOrderList = new ComponentsOrderList(this); }
void DrawOrderSettings() { if (DrawRestore() != false) { Settings.Instance.Restore(Setting.kComponentsOrder); } indentLevel += 4; string componentOrder = Settings.Instance.Get <string>(Setting.kComponentsOrder); string[] componentIds = componentOrder.Split(';'); Rect rect = GetControlRect(position.width, 17 * componentIds.Length + 10, 0, 0); if (componentsOrderList == null) { componentsOrderList = new ComponentsOrderList(this); } componentsOrderList.Draw(rect, componentIds); indentLevel -= 4; }