예제 #1
0
    public void RePosition()
    {
        BookmarkDlg bookmarkDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BOOKMARK_DLG) as BookmarkDlg;

        if (bookmarkDlg != null)
        {
            float num;
            if (bookmarkDlg.IsHide())
            {
                num = 0f;
            }
            else
            {
                num = bookmarkDlg.GetSizeX();
            }
            base.SetLocation(GUICamera.width - num - base.GetSizeX(), 0f);
        }
    }
예제 #2
0
    private void RePosition()
    {
        BookmarkDlg bookmarkDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BOOKMARK_DLG) as BookmarkDlg;

        if (bookmarkDlg != null)
        {
            if (bookmarkDlg.IsHide())
            {
                this.bookmarkUIWidth = 0f;
            }
            else
            {
                this.bookmarkUIWidth = bookmarkDlg.GetSizeX();
            }
            base.SetLocation(GUICamera.width - this.bookmarkUIWidth - base.GetSizeX(), GUICamera.height - base.GetSizeY());
        }
        else
        {
            base.SetLocation(GUICamera.width - base.GetSizeX(), GUICamera.height - base.GetSizeY());
        }
    }