Changeset 220 for trunk/UGameClient.pas


Ignore:
Timestamp:
Jun 10, 2018, 12:18:28 PM (6 years ago)
Author:
chronos
Message:
  • Added: Allow to toggle Fog of war in debug mode from Debug menu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGameClient.pas

    r213 r220  
    4444    procedure DoNextPlayerHandler(Sender: TObject);
    4545    procedure DoNextPlayer;
     46    procedure DoParametersChangedHandler(Sender: TObject);
    4647  public
    4748    Name: string;
     
    172173end;
    173174
     175procedure TClient.DoParametersChangedHandler(Sender: TObject);
     176begin
     177  Synchronize(DoChange);
     178end;
     179
    174180procedure TClient.SetControlPlayer(AValue: TPlayer);
    175181begin
     
    232238  Protocol.OnGameEnd := DoGameEndHandler;
    233239  Protocol.OnNextPlayer := DoNextPlayerHandler;
     240  Protocol.OnParametersChanged := DoParametersChangedHandler;
    234241end;
    235242
Note: See TracChangeset for help on using the changeset viewer.