private void AttachUIButtonEffect() { //IL_0036: Unknown result type (might be due to invalid IL or missing references) UIButton component = this.GetComponent<UIButton>(); if (component != null && this.GetComponent<UINoAuto>() == null && component.GetComponent<UIButtonEffect>() == null) { UIButtonEffect uIButtonEffect = component.get_gameObject().AddComponent<UIButtonEffect>(); uIButtonEffect.isSimple = true; } }
public override void OnPointerClick(PointerEventData eventData) { if (onClick != null) { onClick(gameObject); } UIButtonEffect ube = gameObject.GetComponent <UIButtonEffect>(); if (ube != null) { ube.PlayTheAudioClip(); } }
public override void OnPointerUp(PointerEventData eventData) { if (onUp != null) { onUp(gameObject); } UIButtonEffect ube = gameObject.GetComponent <UIButtonEffect>(); if (ube != null) { ube.PlayScaleLesson(); ube.PlayPositionMoveBack(); } }
public override void OnPointerDown(PointerEventData eventData) { if (onDown != null) { onDown(gameObject); } UIButtonEffect ube = gameObject.GetComponent <UIButtonEffect>(); if (ube != null) { ube.PlayScaleEnlarge(); ube.PlayPositionMove(); } }
void Init() { if (!m_Init) { if (spr == null) { UISprite[] sprs = GetComponentsInChildren <UISprite>(true); if (null != sprs && sprs.Length > 0) { spr = sprs[0]; } } if (lable == null) { UILabel[] lbls = GetComponentsInChildren <UILabel>(true); if (null != lbls && lbls.Length > 0) { lable = lbls[0]; } } if (texHandler == null) { UISpecularHandler[] handlers = GetComponentsInChildren <UISpecularHandler>(true); if (null != handlers && handlers.Length > 0) { texHandler = handlers[0]; } } if (boxCollider == null) { boxCollider = GetComponent <BoxCollider>(); } if (effect == null) { effect = GetComponent <UIButtonEffect>(); } if (lable != null) { lable.color = new Color(lable.color.r, lable.color.g, lable.color.b, lbNormal); } if (texHandler != null) { texHandler.Intensity = normalItensity; } m_Init = true; } }
protected override void Awake() { //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Unknown result type (might be due to invalid IL or missing references) base.Awake(); InitAnim(); if (changeButton != null) { UIButtonEffect uIButtonEffect = changeButton.get_gameObject().AddComponent <UIButtonEffect>(); uIButtonEffect.isSimple = true; } for (int i = 0; i < this.weaponIcons.Length; i++) { WeaponIcons weaponIcons = this.weaponIcons[i]; if (weaponIcons.button != null) { UIButtonEffect uIButtonEffect2 = weaponIcons.button.get_gameObject().AddComponent <UIButtonEffect>(); uIButtonEffect2.isSimple = true; } } bool flag = TutorialStep.IsTheTutorialOver(TUTORIAL_STEP.USER_CREATE_02); int j = 0; for (int num = oldUI.Length; j < num; j++) { oldUI[j].SetActive(!flag); } int k = 0; for (int num2 = newUI.Length; k < num2; k++) { newUI[k].SetActive(flag); } if (flag) { InitRally(); } restrictPopMenu = false; InitWepIcons(); }
private void Awake() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Expected O, but got Unknown //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_00b8: Unknown result type (might be due to invalid IL or missing references) maxEffect.Init(this); silenceBase.SetActive(false); if (skillIconOn != null) { effectTransform = skillIconOn.get_gameObject().get_transform(); skillIconOnPos = effectTransform.get_localPosition(); } else { effectTransform = this.get_gameObject().get_transform(); } if (coolTimeGuage != null) { UIWidget component = coolTimeGuage.get_gameObject().GetComponent <UIWidget>(); btnSize = (float)component.height; } if (skillButton != null) { btnEnable = skillButton.isEnabled; } UIButtonEffect uIButtonEffect = this.get_gameObject().AddComponent <UIButtonEffect>(); uIButtonEffect.isSimple = true; }
protected override void Awake() { //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Expected O, but got Unknown //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Expected O, but got Unknown //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_0106: Unknown result type (might be due to invalid IL or missing references) //IL_0114: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_015d: Unknown result type (might be due to invalid IL or missing references) //IL_016d: Expected O, but got Unknown //IL_01a4: Unknown result type (might be due to invalid IL or missing references) //IL_01b9: Unknown result type (might be due to invalid IL or missing references) //IL_01be: Expected O, but got Unknown //IL_01cf: Unknown result type (might be due to invalid IL or missing references) //IL_01d4: Expected O, but got Unknown //IL_01ee: Unknown result type (might be due to invalid IL or missing references) //IL_01f3: Expected O, but got Unknown //IL_020f: Unknown result type (might be due to invalid IL or missing references) //IL_021f: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Unknown result type (might be due to invalid IL or missing references) //IL_0241: Unknown result type (might be due to invalid IL or missing references) //IL_0255: Unknown result type (might be due to invalid IL or missing references) //IL_025a: Expected O, but got Unknown //IL_025f: Unknown result type (might be due to invalid IL or missing references) //IL_0264: Expected O, but got Unknown base.Awake(); uiRoot = this.GetComponent <UIRoot>(); UIVirtualScreen.InitUIRoot(uiRoot); uiCamera = uiRoot.GetComponentInChildren <Camera>(); cameras = (Camera[])new Camera[1] { uiCamera }; nguiCamera = uiCamera.GetComponent <UICamera>(); uiRootPanel = uiRoot.GetComponent <UIPanel>(); uiRootTransform = uiRoot.get_transform(); initUseMouse = nguiCamera.useMouse; initUseTouch = nguiCamera.useTouch; system = CreatePrefabUI(Resources.Load("UI/SystemUI"), null, null, true, base._transform, 0, null); system.CreateCtrlsArray(typeof(SYSTEM)); Transform ctrl = system.GetCtrl(SYSTEM.FADER); faderPanel = ctrl.get_parent().GetComponent <UIPanel>(); faderPanel.depth = 4000; Vector3 position = ctrl.get_position(); position.z = -1f; ctrl.set_position(position); Transform ctrl2 = system.GetCtrl(SYSTEM.BLOCKER); ctrl2.get_gameObject().SetActive(false); Transform ctrl3 = system.GetCtrl(SYSTEM.DIALOG_BLOCKER); dialogBlockerAlpha = ctrl3.GetComponent <UIRect>().alpha; dialogBlockerTween = TweenAlpha.Begin(ctrl3.get_gameObject(), 0.2f, dialogBlockerAlpha); dialogBlockerTween.value = 0f; dialogBlockerTween.from = 0f; dialogBlockerTween.set_enabled(false); ctrl3.get_gameObject().SetActive(false); string text = "InternalUI/UI_Common/LoadingUI"; SetLoadingUI(Resources.Load(text)); internalUI = true; GameObject val = new GameObject("ButtonEffectTop"); UIPanel uIPanel = val.AddComponent <UIPanel>(); uIPanel.depth = 10000; buttonEffectTop = val.get_transform(); buttonEffectTop.SetParent(uiRootTransform); buttonEffectTop.set_localPosition(Vector3.get_zero()); buttonEffectTop.set_localRotation(Quaternion.get_identity()); buttonEffectTop.set_localScale(Vector3.get_one()); val.set_layer(uiRoot.get_gameObject().get_layer()); GameObject val2 = new GameObject("AtlasTop"); atlasTop = val2.get_transform(); atlasTop.SetParent(buttonEffectTop); val2.SetActive(false); UIButtonEffect.CacheShaderPropertyId(); enableShadow = false; }