Exemplo n.º 1
0
        private UIMapIcon GetIconByID(int id)
        {
            UIMapIcon icon = null;

            m_IconParameters.TryGetValue(id, out icon);
            return(icon);
        }
Exemplo n.º 2
0
        public void SetIconState(int levelID, Levels.State state)
        {
            UIMapIcon icon = GetIconByID(levelID);

            if (icon != null)
            {
                if (state.Value != icon.State)
                {
                    icon.State = state.Value;
                    if (state.IsClosed)
                    {
                        icon.Icon.color = m_CloseColor;
                    }
                    else if (state.IsOpened)
                    {
                        icon.Icon.color = m_OpenColor;
                    }
                    else if (state.IsCompleted)
                    {
                        icon.Icon.color = m_CompleteColor;
                    }
                }
            }
        }