Comment 4 for bug 1428597

Revision history for this message
Andre Novellino GouvĂȘa (andre-ng) wrote :

Changes in ui.cpp (CUserInterface::Load()):

void CUserInterface::Load()
{
 // Load graphics
 const int size = (int)Fillers.size();
 for (int i = 0; i < size; ++i) {
  Fillers[i].Load();
 }

 for (int i = 0; i <= FreeWorkersCount; ++i) {
  if (Resources[i].G) {
   Resources[i].G->Load();
   Resources[i].G->UseDisplayFormat();
  }
 }

 if (InfoPanel.G) {
  InfoPanel.G->Load();
  InfoPanel.G->UseDisplayFormat();
 }
 if (ButtonPanel.G) {
  ButtonPanel.G->Load();
  ButtonPanel.G->UseDisplayFormat();
 }
 if (PieMenu.G) {
  PieMenu.G->Load();
  PieMenu.G->UseDisplayFormat();
 }

 //Wyrmgus start
 if (Preference.IconFrameG) {
  Preference.IconFrameG->Load();
  Preference.IconFrameG->UseDisplayFormat();
 }
 if (Preference.PressedIconFrameG) {
  Preference.PressedIconFrameG->Load();
  Preference.PressedIconFrameG->UseDisplayFormat();
 }
 //Wyrmgus end

 // Resolve cursors
 Point.Load();
 Glass.Load();
 Cross.Load();
 YellowHair.Load();
 GreenHair.Load();
 RedHair.Load();
 Scroll.Load();

 ArrowE.Load();
 ArrowNE.Load();
 ArrowN.Load();
 ArrowNW.Load();
 ArrowW.Load();
 ArrowSW.Load();
 ArrowS.Load();
 ArrowSE.Load();
}