Пример #1
0
    private static int GetPanel(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UIDummy   uIDummy = (UIDummy)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIDummy");
        IXUIPanel panel   = uIDummy.GetPanel();

        LuaScriptMgr.PushObject(L, panel);
        return(1);
    }
Пример #2
0
    public void ChangePanel(GameObject go, IUIRect parent, IXUIPanel panel)
    {
        XUIPanel xUIPanel = panel as XUIPanel;
        UIRect   parent2  = parent as UIRect;

        if (xUIPanel != null)
        {
            NGUITools.ParentPanelChanged(go, parent2, xUIPanel.UIComponent as UIPanel);
        }
    }
Пример #3
0
    public void ShowGameObject(GameObject go, IXUIPanel panel)
    {
        XUIPanel xUIPanel = panel as XUIPanel;

        if (xUIPanel != null)
        {
            NGUITools.ParentPanelChanged(go, xUIPanel.UIComponent as UIPanel);
        }
        else
        {
            NGUITools.MarkParentAsChanged(go);
        }
    }