public static void OpenWindow_Circle(GameObject UIObj, int nRadius, string strText, string TextLocation, int nMotionType = 0, bool bIsBoxEnable = false, bool bIsMaskEnable = false, bool bIsForever = false, OnShowGuide deleOnShowGuide = null, OnShowGuide afterShowGuide = null, bool isHasGuideFrame = false, bool bIsFocusAnim = true, Action onClickBlackCallback = null) { if (PlayerPreferenceData.NewPlayerGuideClose) { return; } if (null == UIObj) { LogModule.DebugLog(UIObj + "UIobj is null!!!"); return; } Debug.LogWarning("FTE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); GuideSpriteType sprType = GuideSpriteType.NoFrame; if (isHasGuideFrame) { sprType = GuideSpriteType.Circle; } //TextLocation = "center"; m_CurPlayerGuideInfo.Init(UIObj, nRadius, nRadius, strText, TextLocation, nMotionType, bIsBoxEnable, bIsMaskEnable, bIsForever, bIsFocusAnim, sprType, deleOnShowGuide, afterShowGuide, 0f, 0f, onClickBlackCallback); //PlayerGuideInfo curInfo = new PlayerGuideInfo(UIObj, nRadius, nRadius, strText, TextLocation, nMotionType, bIsBoxEnable, bIsMaskEnable, bIsForever, GuideSpriteType.Circle); IsOpenFlag = true; UIManager.ShowUI(UIInfo.NewPlayerGuidRoot, OnOpenWindow); }
public PlayerGuideInfo(GameObject UIObj, int nWidth, int nHeight, string strText, string TextLocation, int nMotionType, bool bIsBoxEnable, bool bIsMaskEnable, bool bIsForever, GuideSpriteType eGuideSpriteType, OnShowGuide deleOnShowGuide, float offsetX = 0, float offsetY = 0) { _UIObj = UIObj; _nWidth = nWidth; _nHeight = nHeight; _strText = strText; _TextLocation = TextLocation; _nMotionType = nMotionType; _bIsBoxEnable = bIsBoxEnable; _bIsMaskEnable = bIsMaskEnable; _bIsForever = bIsForever; _GuideSpriteType = eGuideSpriteType; _deleOnShowGuide = deleOnShowGuide; _offsetX = offsetX; _offsetY = offsetY; }
public void Init(GameObject UIObj, int nWidth, int nHeight, string strText, string TextLocation, int nMotionType, bool bIsBoxEnable, bool bIsMaskEnable, bool bIsForever, bool bIsFocusAnim, GuideSpriteType eGuideSpriteType, OnShowGuide deleOnShowGuide, OnShowGuide afterShowGuide, float offsetX = 0, float offsetY = 0, Action onClickBlackCallback = null) { _UIObj = UIObj; _nWidth = nWidth; _nHeight = nHeight; _strText = strText; _TextLocation = TextLocation; _nMotionType = nMotionType; _bIsBoxEnable = bIsBoxEnable; _bIsMaskEnable = bIsMaskEnable; _bIsForever = bIsForever; _bIsFocusAnim = bIsFocusAnim; _GuideSpriteType = eGuideSpriteType; _deleOnShowGuide = deleOnShowGuide; _afterShowGuide = afterShowGuide; _offsetX = offsetX; _offsetY = offsetY; _onClickBlackCallback = onClickBlackCallback; }