Changeset 731
- Timestamp:
- Jan 17, 2026, 9:14:41 AM (6 hours ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
Integrated.lpr (modified) (1 diff)
-
LocalPlayer/Term.pas (modified) (7 diffs)
-
Log.pas (modified) (1 diff)
-
NoTerm.lfm (modified) (1 diff)
-
NoTerm.pas (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Integrated.lpr
r725 r731 38 38 Application.CreateForm(TStartDlg, StartDlg); 39 39 Application.CreateForm(TBackground, Background); 40 Application.CreateForm(TLogDlg, LogDlg);41 40 Application.Run; 42 41 ScreenTools.UnitDone; -
trunk/LocalPlayer/Term.pas
r716 r731 13 13 Protocol, Tribes, PVSB, ClientTools, ScreenTools, BaseWin, Messg, ButtonBase, 14 14 LCLIntf, LCLType, Menus, SysUtils, Classes, DrawDlg, Types, Math, 15 DateUtils, Platform, ButtonB, ButtonC, EOTButton, Area, Help, 15 DateUtils, Platform, ButtonB, ButtonC, EOTButton, Area, Help, Log, 16 16 GraphicSet, MiniMap, IsoEngine, Wonders, TechTree, Enhance, Nego, CityType, 17 17 Diagram, CityScreen, Rates, Battle, NatStat, UnitStat, Draft, Select, MessgEx, … … 357 357 FMessgExDlg: TMessgExDlg; 358 358 FHelpDlg: THelpDlg; 359 FLogDlg: TLogDlg; 359 360 procedure ProcessMessagesWithDisabledKeyboard; 360 361 procedure ResizeControls; … … 363 364 function ChooseUnusedTribe: Integer; 364 365 function DoJob(j0: Integer): Integer; 366 function GetLogDlg: TLogDlg; 365 367 function GetBattleDlg: TBattleDlg; 366 368 function GetCityDlg: TCityDlg; … … 470 472 property MessgExDlg: TMessgExDlg read GetMessgExDlg; 471 473 property HelpDlg: THelpDlg read GetHelpDlg; 474 property LogDlg: TLogDlg read GetLogDlg; 472 475 end; 473 476 … … 661 664 662 665 uses 663 Directories, Log,Sound, Registry, Global, KeyBindings, CmdList, Music;666 Directories, Sound, Registry, Global, KeyBindings, CmdList, Music; 664 667 665 668 {$R *.lfm} … … 3642 3645 if Assigned(FMessgExDlg) then FreeAndNil(FMessgExDlg); 3643 3646 if Assigned(FHelpDlg) then FreeAndNil(FHelpDlg); 3647 if Assigned(FLogDlg) then FreeAndNil(FLogDlg); 3644 3648 3645 3649 MainFormKeyDown := nil; … … 6566 6570 end; 6567 6571 {$ENDIF} 6572 end; 6573 6574 function TMainScreen.GetLogDlg: TLogDlg; 6575 begin 6576 if not Assigned(FLogDlg) then FLogDlg := TLogDlg.Create(nil); 6577 Result := FLogDlg; 6568 6578 end; 6569 6579 -
trunk/Log.pas
r531 r731 33 33 Shift: TShiftState; X, Y: Integer); 34 34 procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); 35 private 36 MaxLevel: Integer; 35 37 public 36 38 Host: TForm; 37 39 procedure Add(Level, Turn: Integer; Text: PChar); 38 private39 MaxLevel: Integer;40 40 end; 41 42 var43 LogDlg: TLogDlg;44 41 45 42 -
trunk/NoTerm.lfm
r629 r731 13 13 Font.Name = 'MS Sans Serif' 14 14 OnCreate = FormCreate 15 OnDestroy = FormDestroy 15 16 OnKeyDown = FormKeyDown 16 17 OnPaint = FormPaint -
trunk/NoTerm.pas
r725 r731 6 6 uses 7 7 ScreenTools, Protocol, Messg, LCLIntf, LCLType, DateUtils, Platform, 8 SysUtils, Classes, ButtonB, DrawDlg, 8 SysUtils, Classes, ButtonB, DrawDlg, Log, 9 9 {$IFDEF DPI}Dpi.Graphics, Dpi.Controls, Dpi.Forms, Dpi.Common, System.UITypes{$ELSE} 10 10 Graphics, Controls, Forms{$ENDIF}; … … 12 12 type 13 13 TRunMode = (rmStop, rmStopped, rmRunning, rmQuit); 14 15 { TNoTermDlg } 14 16 15 17 TNoTermDlg = class(TDrawDlg) … … 20 22 procedure FormPaint(Sender: TObject); 21 23 procedure FormCreate(Sender: TObject); 24 procedure FormDestroy(Sender: TObject); 22 25 procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); 26 private 27 function GetLogDlg: TLogDlg; 23 28 public 24 29 procedure Client(Command, Player: Integer; var Data); … … 43 48 TimeStat: array [0 .. nPl - 1] of Extended; 44 49 Mode: TRunMode; 50 FLogDlg: TLogDlg; 45 51 procedure NewStat; 46 52 procedure EndPlaying; 47 53 procedure ShowActive(P: Integer; Active: Boolean); 48 54 procedure ShowYear; 55 property LogDlg: TLogDlg read GetLogDlg; 49 56 end; 50 57 … … 58 65 59 66 uses 60 GameServer , Log;67 GameServer; 61 68 62 69 {$R *.lfm} … … 95 102 InitButtons; 96 103 LastShowYearTime := 0; 104 end; 105 106 procedure TNoTermDlg.FormDestroy(Sender: TObject); 107 begin 108 if Assigned(FLogDlg) then FreeAndNil(FLogDlg); 97 109 end; 98 110 … … 397 409 end; 398 410 411 function TNoTermDlg.GetLogDlg: TLogDlg; 412 begin 413 if not Assigned(FLogDlg) then FLogDlg := TLogDlg.Create(nil); 414 Result := FLogDlg; 415 end; 416 399 417 initialization 400 418
Note:
See TracChangeset
for help on using the changeset viewer.
