Changeset 63 for trunk/Forms


Ignore:
Timestamp:
Jan 5, 2023, 11:03:33 PM (23 months ago)
Author:
chronos
Message:
  • Added: Snap package definition.
Location:
trunk/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.lfm

    r62 r63  
    8282        Action = AFullScreen
    8383      end
     84      object MenuItem8: TMenuItem
     85        Action = AShowRawImageDesc
     86      end
    8487    end
    8588    object MenuItem7: TMenuItem
     
    112115      OnExecute = ANewGameExecute
    113116      ShortCut = 16462
     117      Visible = False
    114118    end
    115119    object AShowMap: TAction
     
    117121      OnExecute = AShowMapExecute
    118122      ShortCut = 123
     123      Visible = False
    119124    end
    120125    object AAbout: TAction
     
    125130      Caption = 'Show RawImage Description'
    126131      OnExecute = AShowRawImageDescExecute
     132      Visible = False
    127133    end
    128134  end
  • trunk/Forms/UFormMain.pas

    r62 r63  
    3131    MenuItem6: TMenuItem;
    3232    MenuItem7: TMenuItem;
     33    MenuItem8: TMenuItem;
    3334    MenuItem9: TMenuItem;
    3435    StatusBar1: TStatusBar;
     
    137138  {$IFDEF DEBUG}
    138139  StatusBar1.Visible := not FullScreenEnabled;
     140  AShowMap.Visible := True;
     141  ANewGame.Visible := True;
     142  AShowRawImageDesc.Visible := True;
    139143  {$ENDIF}
    140144end;
     
    148152begin
    149153  XMLConfig1.Filename := GetAppConfigDir(False) + 'Config.xml';
     154  FullScreenEnabled := True;
    150155
    151156  PersistentForm := TPersistentForm.Create(nil);
     
    244249  PersistentForm.Load(Self, False, True);
    245250  FullScreenEnabled := PersistentForm.FormFullScreen;
    246   UpdateInterface
     251  PersistentForm.SetFullScreen(FullScreenEnabled);
     252  UpdateInterface;
    247253end;
    248254
Note: See TracChangeset for help on using the changeset viewer.