コード例 #1
0
    private Transform Attach(UIBehaviour target_ui, Transform base_ui)
    {
        //IL_001d: Unknown result type (might be due to invalid IL or missing references)
        //IL_0022: Expected O, but got Unknown
        //IL_0048: Unknown result type (might be due to invalid IL or missing references)
        //IL_004d: Expected O, but got Unknown
        UIVirtualScreen component = target_ui.collectUI.GetComponent <UIVirtualScreen>();

        if (component == null)
        {
            return(null);
        }
        Transform val        = Clone(base_ui, component.get_transform());
        UIWidget  component2 = val.GetComponent <UIWidget>();

        if (component2 != null)
        {
            if (component2.leftAnchor != null)
            {
                ((UIRect)component2).SetAnchor(component.get_gameObject());
            }
            else
            {
                ((UIRect)component2).SetAnchor(null);
            }
        }
        return(val);
    }
コード例 #2
0
 private void OnScreenRotate(bool is_portrait)
 {
     UIVirtualScreen.InitUIRoot(uiRoot);
     uiList.ForEach(delegate(UIBehaviour o)
     {
         //IL_0001: Unknown result type (might be due to invalid IL or missing references)
         UIVirtualScreen componentInChildren = o.get_gameObject().GetComponentInChildren <UIVirtualScreen>();
         if (componentInChildren != null)
         {
             componentInChildren.InitWidget();
         }
     });
 }
コード例 #3
0
    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;
    }