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); } }
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()); } }