MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / LoadFromINIFile

Method LoadFromINIFile

src/Ext/Side/Body.cpp:15–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13};
14
15void SideExt::ExtData::LoadFromINIFile(CCINIClass* pINI)
16{
17 auto pThis = this->OwnerObject();
18 const char* pSection = pThis->ID;
19
20 if (!pINI->GetSection(pSection))
21 return;
22
23 INI_EX exINI(pINI);
24 this->Sidebar_GDIPositions.Read(exINI, pSection, "Sidebar.GDIPositions");
25 this->IngameScore_WinTheme = pINI->ReadTheme(pSection, "IngameScore.WinTheme", this->IngameScore_WinTheme);
26 this->IngameScore_LoseTheme = pINI->ReadTheme(pSection, "IngameScore.LoseTheme", this->IngameScore_LoseTheme);
27 this->Sidebar_HarvesterCounter_Offset.Read(exINI, pSection, "Sidebar.HarvesterCounter.Offset");
28 this->Sidebar_HarvesterCounter_Yellow.Read(exINI, pSection, "Sidebar.HarvesterCounter.ColorYellow");
29 this->Sidebar_HarvesterCounter_Red.Read(exINI, pSection, "Sidebar.HarvesterCounter.ColorRed");
30 this->Sidebar_WeedsCounter_Offset.Read(exINI, pSection, "Sidebar.WeedsCounter.Offset");
31 this->Sidebar_WeedsCounter_Color.Read(exINI, pSection, "Sidebar.WeedsCounter.Color");
32 this->Sidebar_ProducingProgress_Offset.Read(exINI, pSection, "Sidebar.ProducingProgress.Offset");
33 this->Sidebar_PowerDelta_Offset.Read(exINI, pSection, "Sidebar.PowerDelta.Offset");
34 this->Sidebar_PowerDelta_Green.Read(exINI, pSection, "Sidebar.PowerDelta.ColorGreen");
35 this->Sidebar_PowerDelta_Yellow.Read(exINI, pSection, "Sidebar.PowerDelta.ColorYellow");
36 this->Sidebar_PowerDelta_Red.Read(exINI, pSection, "Sidebar.PowerDelta.ColorRed");
37 this->Sidebar_PowerDelta_Grey.Read(exINI, pSection, "Sidebar.PowerDelta.ColorGrey");
38 this->Sidebar_PowerDelta_Align.Read(exINI, pSection, "Sidebar.PowerDelta.Align");
39 this->ToolTip_Background_Color.Read(exINI, pSection, "ToolTip.Background.Color");
40 this->ToolTip_Background_Opacity.Read(exINI, pSection, "ToolTip.Background.Opacity");
41 this->ToolTip_Background_BlurSize.Read(exINI, pSection, "ToolTip.Background.BlurSize");
42 this->BriefingTheme = pINI->ReadTheme(pSection, "BriefingTheme", this->BriefingTheme);
43}
44
45// =============================
46// load / save

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected