少年修仙传客户端代码仓库
Hale Cai
2018-08-10 018b0b033fb26de0799e323fc6cd42db04602eff
Fight/Stage/MapEditor/NewGuideWin.cs
@@ -49,8 +49,17 @@
            holdImage.cell = _model.size;
            rtSelectFrame.sizeDelta = _model.size + new Vector2(15, 15);
            if (string.IsNullOrEmpty(_model.content))
            {
                rtContent.gameObject.SetActive(false);
            }
            else
            {
                rtContent.gameObject.SetActive(true);
            }
            txtContent.text = _model.content;
            m_PressClose = _model.pressedClose;
            rtArrow.localScale = Vector3.one * _model.arrowScale;
            container.gameObject.SetActive(_model.showMask);
            if (_model.onClose != null)
@@ -115,25 +124,25 @@
                {
                    _arrowPosition = rtSelectFrame.anchoredPosition + new Vector2(0, rtSelectFrame.sizeDelta.y * .5f + 20f);
                    _contentPosition = _arrowPosition + new Vector2(0, rtArrow.sizeDelta.y * .5f + rtContent.sizeDelta.y * .5f + 5);
                    _rotation = Vector3.zero;
                    _rotation = new Vector3(0, 0, 90);
                }
                else if (m_Direction == 1)// 下
                {
                    _arrowPosition = rtSelectFrame.anchoredPosition + new Vector2(0, -rtSelectFrame.sizeDelta.y * .5f - 20f);
                    _contentPosition = _arrowPosition + new Vector2(0, -rtArrow.sizeDelta.y * .5f - rtContent.sizeDelta.y * .5f - 5);
                    _rotation = new Vector3(0, 0, 180);
                    _rotation = new Vector3(0, 0, 270);
                }
                else if (m_Direction == 2)// 左
                {
                    _arrowPosition = rtSelectFrame.anchoredPosition + new Vector2(-rtSelectFrame.sizeDelta.x * .5f - 20f, 0);
                    _contentPosition = _arrowPosition + new Vector2(-rtArrow.sizeDelta.x * .5f - rtContent.sizeDelta.x * .5f - 5, 0);
                    _rotation = new Vector3(0, 0, 90);
                    _rotation = new Vector3(0, 0, 180);
                }
                else if (m_Direction == 3)// 右
                {
                    _arrowPosition = rtSelectFrame.anchoredPosition + new Vector2(rtSelectFrame.sizeDelta.x * .5f + 20f, 0);
                    _contentPosition = _arrowPosition + new Vector2(rtArrow.sizeDelta.x * .5f + rtContent.sizeDelta.x * .5f + 5, 0);
                    _rotation = new Vector3(0, 0, 270);
                    _rotation = Vector3.zero;
                }
                rtArrow.anchoredPosition = _arrowPosition;