Changeset 284 for trunk/UCore.pas


Ignore:
Timestamp:
Mar 10, 2019, 6:19:51 PM (6 years ago)
Author:
chronos
Message:
  • Modified: TNation and TNations classes now uses generic TItem and TItemList classes.
  • Added: Translation files for LCL.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r282 r284  
    129129uses
    130130  UFormMain, UFormNew, UFormSettings, UFormAbout, UClientAI, UFormKeyShortcuts,
    131   UFormHelp, UFormCharts, UFormUnitMoves, UFormPlayersStats, UClientGUI, UMapType;
     131  UFormHelp, UFormCharts, UFormUnitMoves, UFormPlayersStats, UClientGUI, UMapType,
     132  UNation;
    132133
    133134const
     
    521522    PreferedMapType := mtNone;
    522523    MaxPlayerCount := 3;
    523     with Nations.AddNew('Nation 1') do begin
     524    with TNation(Nations.AddItem('Nation 1')) do begin
    524525      Color := clBlue;
    525526    end;
    526     with Nations.AddNew('Nation 2') do begin
     527    with TNation(Nations.AddItem('Nation 2')) do begin
    527528      Color := clRed;
    528529    end;
    529     with Nations.AddNew('Nation 3') do begin
     530    with TNation(Nations.AddItem('Nation 3')) do begin
    530531      Color := clGreen;
    531532    end;
    532     with Nations.AddNew('Nation 4') do begin
     533    with TNation(Nations.AddItem('Nation 4')) do begin
    533534      Color := clOrange;
    534535    end;
    535     with Nations.AddNew('Nation 5') do begin
     536    with TNation(Nations.AddItem('Nation 5')) do begin
    536537      Color := clPurple;
    537538    end;
    538     with Nations.AddNew('Nation 6') do begin
     539    with TNation(Nations.AddItem('Nation 6')) do begin
    539540      Color := clMaroon;
    540541    end;
    541     with Nations.AddNew('Nation 7') do begin
     542    with TNation(Nations.AddItem('Nation 7')) do begin
    542543      Color := clAqua;
    543544    end;
    544     with Nations.AddNew('Nation 8') do begin
     545    with TNation(Nations.AddItem('Nation 8')) do begin
    545546      Color := clFuchsia;
    546547    end;
     
    555556    UnitsMoveImmediately := False;
    556557    MaxPlayerCount := 8;
    557     with Nations.AddNew('Nation 1') do begin
     558    with TNation(Nations.AddItem('Nation 1')) do begin
    558559      Color := clBlue;
    559560    end;
    560     with Nations.AddNew('Nation 2') do begin
     561    with TNation(Nations.AddItem('Nation 2')) do begin
    561562      Color := clRed;
    562563    end;
    563     with Nations.AddNew('Nation 3') do begin
     564    with TNation(Nations.AddItem('Nation 3')) do begin
    564565      Color := clGreen;
    565566    end;
    566     with Nations.AddNew('Nation 4') do begin
     567    with TNation(Nations.AddItem('Nation 4')) do begin
    567568      Color := clOrange;
    568569    end;
    569     with Nations.AddNew('Nation 5') do begin
     570    with TNation(Nations.AddItem('Nation 5')) do begin
    570571      Color := clPurple;
    571572    end;
    572     with Nations.AddNew('Nation 6') do begin
     573    with TNation(Nations.AddItem('Nation 6')) do begin
    573574      Color := clMaroon;
    574575    end;
    575     with Nations.AddNew('Nation 7') do begin
     576    with TNation(Nations.AddItem('Nation 7')) do begin
    576577      Color := clAqua;
    577578    end;
    578     with Nations.AddNew('Nation 8') do begin
     579    with TNation(Nations.AddItem('Nation 8')) do begin
    579580      Color := clFuchsia;
    580581    end;
     
    589590    UnitsMoveImmediately := True;
    590591    MaxPlayerCount := 3;
    591     with Nations.AddNew('Americans') do begin
     592    with TNation(Nations.AddItem('Americans')) do begin
    592593      Color := clFuchsia;
    593594    end;
     
    676677    UnitsMoveImmediately := True;
    677678    MaxPlayerCount := 3;
    678     with Nations.AddNew('Attreides') do begin
     679    with TNation(Nations.AddItem('Attreides')) do begin
    679680      Color := clBlue;
    680681    end;
    681     with Nations.AddNew('Harkonen') do begin
     682    with TNation(Nations.AddItem('Harkonen')) do begin
    682683      Color := clRed;
    683684    end;
    684     with Nations.AddNew('Ordos') do begin
     685    with TNation(Nations.AddItem('Ordos')) do begin
    685686      Color := clGreen;
    686687    end;
    687     with Nations.AddNew('Fremens') do begin
     688    with TNation(Nations.AddItem('Fremens')) do begin
    688689      Color := clBrown;
    689690    end;
    690     with Nations.AddNew('Sardaukers') do begin
     691    with TNation(Nations.AddItem('Sardaukers')) do begin
    691692      Color := clPurple;
    692693    end;
    693     with Nations.AddNew('Merceneries') do begin
     694    with TNation(Nations.AddItem('Merceneries')) do begin
    694695      Color := clOrange;
    695696    end;
     
    734735    UnitsMoveImmediately := True;
    735736    MaxPlayerCount := 2;
    736     with Nations.AddNew('Germany') do begin
     737    with TNation(Nations.AddItem('Germany')) do begin
    737738      Color := clBlue;
    738739    end;
    739     with Nations.AddNew('Russia') do begin
     740    with TNation(Nations.AddItem('Russia')) do begin
    740741      Color := clRed;
    741742    end;
    742     with Nations.AddNew('Alliance') do begin
     743    with TNation(Nations.AddItem('Alliance')) do begin
    743744      Color := clGreen;
    744745    end;
Note: See TracChangeset for help on using the changeset viewer.