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); }
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); } }
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); } }