Beispiel #1
0
        private ExampleProject.UI.Loader.Loading.LoadingScreen INTERNAL_FlowFunctionLoader(bool hide, bool hideWait, System.Action <FlowFunctionLoaderRoutes> onFunctionEnds, System.Action <ExampleProject.UI.Loader.Loading.LoadingScreen> onParametersPassCall = null)
        {
            ExampleProject.UI.Loader.Loading.LoadingScreen newWindow = default(ExampleProject.UI.Loader.Loading.LoadingScreen);
            var item = UnityEngine.UI.Windows.Plugins.Flow.FlowSystem.GetAttachItem(43, 39);

            if (hide == true && hideWait == true)
            {
                this.Hide(() => {
                    if (onFunctionEnds != null)
                    {
                        newWindow = WindowSystem.Show <ExampleProject.UI.Loader.Loading.LoadingScreen>(
                            (w) => WindowSystem.RegisterFunctionCallback(w, (index) => onFunctionEnds(new FlowFunctionLoaderRoutes(w, index))),
                            item,
                            onParametersPassCall
                            );
                    }
                    else
                    {
                        newWindow = WindowSystem.Show <ExampleProject.UI.Loader.Loading.LoadingScreen>(
                            null,
                            item,
                            onParametersPassCall
                            );
                    }

                    WindowSystemFlow.OnDoTransition(item.index, 43, 39, hide);
                }, item);
            }
            else
            {
                if (onFunctionEnds != null)
                {
                    newWindow = WindowSystem.Show <ExampleProject.UI.Loader.Loading.LoadingScreen>(
                        (w) => WindowSystem.RegisterFunctionCallback(w, (index) => onFunctionEnds(new FlowFunctionLoaderRoutes(w, index))),
                        item,
                        onParametersPassCall
                        );
                }
                else
                {
                    newWindow = WindowSystem.Show <ExampleProject.UI.Loader.Loading.LoadingScreen>(
                        null,
                        item,
                        onParametersPassCall
                        );
                }

                WindowSystemFlow.OnDoTransition(item.index, 43, 39, hide);

                if (hide == true)
                {
                    this.Hide(item);
                }
            }

            return(newWindow);
        }
Beispiel #2
0
        private ExampleProject.UI.Loader.Loading.LoadingScreen INTERNAL_FlowFunctionLoader(bool hide, UnityEngine.Events.UnityAction <FlowFunctionLoaderRoutes> onFunctionEnds, System.Action <ExampleProject.UI.Loader.Loading.LoadingScreen> onParametersPassCall = null)
        {
            var item      = UnityEngine.UI.Windows.Plugins.Flow.FlowSystem.GetAttachItem(43, 39);
            var newWindow = WindowSystem.Show <ExampleProject.UI.Loader.Loading.LoadingScreen>(
                (w) => WindowSystem.RegisterFunctionCallback(w, (index) => onFunctionEnds(new FlowFunctionLoaderRoutes(this, index))),
                item,
                onParametersPassCall
                );

            WindowSystemFlow.OnDoTransition(item.index, 43, 39, hide);

            if (hide == true)
            {
                this.Hide(item);
            }

            return(newWindow);
        }
        private void INTERNAL_FlowABTest(
            bool hide,
            bool waitHide,
            System.Action <int> onCondition = null,
            System.Action onAnyOther        = null)
        {
            var window = UnityEngine.UI.Windows.Plugins.Flow.FlowSystem.GetWindow(44);

            if (window.IsABTest() == true)
            {
                AttachItem attachItem;
                var        wayId = window.abTests.Resolve(window, out attachItem);

                System.Action <AttachItem, bool, bool>[] ways = new System.Action <AttachItem, bool, bool>[] {
                    (item, h, wh) => WindowSystemFlow.DoFlow <ExampleProject.UI.Menu.MainMenu.MainMenuScreen>(this, item, h, wh, false, null), (item, h, wh) => WindowSystemFlow.DoFlow <ExampleProject.UI.Other.Error.ErrorScreen>(this, item, h, wh, false, null)
                };

                if (wayId == 0)
                {
                    if (onAnyOther != null)
                    {
                        onAnyOther.Invoke();
                    }
                }
                else
                {
                    if (onCondition != null)
                    {
                        onCondition.Invoke(wayId);
                    }
                }

                var way = ways[wayId];
                if (way != null)
                {
                    way.Invoke(attachItem, hide, waitHide);
                }
            }
        }
Beispiel #4
0
 private ExampleProject.UI.Gameplay.GameplayHUD.GameplayHUDScreen INTERNAL_FlowGameplayHUD(bool hide, System.Action <ExampleProject.UI.Gameplay.GameplayHUD.GameplayHUDScreen> onParametersPassCall = null, System.Action <ExampleProject.UI.Gameplay.GameplayHUD.GameplayHUDScreen> onInstance = null)
 {
     return(WindowSystemFlow.DoFlow <ExampleProject.UI.Gameplay.GameplayHUD.GameplayHUDScreen>(this, 25, 29, hide, onParametersPassCall, onInstance));
 }
Beispiel #5
0
 private ExampleProject.UI.Gameplay.EndGame.EndGameScreen INTERNAL_FlowEndGame(bool hide, bool hideWait, bool async, System.Action <ExampleProject.UI.Gameplay.EndGame.EndGameScreen> onParametersPassCall = null, System.Action <ExampleProject.UI.Gameplay.EndGame.EndGameScreen> onInstance = null)
 {
     return(WindowSystemFlow.DoFlow <ExampleProject.UI.Gameplay.EndGame.EndGameScreen>(this, 25, 28, hide, hideWait, onParametersPassCall, onInstance, async));
 }
 private ExampleProject.UI.Other.UserInfo.UserInfoScreen INTERNAL_FlowUserInfo(bool hide, System.Action <ExampleProject.UI.Other.UserInfo.UserInfoScreen> onParametersPassCall = null, System.Action <ExampleProject.UI.Other.UserInfo.UserInfoScreen> onInstance = null)
 {
     return(WindowSystemFlow.DoFlow <ExampleProject.UI.Other.UserInfo.UserInfoScreen>(this, 18, 45, hide, onParametersPassCall, onInstance));
 }
Beispiel #7
0
 private ExampleProject.UI.Menu.MainMenu.MainMenuScreen INTERNAL_FlowMainMenu(bool hide, System.Action <ExampleProject.UI.Menu.MainMenu.MainMenuScreen> onParametersPassCall = null, System.Action <ExampleProject.UI.Menu.MainMenu.MainMenuScreen> onInstance = null)
 {
     return(WindowSystemFlow.DoFlow <ExampleProject.UI.Menu.MainMenu.MainMenuScreen>(this, 40, 38, hide, onParametersPassCall, onInstance));
 }