Ignore:
Timestamp:
Sep 22, 2018, 9:37:16 PM (6 years ago)
Author:
chronos
Message:
  • Fixed: Use different interface language if installed as deb Linux package.
  • Fixed: Propagate status bar, toolbar visibilit, and toolbar icons size to client form.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormClient.pas

    r248 r249  
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
    99  UGame, LCLType, Menus, ActnList, ComCtrls, dateutils, XMLConf, DOM, Math,
    10   UGeometry, UGameClient, UGameProtocol, UThreading, UPlayer, UClientGUI;
     10  UGeometry, UGameClient, UGameProtocol, UThreading, UPlayer, UClientGUI, UFormMain;
    1111
    1212const
     
    4444    procedure AGameEndTurnExecute(Sender: TObject);
    4545    procedure AStatusBarVisibleExecute(Sender: TObject);
     46    procedure AStatusBarVisibleUpdate(Sender: TObject);
    4647    procedure ASurrenderExecute(Sender: TObject);
    4748    procedure AToolBarBigIconsExecute(Sender: TObject);
     49    procedure AToolBarBigIconsUpdate(Sender: TObject);
    4850    procedure AToolBarVisibleExecute(Sender: TObject);
     51    procedure AToolBarVisibleUpdate(Sender: TObject);
    4952    procedure AZoomAllExecute(Sender: TObject);
    5053    procedure AZoomInExecute(Sender: TObject);
     
    9295    procedure DoClientDestroy(Sender: TObject);
    9396  public
     97    FormMain: TFormMain;
    9498    procedure LoadConfig(Config: TXmlConfig; Path: string);
    9599    procedure SaveConfig(Config: TXmlConfig; Path: string);
     
    416420begin
    417421  AToolBarBigIcons.Checked := not AToolBarBigIcons.Checked;
     422end;
     423
     424procedure TFormClient.AToolBarBigIconsUpdate(Sender: TObject);
     425begin
    418426  UpdateInterface;
    419427end;
     
    422430begin
    423431  AStatusBarVisible.Checked := not AStatusBarVisible.Checked;
     432  UpdateInterface;
     433end;
     434
     435procedure TFormClient.AStatusBarVisibleUpdate(Sender: TObject);
     436begin
    424437  UpdateInterface;
    425438end;
     
    444457begin
    445458  AToolBarVisible.Checked := not AToolBarVisible.Checked;
     459  UpdateInterface;
     460end;
     461
     462procedure TFormClient.AToolBarVisibleUpdate(Sender: TObject);
     463begin
    446464  UpdateInterface;
    447465end;
Note: See TracChangeset for help on using the changeset viewer.