Exemplo n.º 1
0
        public void ClearButtonEventHandler(
            string instanceName, ButtonEventHandlers.Type type)
        {
            int instId = SearchInstanceId(GetStringId(instanceName));

            if (instId >= 0)
            {
                ClearButtonEventHandler(instId, type);
                return;
            }

            if (m_buttonEventHandlersByFullName == null)
            {
                return;
            }

            ButtonEventHandlers handlers;

            if (!m_buttonEventHandlersByFullName.TryGetValue(
                    instanceName, out handlers))
            {
                return;
            }

            handlers.Clear(type);
        }
Exemplo n.º 2
0
        public void ClearButtonEventHandler(
            int instId, ButtonEventHandlers.Type type)
        {
            if (instId < 0 || instId >= m_instances.Length)
            {
                return;
            }

            ButtonEventHandlers handlers = m_buttonEventHandlers[instId];

            if (handlers == null)
            {
                return;
            }

            handlers.Clear(type);
        }
Exemplo n.º 3
0
        public void ClearButtonEventHandler(
            int instId, ButtonEventHandlers.Type type)
        {
            if (instId < 0 || instId >= m_instances.Length)
            {
                return;
            }

            ButtonEventHandlers handlers = m_buttonEventHandlers[instId];

            if (handlers == null)
            {
                return;
            }

            handlers.Clear(type);

            Button button = SearchButtonInstanceByInstanceId(instId);

            if (button != null)
            {
                button.SetHandlers(handlers);
            }
        }