internal virtual void Draw(MaintainerWindow parentWindow) { if (records == null) { records = LoadLastRecords(); ApplySorting(); recordsTotalPages = (int)Math.Ceiling((double)filteredRecords.Length / RECORDS_PER_PAGE); PerformPostRefreshActions(); } window = parentWindow; using (layout.Horizontal()) { DrawLeftSection(); DrawRightSection(); } if (gotoRecord != null) { gotoRecord.Show(); gotoRecord = null; } }
internal virtual void Draw(MaintainerWindow parentWindow) { if (records == null) { LoadLastRecords(); if (records != null) { recordsTotalPages = (int)Math.Ceiling((double)records.Length / RECORDS_PER_PAGE); } else { Debug.Log("records null"); recordsTotalPages = 0; } } window = parentWindow; using (UIHelpers.Horizontal()) { DrawSettingsSection(); DrawSearchSection(); } if (gotoRecord != null) { gotoRecord.Show(); gotoRecord = null; } ProcessUserActions(); }
public override void Draw() { if (records == null) { records = LoadLastRecords(); rightColumnScrollPosition = GetState().scrollPosition; ApplySorting(); ApplyState(); recordsTotalPages = (int)Math.Ceiling((double)filteredRecords.Length / RecordsPerPage); PerformPostRefreshActions(); } base.Draw(); if (gotoRecord != null) { gotoRecord.Show(); gotoRecord = null; } }
public virtual void Draw() { if (records == null) { records = LoadLastRecords(); searchSectionScrollPosition = GetState().searchSectionScrollPosition; ApplySorting(); ApplyState(); recordsTotalPages = (int)Math.Ceiling((double)filteredRecords.Length / RecordsPerPage); PerformPostRefreshActions(); } using (new GUILayout.HorizontalScope()) { DrawLeftSection(); DrawRightSection(); } if (gotoRecord != null) { gotoRecord.Show(); gotoRecord = null; } }