Пример #1
0
    public void ShowOverview()
    {
        HideStates();

        containerOverview.Show();

        ShowCamera();

        ShowLoaderSpinner();

        UpdateOverviewWorld();

        if (containerLoader.Has <GameObjectImageFill>())
        {
            GameObjectImageFill fill = containerLoader.Get <GameObjectImageFill>();
            fill.Reset();
        }

        // Update team display

        //LogUtil.Log("ShowOverview:");

        flowState = AppOverviewFlowState.GeneralTips;

        UIPanelDialogBackground.ShowDefault();

        UIUtil.SetLabelValue(labelOverviewType, AppContentStates.Current.display_name);

        AnimateInBottom(containerOverview);

        UIColors.UpdateColors();

        InvokeRepeating("ShowOverviewTip", 0, 15);
    }
    public void HideContent()
    {
        UIPanelDialogBackground.HideAll();

        ContentPause();

        AnimateOutBottom(containerContent, 0f, 0f);
    }
Пример #3
0
    public override void AnimateIn()
    {
        base.AnimateIn();

        UIPanelDialogBackground.ShowDefault();

        loadData();
    }
Пример #4
0
    // SHOW / HIDE

    public void HideStates()
    {
        UIPanelDialogBackground.HideAll();

        HideOverview();
        HideDisplayItem();
        HideResultItem();
        HideResults();
    }
    public void ShowContent()
    {
        UIPanelDialogBackground.ShowDefault();

        AnimateInBottom(containerContent);

        ContentPause();

        UIColors.UpdateColors();
    }
Пример #6
0
    public void Awake()
    {
        if (Instance != null && this != Instance)
        {
            //There is already a copy of this script running
            //Destroy(gameObject);
            return;
        }

        Instance = this;
    }
Пример #7
0
    public void HideStates()
    {
        UIPanelDialogBackground.HideAll();

        UIPanelDialogRPGHealth.HideAll();
        UIPanelDialogRPGEnergy.HideAll();

        HideOverview();
        HideTutorial();
        HideTips();
    }
Пример #8
0
    // RESULT ITEM

    public void ShowResultItem()
    {
        HideStates();

        UIPanelDialogBackground.ShowDefault();

        //LogUtil.Log("UIPanelModeTypeChoice:ShowResultItem:flowState:" + flowState);

        AnimateInBottom(containerChoiceResultItem);

        ContentPause();
    }
Пример #9
0
    public void ShowOverview()
    {
        HideStates();

        UIPanelDialogBackground.ShowDefault();

        //LogUtil.Log("UIPanelModeTypeChoice:ShowOverview:flowState:" + flowState);

        AnimateInBottom(containerChoiceOverview);

        ContentPause();

        UIColors.UpdateColors();
    }
Пример #10
0
    public void HideStates()
    {
        HideButtonPlay();

        UIUtil.SetLabelValue(labelOverviewTip, loadingLevelDisplay);

        UIPanelDialogBackground.HideAll();

        UIPanelDialogRPGHealth.HideAll();
        UIPanelDialogRPGEnergy.HideAll();

        HideOverview();
        HideTutorial();
        HideTips();
    }
Пример #11
0
    public void ShowOverview()
    {
        HideStates();

        flowState = AppOverviewFlowState.Mode;

        UIPanelDialogBackground.ShowDefault();

        UIUtil.SetLabelValue(labelOverviewType, AppContentStates.Current.display_name);

        AnimateInBottom(containerOverview);

        ContentPause();

        UIColors.UpdateColors();
    }
Пример #12
0
    IEnumerator ShowDisplayItemCo()
    {
        yield return(new WaitForEndOfFrame());

        UIPanelDialogBackground.ShowDefault();

        //LogUtil.Log("UIPanelModeTypeChoice:ShowDisplayItem:flowState:" + flowState);

        AnimateInBottom(containerChoiceDisplayItem);

        loadDataChoice();

        UIColors.UpdateColors();

        ContentPause();
    }
Пример #13
0
    public void ShowTips()
    {
        HideStates();

        flowState = AppOverviewFlowState.GeneralTips;

        UIPanelDialogBackground.ShowDefault();

        UIUtil.SetLabelValue(labelOverviewType, AppContentStates.Current.display_name);

        //LogUtil.Log("UIPanelModeTypeChoice:ShowOverview:flowState:" + flowState);

        AnimateInBottom(containerOverviewGameplayTips);

        UIColors.UpdateColors();
    }
Пример #14
0
    public void ShowOverview()
    {
        HideStates();

        // Update team display
        //LogUtil.Log("ShowOverview:");

        flowState = AppOverviewFlowState.Mode;

        UIPanelDialogBackground.ShowDefault();

        UpdateOverviewWorld();

        UIUtil.SetLabelValue(labelOverviewType, AppContentStates.Current.display_name);

        AnimateInBottom(containerOverview);

        GameCustomController.BroadcastCustomSync();

        foreach (GameCustomPlayer customPlayer in gameObject.GetList <GameCustomPlayer>())
        {
            if (customPlayer.isActorTypeEnemy)
            {
                GameTeam team = GameTeams.Current;

                if (team != null)
                {
                    UIUtil.SetLabelValue(labelOverviewTeamEnemy, team.display_name);

                    GameCustomCharacterData customInfo = new GameCustomCharacterData();
                    customInfo.actorType         = GameCustomActorTypes.enemyType;
                    customInfo.presetColorCode   = team.data.GetColorPreset().code;
                    customInfo.presetTextureCode = team.data.GetTexturePreset().code;
                    customInfo.type     = GameCustomTypes.teamType;
                    customInfo.teamCode = team.code;

                    customPlayer.Load(customInfo);
                }
            }
        }

        ContentPause();

        UIColors.UpdateColors();
    }
Пример #15
0
    public void ShowOverview()
    {
        HideStates();

        containerOverview.Show();

        ShowCamera();

        // Update team display

        //LogUtil.Log("ShowOverview:");

        flowState = AppOverviewFlowState.GeneralTips;

        UIPanelDialogBackground.ShowDefault();

        UIUtil.SetLabelValue(labelOverviewType, AppContentStates.Current.display_name);

        AnimateInBottom(containerOverview);

        UIColors.UpdateColors();

        InvokeRepeating("ShowOverviewTip", 0, 15);
    }