Changeset 447 for trunk/Log.pas


Ignore:
Timestamp:
May 19, 2022, 10:39:34 PM (2 years ago)
Author:
chronos
Message:
  • Modified: Use first capital letter in identifiers.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Log.pas

    r442 r447  
    2727    procedure mClearClick(Sender: TObject);
    2828    procedure mSlotClick(Sender: TObject);
    29     procedure FormKeyDown(Sender: TObject; var Key: word; Shift: TShiftState);
     29    procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
    3030    procedure Toggle(Sender: TObject);
    3131    procedure ListMouseDown(Sender: TObject; Button: TMouseButton;
    3232      Shift: TShiftState; X, Y: Integer);
    33     procedure FormKeyUp(Sender: TObject; var Key: word; Shift: TShiftState);
     33    procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
    3434  public
    3535    Host: TForm;
    36     procedure Add(Level, Turn: Integer; Text: pchar);
     36    procedure Add(Level, Turn: Integer; Text: PChar);
    3737  private
    3838    MaxLevel: Integer;
     
    6161begin
    6262  MaxLevel := TMenuItem(Sender).Tag;
    63   TMenuItem(Sender).Checked := true;
     63  TMenuItem(Sender).Checked := True;
    6464end;
    6565
    66 procedure TLogDlg.Add(Level, Turn: Integer; Text: pchar);
     66procedure TLogDlg.Add(Level, Turn: Integer; Text: PChar);
    6767begin
    6868  if (MaxLevel > 0) and (Level <= MaxLevel) or (Level = 1 shl 16 + 1) and
     
    8989var
    9090  X, Y: Integer;
    91   s: string;
     91  S: string;
    9292begin
    9393  for Y := 0 to 2 do
    9494  begin
    95     s := '| ';
     95    S := '| ';
    9696    for X := 0 to 2 do
    9797      if G.Difficulty[SlotNo[Y, X]] = 0 then
    98         s := s + 'SUP |'
     98        S := S + 'SUP |'
    9999      else if G.Difficulty[SlotNo[Y, X]] < 0 then
    100         s := s + '--- |'
     100        S := S + '--- |'
    101101      else
    102102      begin
     
    104104        begin // check multi control
    105105          if G.Difficulty[SlotNo[Y, X] + 3] >= 0 then
    106             s := s + Tribe[SlotNo[Y, X] + 3].TPhrase('SHORTNAME') + '+';
     106            S := S + Tribe[SlotNo[Y, X] + 3].TPhrase('SHORTNAME') + '+';
    107107          if G.Difficulty[SlotNo[Y, X] + 6] >= 0 then
    108             s := s + Tribe[SlotNo[Y, X] + 6].TPhrase('SHORTNAME') + '+';
     108            S := S + Tribe[SlotNo[Y, X] + 6].TPhrase('SHORTNAME') + '+';
    109109        end;
    110         s := s + Tribe[SlotNo[Y, X]].TPhrase('SHORTNAME') + ' | ';
     110        S := S + Tribe[SlotNo[Y, X]].TPhrase('SHORTNAME') + ' | ';
    111111      end;
    112     List.Lines.Add(s);
     112    List.Lines.Add(S);
    113113  end;
    114114  PostMessage(List.Handle, WM_VSCROLL, SB_BOTTOM, 0);
    115115end;
    116116
    117 procedure TLogDlg.FormKeyDown(Sender: TObject; var Key: word;
     117procedure TLogDlg.FormKeyDown(Sender: TObject; var Key: Word;
    118118  Shift: TShiftState);
    119119begin
     
    134134end;
    135135
    136 procedure TLogDlg.FormKeyUp(Sender: TObject; var Key: word; Shift: TShiftState);
     136procedure TLogDlg.FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
    137137begin
    138138  if Host <> nil then
Note: See TracChangeset for help on using the changeset viewer.