CreatePanel() публичный Метод

Ensure we have a panel referencing this widget.
public CreatePanel ( ) : void
Результат void
Пример #1
0
	static void CallCreatePanel (Transform t)
	{
		UIWidget w = t.GetComponent<UIWidget>();
		if (w != null) w.CreatePanel();
		for (int i = 0, imax = t.childCount; i < imax; ++i)
			CallCreatePanel(t.GetChild(i));
	}
Пример #2
0
 static public int CreatePanel(IntPtr l)
 {
     try {
         UIWidget self = (UIWidget)checkSelf(l);
         var      ret  = self.CreatePanel();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #3
0
    private static void CallCreatePanel(Transform t)
    {
        UIWidget component = t.GetComponent <UIWidget>();

        if (component != null)
        {
            component.CreatePanel();
        }
        int i = 0;

        for (int childCount = t.childCount; i < childCount; i++)
        {
            CallCreatePanel(t.GetChild(i));
        }
    }
Пример #4
0
	static int CreatePanel(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 1);
			UIWidget obj = (UIWidget)ToLua.CheckObject<UIWidget>(L, 1);
			UIPanel o = obj.CreatePanel();
			ToLua.Push(L, o);
			return 1;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
Пример #5
0
    private static void CallCreatePanel(Transform t)
    {
        UIWidget component = t.GetComponent <UIWidget>();

        if (component != null)
        {
            component.CreatePanel();
        }
        int i          = 0;
        int childCount = t.childCount;

        while (i < childCount)
        {
            NGUITools.CallCreatePanel(t.GetChild(i));
            i++;
        }
    }