static int GetFirstPractice(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); uint arg0 = (uint)LuaScriptMgr.GetNumber(L, 1); uint o = LoginIDManager.GetFirstPractice(arg0); LuaScriptMgr.Push(L, o); return(1); }
private void PostCreateUI() { _ui_practise = GameObject.FindGameObjectWithTag("UIPractise"); if (_ui_practise) { _ui_signal = _ui_practise.transform.FindChild("Signal").GetComponent <UIWidget>(); _ui_signal_grid = _ui_signal.transform.FindChild("Grid").GetComponent <UIGrid>(); _ui_title = _ui_practise.transform.FindChild("Title/Label").GetComponent <UILabel>(); _ui_tip_pane = _ui_practise.transform.FindChild("Tip").gameObject; NGUITools.SetActive(_ui_tip_pane, false); UITweener[] tweens = _ui_tip_pane.GetComponents <UITweener>(); _tip_open_tweens[0] = tweens[0]; _tip_open_tweens[1] = tweens[1]; _tip_close_tweens[0] = tweens[2]; _tip_close_tweens[1] = tweens[3]; _ui_tip = _ui_practise.transform.FindChild("Tip/Text").GetComponent <UILabel>(); _ui_tip_arrow = _ui_practise.transform.FindChild("Tip/Arrow").gameObject; ui_tutorial = _ui_practise.transform.FindChild("Tutorial").gameObject; if (GameSystem.Instance.PractiseConfig.GetConfig(practise.ID).is_activity == 1 && LoginIDManager.GetFirstPractice(practise.ID) == 1) { GameObject prefab = ResourceLoadManager.Instance.LoadPrefab("Prefab/GUI/ButtonBack") as GameObject; Transform buttonParent = _ui_practise.transform.FindChild("ButtonBack"); _ui_back_button = CommonFunction.InstantiateObject(prefab, buttonParent); UIEventListener.Get(_ui_back_button).onClick = OnBack; } HideTipArrow(); _ui_title.text = practise.title; } }