Changeset 33 for trunk/UGame.pas


Ignore:
Timestamp:
Mar 5, 2014, 12:01:04 AM (11 years ago)
Author:
chronos
Message:
  • Added: Main application settings form.
  • Added: CoolTranslator component for interface localization.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGame.pas

    r32 r33  
    186186  end;
    187187
     188var
     189  PlayerModeText: array[TPlayerMode] of string;
     190
    188191const
    189   PlayerModeText: array[TPlayerMode] of string = ('Human', 'Computer');
    190192  clOrange = $009Aff;
    191193  PlayerColors: array[0..7] of TColor = (clBlue, clRed, clGreen, clOrange,
    192194    clPurple, clMaroon, clAqua, clFuchsia);
    193195
     196procedure InitStrings;
     197
    194198
    195199implementation
     
    197201resourcestring
    198202  SMinimumPlayers = 'You need at least two players';
     203  SHuman = 'Human';
     204  SComputer = 'Computer';
     205
     206procedure InitStrings;
     207begin
     208  PlayerModeText[pmHuman] := SHuman;
     209  PlayerModeText[pmComputer] := SComputer;
     210end;
    199211
    200212function FloatPoint(AX, AY: Double): TFloatPoint;
Note: See TracChangeset for help on using the changeset viewer.