Changeset 220 for trunk/UCore.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/UCore.pas

    r216 r220  
    1717  TCore = class(TDataModule)
    1818    AAbout: TAction;
     19    AToggleFogOfWar: TAction;
    1920    AShowKeyShortcuts: TAction;
    2021    AGameSave: TAction;
     
    5758    procedure AShowKeyShortcutsExecute(Sender: TObject);
    5859    procedure AShowUnitMovesExecute(Sender: TObject);
     60    procedure AToggleFogOfWarExecute(Sender: TObject);
    5961    procedure CoolTranslator1Translate(Sender: TObject);
    6062    procedure DataModuleCreate(Sender: TObject);
     
    389391end;
    390392
     393procedure TCore.AToggleFogOfWarExecute(Sender: TObject);
     394begin
     395  Game.FogOfWar := not Game.FogOfWar;
     396  Server.DoChange(Self);
     397end;
     398
    391399procedure TCore.CoolTranslator1Translate(Sender: TObject);
    392400begin
Note: See TracChangeset for help on using the changeset viewer.