private AutoSpriteControlBase GetCharKindContainer(UIListItemContainer item, int pTargetCharKind)
    {
        if (item == null)
        {
            return(null);
        }
        int objCount = item.GetObjCount();

        for (int i = 0; i < objCount; i++)
        {
            object elementObject = item.GetElementObject(i);
            if (elementObject != null)
            {
                if (elementObject is NrCharKindInfo)
                {
                    NrCharKindInfo nrCharKindInfo = (NrCharKindInfo)elementObject;
                    if (nrCharKindInfo.GetCharKind() == pTargetCharKind)
                    {
                        return(item.GetElement(i));
                    }
                }
            }
        }
        return(null);
    }
 public override void Update()
 {
     base.Update();
     if (this.IsRadioAlarmMode())
     {
         return;
     }
     for (int i = 0; i < 9; i++)
     {
         UIListItemContainer item            = this.m_nlbEmoticon.GetItem(i);
         BATTLE_EMOTICON     bATTLE_EMOTICON = (BATTLE_EMOTICON)item.GetElementObject(0);
         if (!Battle.BATTLE.IsEmotionSet)
         {
             if (item != null)
             {
                 UIButton uIButton = item.GetElement(0) as UIButton;
                 if (uIButton != null)
                 {
                     uIButton.SetControlState(UIButton.CONTROL_STATE.NORMAL);
                 }
             }
         }
         else if (Battle.BATTLE.SetEmoticon == bATTLE_EMOTICON.m_eConstant)
         {
             if (item != null)
             {
                 UIButton uIButton2 = item.GetElement(0) as UIButton;
                 if (uIButton2 != null)
                 {
                     uIButton2.SetControlState(UIButton.CONTROL_STATE.ACTIVE);
                 }
             }
         }
         else if (item != null)
         {
             UIButton uIButton3 = item.GetElement(0) as UIButton;
             if (uIButton3 != null)
             {
                 uIButton3.SetControlState(UIButton.CONTROL_STATE.NORMAL);
             }
         }
     }
 }