Ejemplo n.º 1
0
    private void ChangeDisplayModeToFullScreen()
    {
        UIPanel uipanel    = GUIMain.GetUIPanel();
        Vector2 windowSize = uipanel.GetWindowSize();

        if (this.fullScreenHeaderPos == Vector3.zero)
        {
            this.fullScreenHeaderPos   = (this.listScreenHeaderPos = this.headerObj.transform.localPosition);
            this.fullScreenHeaderPos.y = windowSize.y;
        }
        if (this.fullScreenUiPos == Vector3.zero)
        {
            this.fullScreenUiPos   = (this.listScreenUiPos = this.scrollPanel.transform.localPosition);
            this.fullScreenUiPos.x = windowSize.x;
        }
        if (this.fullScreenListButtonPos == Vector3.zero)
        {
            this.fullScreenListButtonPos   = (this.listScreenListButtonPos = this.listButton.transform.localPosition);
            this.fullScreenListButtonPos.x = windowSize.x;
        }
        this.MoveTo(this.headerObj, this.fullScreenHeaderPos, this.uiAnimationTime, iTween.EaseType.linear, null);
        this.MoveTo(this.scrollPanel, this.fullScreenUiPos, this.uiAnimationTime, iTween.EaseType.linear, null);
        this.MoveTo(this.listButton, this.fullScreenListButtonPos, this.uiAnimationTime, iTween.EaseType.linear, null);
        this.displayModeButtonLabel.text = StringMaster.GetString("SystemButtonReturn");
        this.displayMode = CMD_DigiGarden.DISPLAY_MODE.FullScreenMode;
    }
Ejemplo n.º 2
0
 private void ChangeDisplayModeToList()
 {
     this.MoveTo(this.headerObj, this.listScreenHeaderPos, this.uiAnimationTime, iTween.EaseType.linear, null);
     this.MoveTo(this.scrollPanel, this.listScreenUiPos, this.uiAnimationTime, iTween.EaseType.linear, null);
     this.MoveTo(this.listButton, this.listScreenListButtonPos, this.uiAnimationTime, iTween.EaseType.linear, null);
     this.displayModeButtonLabel.text = StringMaster.GetString("CharaDetailsFullScreen");
     this.displayMode = CMD_DigiGarden.DISPLAY_MODE.ListMode;
 }
Ejemplo n.º 3
0
 private void ChangeDisplayMode()
 {
     CMD_DigiGarden.DISPLAY_MODE display_MODE = this.displayMode;
     if (display_MODE != CMD_DigiGarden.DISPLAY_MODE.ListMode)
     {
         if (display_MODE != CMD_DigiGarden.DISPLAY_MODE.FullScreenMode)
         {
             this.ChangeDisplayModeToFullScreen();
         }
         else
         {
             this.ChangeDisplayModeToList();
         }
     }
     else
     {
         this.ChangeDisplayModeToFullScreen();
     }
 }