Changeset 301 for trunk/UCore.pas


Ignore:
Timestamp:
Jul 10, 2019, 11:35:10 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Corrected dimensions in About dialog.
  • Removed: Old Player and Players forms replaced by general item list.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r299 r301  
    77uses
    88  Classes, SysUtils, XMLConf, FileUtil, ActnList, Controls, Dialogs, Forms,
    9   UGame, UApplicationInfo, UPersistentForm, UScaleDPI, UCoolTranslator,
     9  UGame, UApplicationInfo, UPersistentForm, UScaleDPI, UCoolTranslator, DOM,
    1010  URegistry, ULastOpenedList, UTheme, Registry, Menus, UFormClient, UPlayer,
    1111  UGameServer, UGameClient, fgl, UServerList, UGameSystem, Graphics;
     
    326326  FormAbout := TFormAbout.Create(Self);
    327327  try
     328    FormAbout.ApplicationInfo := ApplicationInfo;
    328329    FormAbout.ShowModal;
    329330  finally
     
    737738    GameSettings.Players[1].Name := SPlayer + ' 2';
    738739
     740    // GameSystemName needs to be loaded before game systems config itself.
     741    // Players reference Nations from game system.
     742    GameSettings.GameSystemName := string(XMLConfig1.GetValue(DOMString('Game/GameSystemName'), DOMString('HexWars')));
     743    GameSettings.GameSystem := GameSystems.SearchByName(GameSettings.GameSystemName);
     744
    739745    GameSettings.LoadConfig(XMLConfig1, 'Game');
    740     GameSettings.GameSystem := GameSystems.SearchByName(GameSettings.GameSystemName);
    741746    if not Assigned(GameSettings.GameSystem) then
    742747      GameSettings.GameSystem := GameSystems.First;
Note: See TracChangeset for help on using the changeset viewer.