void DrawButtons(float width) { QUI.BeginChangeCheck(); QUI.QObjectList("Notification Buttons", buttons, "No UIButtons referenced...", showNotificationButtons, width, BarHeight); if (QUI.EndChangeCheck()) { serializedObject.ApplyModifiedProperties(); if (uiNotification.buttons != null && uiNotification.buttons.Length > 0) { for (int i = 0; i < uiNotification.buttons.Length; i++) { if (uiNotification.buttons[i] != null) { uiNotification.buttons[i].name = "Notification Button " + i; } } } } }
void DrawEffects(float width) { QUI.BeginChangeCheck(); QUI.QObjectList("Notification Effects", effects, "No UIEffects referenced...", showNotificationEffects, width, BarHeight); if (QUI.EndChangeCheck()) { serializedObject.ApplyModifiedProperties(); if (uiNotification.effects != null && uiNotification.effects.Length > 0) { for (int i = 0; i < uiNotification.effects.Length; i++) { if (uiNotification.effects[i] != null) { uiNotification.effects[i].targetUIElement = uiNotification.notificationContainer; uiNotification.effects[i].name = "Notification Effect " + i; } } } } }
void DrawSpecialElements(float width) { QUI.BeginChangeCheck(); QUI.QObjectList("Special Elements", specialElements, "No UIElements referenced...", showSpecialElements, width, BarHeight); if (QUI.EndChangeCheck()) { serializedObject.ApplyModifiedProperties(); if (uiNotification.specialElements != null && uiNotification.specialElements.Length > 0) { for (int i = 0; i < uiNotification.specialElements.Length; i++) { if (uiNotification.specialElements[i] != null) { uiNotification.specialElements[i].transform.SetParent(uiNotification.transform); uiNotification.specialElements[i].name = DUI.DUISettings.UIElement_Inspector_RenameGameObjectPrefix + "Special Element " + i + DUI.DUISettings.UIElement_Inspector_RenameGameObjectSuffix; } } } } }