// INIT private void init() { inited = 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 = QResources.getInstance().getTexture(QTexture.QCheckBoxChecked); checkBoxUnchecked = QResources.getInstance().getTexture(QTexture.QCheckBoxUnchecked); restoreButtonTexture = QResources.getInstance().getTexture(QTexture.QRestoreButton); componentsOrderList = new QComponentsOrderList(this); }
// COMPONENTS ORDER private void drawOrderSettings() { if (drawRestore()) { QSettings.getInstance().restore(QSetting.ComponentsOrder); } indentLevel += 4; string componentOrder = QSettings.getInstance().get <string>(QSetting.ComponentsOrder); string[] componentIds = componentOrder.Split(';'); Rect rect = getControlRect(position.width, 17 * componentIds.Length + 10, 0, 0); if (componentsOrderList == null) { componentsOrderList = new QComponentsOrderList(this); } componentsOrderList.draw(rect, componentIds); indentLevel -= 4; }