Changeset 28 for trunk/UFormMain.pas


Ignore:
Timestamp:
Mar 3, 2014, 8:53:04 PM (10 years ago)
Author:
chronos
Message:
  • Fixed: Use modified player list from New game. Allow more players then two with different colors.
  • Added: Toolbar for quick access to common actions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UFormMain.pas

    r25 r28  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
    9   UGame, LCLType, Menus, ActnList, ComCtrls, types;
     9  UGame, LCLType, Menus, ActnList, ComCtrls, types, dateutils;
    1010
    1111const
     
    2828    StatusBar1: TStatusBar;
    2929    Timer1: TTimer;
     30    ToolBar1: TToolBar;
     31    ToolButton1: TToolButton;
     32    ToolButton2: TToolButton;
     33    ToolButton3: TToolButton;
     34    ToolButton4: TToolButton;
    3035    procedure FormActivate(Sender: TObject);
    3136    procedure FormCreate(Sender: TObject);
     
    96101var
    97102  NewCaption: string;
     103  DrawStart: TDateTime;
    98104begin
    99105  if RedrawPending then begin
    100106    RedrawPending := False;
     107    DrawStart := Now;
    101108    PaintBox1.Repaint;
     109    StatusBar1.Panels[1].Text := IntToStr(Trunc((Now - DrawStart) / OneMillisecond)) + ' ms';
    102110
    103111    NewCaption := 'xTactics';
Note: See TracChangeset for help on using the changeset viewer.