Changeset 273 for trunk/UCore.pas


Ignore:
Timestamp:
Jan 30, 2019, 8:08:44 AM (6 years ago)
Author:
chronos
Message:
  • Added: Show units shape to see in which cell units are placed.
  • Fixed: Do not place units with zero power in zero power cells.
  • Fixed: Better checks of cell power if cell is without unit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r268 r273  
    9595    DevelMode: Boolean;
    9696    AnimationSpeed: Integer;
    97     ShowCellGrid: Boolean;
     97    CellGridVisible: Boolean;
     98    UnitShapeVisible: Boolean;
    9899    AutoSaveEnabled: Boolean;
    99100    ReopenLastFile: Boolean;
     
    203204  ScaleDPI1.AutoDetect := XMLConfig1.GetValue('DPIAuto', True);
    204205  FormNewTabIndex := XMLConfig1.GetValue('FormNewTabIndex', 0);
    205   ShowCellGrid := XMLConfig1.GetValue('ShowCellGrid', True);
     206  CellGridVisible := XMLConfig1.GetValue('CellGridVisible', True);
     207  UnitShapeVisible := XMLConfig1.GetValue('UnitShapeVisible', False);
    206208end;
    207209
     
    219221  XMLConfig1.SetValue('DPIAuto', ScaleDPI1.AutoDetect);
    220222  XMLConfig1.SetValue('FormNewTabIndex', FormNewTabIndex);
    221   XMLConfig1.SetValue('ShowCellGrid', ShowCellGrid);
     223  XMLConfig1.SetValue('CellGridVisible', CellGridVisible);
     224  XMLConfig1.SetValue('UnitShapeVisible', UnitShapeVisible);
    222225end;
    223226
Note: See TracChangeset for help on using the changeset viewer.