| 14 | } |
| 15 | |
| 16 | void DigitalDisplayTypeClass::LoadFromINI(CCINIClass* pINI) |
| 17 | { |
| 18 | const char* section = this->Name; |
| 19 | |
| 20 | if (!pINI->GetSection(section)) |
| 21 | return; |
| 22 | |
| 23 | INI_EX exINI(pINI); |
| 24 | |
| 25 | this->Text_Color.Read(exINI, section, "Text.Color.%s"); |
| 26 | this->Text_Background.Read(exINI, section, "Text.Background"); |
| 27 | this->Offset.Read(exINI, section, "Offset"); |
| 28 | this->Offset_ShieldDelta.Read(exINI, section, "Offset.ShieldDelta"); |
| 29 | this->Align.Read(exINI, section, "Align"); |
| 30 | this->AnchorType.Read(exINI, section, "Anchor.%s"); |
| 31 | this->AnchorType_Building.Read(exINI, section, "Anchor.Building"); |
| 32 | this->Shape.Read(exINI, section, "Shape"); |
| 33 | this->Palette.LoadFromINI(pINI, section, "Palette"); |
| 34 | this->Shape_Spacing.Read(exINI, section, "Shape.Spacing"); |
| 35 | this->Percentage.Read(exINI, section, "Percentage"); |
| 36 | this->HideMaxValue.Read(exINI, section, "HideMaxValue"); |
| 37 | this->VisibleToHouses_Observer.Read(exINI, section, "VisibleToHouses.Observer"); |
| 38 | this->VisibleToHouses.Read(exINI, section, "VisibleToHouses"); |
| 39 | this->InfoType.Read(exINI, section, "InfoType"); |
| 40 | this->ValueScaleDivisor.Read(exINI, section, "ValueScaleDivisor"); |
| 41 | } |
| 42 | |
| 43 | void DigitalDisplayTypeClass::Draw(Point2D position, int length, int value, int maxValue, bool isBuilding, bool isInfantry, bool hasShield) |
| 44 | { |