Example #1
0
    public static string FindNameOfUIByWidget(int widgetId)
    {
        UIWidgetTable uIWidgetTable = DataReader <UIWidgetTable> .Get(widgetId);

        if (uIWidgetTable != null)
        {
            if (uIWidgetTable.uiId > 0)
            {
                return(WidgetSystem.FindNameOfUIById(uIWidgetTable.uiId));
            }
            Debug.LogError("GameData.UIWidgetTable no uiId, widgetId = " + widgetId);
        }
        return(string.Empty);
    }
Example #2
0
    public static bool IsUIOpen(int uiId)
    {
        string prefabName = WidgetSystem.FindNameOfUIById(uiId);

        return(UIManagerControl.Instance.IsOpen(prefabName));
    }