Example #1
0
 /// <summary>
 /// Register the specified frame.
 /// </summary>
 public void Register(TTUIFrame frame)
 {
     if ((frame != null) && !this.frameDic.ContainsKey(frame.ID))
     {
         frame.Owner = this;
         frame.RegisterHandlers(this.msgMgr);
         this.frameDic.Add(frame.ID, frame);
     }
 }
Example #2
0
    /// <summary>
    /// Des the active.
    /// </summary>
    public void DeActive(int id, bool forceWithOutAni = false)
    {
        TTUIFrame frame = this.GetFrame(id);

        if (!this.frameDic.ContainsKey(id))
        {
            Debug.Log("not registered frame " + id);
        }
        else if (this.activeList.Contains(id))
        {
            this.activeList.Remove(id);
            frame.DeActive();
        }
    }
 /// <summary>
 /// Register the specified frame.
 /// </summary>
 public void Register(TTUIFrame frame)
 {
     if ((frame != null) && !this.frameDic.ContainsKey(frame.ID))
     {
         frame.Owner = this;
         frame.RegisterHandlers(this.msgMgr);
         this.frameDic.Add(frame.ID, frame);
     }
 }