示例#1
0
        static StackObject *get_thresholdGamma_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            Max820.Bloom instance_of_this_method = (Max820.Bloom) typeof(Max820.Bloom).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.thresholdGamma;

            __ret->ObjectType       = ObjectTypes.Float;
            *(float *)&__ret->Value = result_of_this_method;
            return(__ret + 1);
        }
示例#2
0
        static StackObject *set_thresholdLinear_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @value = *(float *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            Max820.Bloom instance_of_this_method = (Max820.Bloom) typeof(Max820.Bloom).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.thresholdLinear = value;

            return(__ret);
        }
示例#3
0
        static StackObject *set_antiFlicker_7(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            Max820.Bloom instance_of_this_method = (Max820.Bloom) typeof(Max820.Bloom).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.antiFlicker = value;

            return(__ret);
        }
示例#4
0
        private IEnumerator CreateBuddyModel(UITexture LobbyTexture, string modelName, bool isPlayLight, bool isplayEntry)
        {
            isInitLobby = true;
            if (string.IsNullOrEmpty(modelName))
            {
                isInitLobby = false;
                yield break;
            }
            if (modelName == ModelName)
            {
                if (Lobby != null)
                {
                    if (!Lobby.mDMono.gameObject.activeSelf)
                    {
                        Lobby.mDMono.gameObject.CustomSetActive(true);
                    }
                    Lobby.SetCharMoveState(MoveController.CombatantMoveState.kIdle);
                    yield return(null);

                    LobbyTexture.enabled = true;
                }
                isInitLobby = false;
                if (!isPlayLight)
                {
                    bloom.thresholdGamma = 1.0f;
                }
                yield return(new WaitForSeconds(0.3f));

                if (isplayEntry)
                {
                    Lobby.SetCharMoveState(MoveController.CombatantMoveState.kEntry, true);
                }
                yield break;
            }
            LobbyTexture.gameObject.CustomSetActive(false);
            ModelName    = modelName;
            isModelReady = false;
            UI3DLobby.PreloadWithCallback(modelName, delegate { isModelReady = true; });
            if (Lobby == null && Loader == null)
            {
                Loader = new GM.AssetLoader <GameObject>("UI3DLobby", controller.gameObject);
                yield return(Loader);

                if (Loader.Success)
                {
                    Loader.Instance.transform.SetParent(LobbyTexture.transform);
                    Lobby = Loader.Instance.GetMonoILRComponent <UI3DLobby>();
                    Lobby.ConnectorTexture  = LobbyTexture;
                    Lobby.CharacterPoolSize = CharacterPoolSize;
                    Camera Camera = Lobby.mDMono.transform.Find("UI3DCamera").GetComponent <Camera>();
                    Camera.orthographicSize = 2.0f;
                }
            }
            LobbyTexture.gameObject.CustomSetActive(true);
            while (!isModelReady)
            {
                yield return(null);
            }

            if (Lobby != null)
            {
                if (!Lobby.mDMono.gameObject.activeSelf)
                {
                    Lobby.mDMono.gameObject.CustomSetActive(true);
                }
                Lobby.VariantName = modelName;
                Lobby.SetCharMoveState(MoveController.CombatantMoveState.kIdle);
                yield return(null);

                LobbyTexture.enabled = true;
            }
            RenderSettings rs = controller.transform.GetComponentInChildren <RenderSettings>();

            if (rs != null)
            {
                EB.Debug.Log("rendersetting set : {0}", rs.name);
                RenderSettingsManager.Instance.SetActiveRenderSettings(rs.name, rs);
            }
            else
            {
                EB.Debug.LogWarning("rendersetting is null");
            }
            isInitLobby = false;
            Lobby.SetBloomUITexture(LobbyTexture);
            bloom = Lobby.BloomCamera.GetComponent <Max820.Bloom>();
            while (isPlayLight && bloom.thresholdGamma > 0.15f)
            {
                Lobby.BloomCamera.gameObject.CustomSetActive(true);
                bloom.thresholdGamma = Mathf.Lerp(bloom.thresholdGamma, 0.1f, 0.1f);
                yield return(new WaitForEndOfFrame());
            }
            if (!isPlayLight)
            {
                bloom.thresholdGamma = 1.0f;
            }
            yield return(new WaitForSeconds(0.3f));

            if (isplayEntry)
            {
                Lobby.SetCharMoveState(MoveController.CombatantMoveState.kEntry, true);
            }
        }