add define
This commit is contained in:
parent
f837aec845
commit
34807988d8
@ -18,6 +18,7 @@ namespace NEG.UI.UnityUi
|
|||||||
/// <para>You have to provide prefabs within resources:</para>
|
/// <para>You have to provide prefabs within resources:</para>
|
||||||
/// <para> - UI/PopupCanvas - prefab with canvas to create popups (will be created on every scene)</para>
|
/// <para> - UI/PopupCanvas - prefab with canvas to create popups (will be created on every scene)</para>
|
||||||
/// <para> - UI/DefaultPopupPrefab - prefab of default popup with 2 options (has to have <see cref="MonoDefaultPopup"/> component)</para>
|
/// <para> - UI/DefaultPopupPrefab - prefab of default popup with 2 options (has to have <see cref="MonoDefaultPopup"/> component)</para>
|
||||||
|
/// NEG_UI_DISABLE_WARNING_DEFAULT_SELECTION
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MonoUiManager : UiManager, IDisposable
|
public class MonoUiManager : UiManager, IDisposable
|
||||||
{
|
{
|
||||||
|
|||||||
@ -58,8 +58,10 @@ namespace NEG.UI.UnityUi.Window
|
|||||||
{
|
{
|
||||||
if (controller == null)
|
if (controller == null)
|
||||||
controller = GetComponent<WindowController>();
|
controller = GetComponent<WindowController>();
|
||||||
|
#if !NEG_UI_DISABLE_WARNING_DEFAULT_SELECTION
|
||||||
if(defaultSelectedItem == null)
|
if(defaultSelectedItem == null)
|
||||||
Debug.LogWarning($"Window {name} should have default selected item set");
|
Debug.LogWarning($"Window {name} should have default selected item set");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OpenWindow(IWindow window, object data = null)
|
public void OpenWindow(IWindow window, object data = null)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user