Exemple #1
0
void
Project::LoadBinary21(LuaInputStream& lis)
{
	lis.Read(); // Skip project type.
	int panel_cnt = lis.ReadInteger();
	if (panel_cnt != GetPageCount())
	{
		THROW(TXT("Could not read from file."));
	}
	for (int i = 0; i < panel_cnt; i++)
	{
		Panel *panel = (Panel *)GetPage(i);
		panel->GetGraphCtrl()->Clear();
		panel->LoadBinary21(lis);
	}
}