added initialize function to pages.
This commit is contained in:
parent
69d8e59e8b
commit
449ac58c6f
@ -76,6 +76,7 @@ namespace RecrownedAthenaeum.UI.Book
|
||||
{
|
||||
foreach (Page page in pages)
|
||||
{
|
||||
page.Initialize();
|
||||
this.pages.Add(page.Name, page);
|
||||
}
|
||||
}
|
||||
|
@ -39,5 +39,13 @@ namespace RecrownedAthenaeum.UI.Book
|
||||
bounds.Height = height;
|
||||
requiresSizeUpdate = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Called only once after a page is added to a <see cref="Book"/>. Generally used to instantiate the modules of the page.
|
||||
/// </summary>
|
||||
protected internal virtual void Initialize()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user