Exemplo n.º 1
0
    protected override void OnDisable()
    {
        Int32 i     = 0;
        Int32 count = this.drawCalls.Count;

        while (i < count)
        {
            UIDrawCall uidrawCall = this.drawCalls[i];
            if (uidrawCall != (UnityEngine.Object)null)
            {
                UIDrawCall.Destroy(uidrawCall);
            }
            i++;
        }
        this.drawCalls.Clear();
        UIPanel.list.Remove(this);
        this.mAlphaFrameID = -1;
        this.mMatrixFrame  = -1;
        if (UIPanel.list.Count == 0)
        {
            UIDrawCall.ReleaseAll();
            UIPanel.mUpdateFrame = -1;
        }
        base.OnDisable();
    }
    protected override void OnDisable()
    {
        int i     = 0;
        int count = this.drawCalls.get_Count();

        while (i < count)
        {
            UIDrawCall uIDrawCall = this.drawCalls.get_Item(i);
            if (uIDrawCall != null)
            {
                UIDrawCall.Destroy(uIDrawCall);
            }
            i++;
        }
        this.drawCalls.Clear();
        UIPanel.list.Remove(this);
        this.mAlphaFrameID = -1;
        this.mMatrixFrame  = -1;
        if (UIPanel.list.get_Count() == 0)
        {
            UIDrawCall.ReleaseAll();
            UIPanel.mUpdateFrame = -1;
        }
        base.OnDisable();
    }
Exemplo n.º 3
0
    public void OnSwitchRoomLoadingStart()
    {
        Use <ToolManager>().CancelTool();

        _screensManager.CloseAll();
        _dialogManager.CloseAll();

        UIDrawCall.ReleaseAll();
    }
Exemplo n.º 4
0
    /// <summary>
    /// Destroy all draw calls we've created when this script gets disabled.
    /// </summary>

    protected override void OnDisable()
    {
        UIDrawCall.Destroy(this);
        list.Remove(this);
        if (list.size == 0)
        {
            UIDrawCall.ReleaseAll();
        }
        base.OnDisable();
    }
Exemplo n.º 5
0
    /// <summary>
    /// Destroy all draw calls we've created when this script gets disabled.
    /// </summary>

    void OnDisable()
    {
        mParent = null;
        UIDrawCall.Destroy(this);
        list.Remove(this);
        if (list.size == 0)
        {
            UIDrawCall.ReleaseAll();
        }
    }
Exemplo n.º 6
0
 static public int ReleaseAll_s(IntPtr l)
 {
     try {
         UIDrawCall.ReleaseAll();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 7
0
    void OnDisable()
    {
        for (int i = 0; i < drawCalls.size; ++i)
        {
            UIDrawCall dc = drawCalls.buffer[i];
            if (dc != null)
            {
                UIDrawCall.Destroy(dc);
            }
        }
        drawCalls.Clear();

        list.Remove(this);

        if (list.size == 0)
        {
            UIDrawCall.ReleaseAll();
        }
    }
Exemplo n.º 8
0
	/// <summary>
	/// Destroy all draw calls we've created when this script gets disabled.
	/// </summary>

	protected override void OnDisable ()
	{
		for (int i = 0, imax = drawCalls.Count; i < imax; ++i)
		{
			UIDrawCall dc = drawCalls[i];
			if (dc != null) UIDrawCall.Destroy(dc);
		}
		
		drawCalls.Clear();
		list.Remove(this);

		mAlphaFrameID = -1;
		mMatrixFrame = -1;
		
		if (list.Count == 0)
		{
			UIDrawCall.ReleaseAll();
			mUpdateFrame = -1;
		}
		base.OnDisable();
	}
Exemplo n.º 9
0
 protected override void OnDisable()
 {
     for (int i = 0; i < this.drawCalls.size; i++)
     {
         UIDrawCall uIDrawCall = this.drawCalls.buffer[i];
         if (uIDrawCall != null)
         {
             UIDrawCall.Destroy(uIDrawCall);
         }
     }
     this.drawCalls.Clear();
     UIPanel.list.Remove(this);
     this.mAlphaFrameID = -1;
     this.mMatrixFrame  = -1;
     if (UIPanel.list.size == 0)
     {
         UIDrawCall.ReleaseAll();
         UIPanel.mUpdateFrame = -1;
     }
     base.OnDisable();
 }
Exemplo n.º 10
0
    protected override void OnDisable()
    {
        int i = 0;

        for (int count = drawCalls.Count; i < count; i++)
        {
            UIDrawCall uIDrawCall = drawCalls[i];
            if (uIDrawCall != null)
            {
                UIDrawCall.Destroy(uIDrawCall);
            }
        }
        drawCalls.Clear();
        list.Remove(this);
        mAlphaFrameID = -1;
        mMatrixFrame  = -1;
        if (list.Count == 0)
        {
            UIDrawCall.ReleaseAll();
            mUpdateFrame = -1;
        }
        base.OnDisable();
    }
Exemplo n.º 11
0
 public unsafe static long $Invoke27(long instance, long *args)
 {
     UIDrawCall.ReleaseAll();
     return(-1L);
 }