public override void Refresh() { if (Source == null || skipRefresh) { skipRefresh = false; return; } int total = Rows * Cols; DefaultPages = Source.Count() / total; if (DefaultPages <= Page) { Page = DefaultPages - 1; } int skip = Page * total; int p = 0; foreach (DataType i in Source) { if (skip > 0) { skip--; continue; } if (p >= total) { break; } Contents[p] = i; Menu_Base menu_Base = ITEM[p, 0]; menu_Base.Show(); IGMDataItem.Text text = (IGMDataItem.Text)menu_Base; text.Data = new FF8String(i.ToString()); BLANKS[p] = false; p++; } for (; p < total; p++) { Contents[p] = default; BLANKS[p] = true; ITEM[p, 0].Hide(); } base.Refresh(); }
public virtual void ITEMShow(Menu_Base i, int pos = 0) => i.Show();