コード例 #1
0
        internal async Task FindEventFunction(EngineNS.UISystem.UIElement element, string functionName)
        {
            var    key = new UIResourceInfo.UIEventDicKey(element.Id, functionName);
            string dicValue;

            if (HostControl.CurrentResInfo.UIEventsDic.TryGetValue(key, out dicValue))
            {
                var category = Macross_Client.GetCategory(MacrossPanel.UIEventFuncCategoryName);
                var item     = category.FindItem(dicValue);
                if (item != null)
                {
                    await Macross_Client.ShowNodesContainer(item);

                    HostControl.ChangeToLogic();
                }
            }
        }