public override string ToString() { string info = $" Type {ScreenType.ToString()}, Diagonal {Diagonal}, Pixel Density {this.PPI}"; if (this.IsRetinaScreen()) { info += " it is Retina display"; } return(info); }
//스크린 모드를 설정하고 화면을 초기화한다. private void SetScreenMode(ScreenTypes screenType) { //상태 저장 this.screenType = screenType; System.Diagnostics.Debug.WriteLine(screenType.ToString()); switch (screenType) { case ScreenTypes.PowerPoint: SetPPTSlideShowButtonVisibility(false); SetPPTButtonVisibilitiy(true); break; case ScreenTypes.PowerPointSlideShow2007: HideAllChildren(); SetPPTButtonVisibilitiy(false); SetPPTSlideShowButtonVisibility(true); break; case ScreenTypes.PowerPointSlideShow2010: HideAllChildren(); SetPPTButtonVisibilitiy(false); SetPPTSlideShowButtonVisibility(true); //UIUtils.SetVisibility(btnPptBpen, false); break; case ScreenTypes.PowerPointSlideShow2013: HideAllChildren(); SetPPTButtonVisibilitiy(false); SetPPTSlideShowButtonVisibility(true); break; default: SetPPTButtonVisibilitiy(false); SetPPTSlideShowButtonVisibility(false); break; } }
public virtual void OnScreenEnter() { Debug.Log(screenType.ToString("F") + "::OnScreenEnter()"); gameObject.transform.DOPunchScale(Vector3.one * 0.1f, 0.4f); }