- Timestamp:
- Apr 24, 2024, 11:19:11 AM (8 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AI/StdAI/Barbarina.pas
r549 r554 1829 1829 (RO.Treaty[Nation] > trPeace) then 1830 1830 begin 1831 DebugMessage(1, 'End alliance/friendly contact with P' + char(48 + Nation));1831 DebugMessage(1, 'End alliance/friendly contact with P' + Char(48 + Nation)); 1832 1832 NegoCause := CancelTreaty; 1833 1833 Result := True; -
trunk/Graphics/System.grs
r314 r554 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <GraphicSet> 3 <ImageFileName>System.png</ImageFileName> 3 4 <Items> 4 5 <Item> -
trunk/Graphics/System2.grs
r417 r554 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <GraphicSet> 3 <ImageFileName>System2.png</ImageFileName> 3 4 <Items> 4 5 <Item> -
trunk/Graphics/Templates.grs
r318 r554 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <GraphicSet> 3 <ImageFileName>Templates.png</ImageFileName> 3 4 <Items> 4 5 <Item> … … 43 44 <Width>17</Width> 44 45 <Height>17</Height> 45 </Item> 46 </Item> 46 47 <Item> 47 48 <Name>Research</Name> … … 50 51 <Width>36</Width> 51 52 <Height>36</Height> 52 </Item> 53 </Item> 53 54 <Item> 54 55 <Name>Change</Name> … … 57 58 <Width>14</Width> 58 59 <Height>14</Height> 59 </Item> 60 </Item> 60 61 <Item> 61 62 <Name>Treasury</Name> … … 64 65 <Width>36</Width> 65 66 <Height>36</Height> 66 </Item> 67 </Item> 67 68 <Item> 68 69 <Name>StarshipDeparted</Name> … … 71 72 <Width>140</Width> 72 73 <Height>120</Height> 73 </Item> 74 </Item> 74 75 <Item> 75 76 <Name>WeightOff</Name> … … 78 79 <Width>18</Width> 79 80 <Height>20</Height> 80 </Item> 81 </Item> 81 82 <Item> 82 83 <Name>WeightOn</Name> … … 85 86 <Width>18</Width> 86 87 <Height>20</Height> 87 </Item> 88 </Item> 88 89 </Items> 89 90 </GraphicSet> -
trunk/LocalPlayer/Enhance.lfm
- Property svn:mime-type deleted
-
trunk/LocalPlayer/MessgEx.pas
r530 r554 30 30 procedure Button2Click(Sender: TObject); 31 31 procedure Button3Click(Sender: TObject); 32 procedure FormKeyPress(Sender: TObject; var Key: char);32 procedure FormKeyPress(Sender: TObject; var Key: Char); 33 33 procedure FormClose(Sender: TObject; var Action: TCloseAction); 34 34 procedure RemoveBtnClick(Sender: TObject); … … 474 474 end; 475 475 476 procedure TMessgExDlg.FormKeyPress(Sender: TObject; var Key: char);476 procedure TMessgExDlg.FormKeyPress(Sender: TObject; var Key: Char); 477 477 begin 478 478 if Key = #13 then -
trunk/Messg.pas
r471 r554 25 25 procedure Button1Click(Sender: TObject); 26 26 procedure Button2Click(Sender: TObject); 27 procedure FormKeyPress(Sender: TObject; var Key: char);27 procedure FormKeyPress(Sender: TObject; var Key: Char); 28 28 public 29 29 Kind: TMessageKind; … … 93 93 end; 94 94 95 procedure TMessgDlg.FormKeyPress(Sender: TObject; var Key: char);95 procedure TMessgDlg.FormKeyPress(Sender: TObject; var Key: Char); 96 96 begin 97 97 if Key = #13 then -
trunk/Packages/CevoComponents/ButtonA.pas
r548 r554 9 9 type 10 10 TButtonA = class(TButtonBase) 11 constructor Create( aOwner: TComponent); override;11 constructor Create(AOwner: TComponent); override; 12 12 private 13 13 FCaption: string; 14 procedure SetCaption(Text: string); override;15 14 procedure SetFont(const Font: TFont); 16 15 protected 16 procedure SetCaption(Text: string); override; 17 17 procedure Paint; override; 18 18 public … … 34 34 end; 35 35 36 constructor TButtonA.Create( aOwner: TComponent);36 constructor TButtonA.Create(AOwner: TComponent); 37 37 begin 38 38 inherited; -
trunk/Packages/CevoComponents/ButtonB.pas
r531 r554 9 9 type 10 10 TButtonB = class(TButtonBase) 11 constructor Create( aOwner: TComponent); override;11 constructor Create(AOwner: TComponent); override; 12 12 private 13 13 FMask: TBitmap; … … 37 37 end; 38 38 39 constructor TButtonB.Create( aOwner: TComponent);39 constructor TButtonB.Create(AOwner: TComponent); 40 40 begin 41 41 inherited; -
trunk/Packages/CevoComponents/ButtonBase.pas
r531 r554 32 32 procedure SetGraphic(AValue: TBitmap); 33 33 public 34 constructor Create( aOwner: TComponent); override;34 constructor Create(AOwner: TComponent); override; 35 35 property Graphic: TBitmap read FGraphic write SetGraphic; 36 36 // property DownSound: string read FDownSound write FDownSound; … … 50 50 // MMSystem; 51 51 52 constructor TButtonBase.Create( aOwner: TComponent);52 constructor TButtonBase.Create(AOwner: TComponent); 53 53 begin 54 54 inherited; -
trunk/Packages/CevoComponents/ButtonC.pas
r531 r554 8 8 type 9 9 TButtonC = class(TButtonBase) 10 constructor Create( aOwner: TComponent); override;10 constructor Create(AOwner: TComponent); override; 11 11 private 12 12 FIndex: Integer; … … 30 30 end; 31 31 32 constructor TButtonC.Create( aOwner: TComponent);32 constructor TButtonC.Create(AOwner: TComponent); 33 33 begin 34 34 inherited; -
trunk/Packages/CevoComponents/ButtonN.pas
r531 r554 9 9 type 10 10 TButtonN = class(TGraphicControl) 11 constructor Create( aOwner: TComponent); override;11 constructor Create(AOwner: TComponent); override; 12 12 private 13 13 FPossible, FLit: Boolean; … … 45 45 end; 46 46 47 constructor TButtonN.Create( aOwner: TComponent);47 constructor TButtonN.Create(AOwner: TComponent); 48 48 begin 49 49 inherited; -
trunk/Packages/CevoComponents/CevoComponents.lpk
r548 r554 37 37 <Description Value="C-evo components"/> 38 38 <Version Major="1" Minor="2"/> 39 <Files Count="1 6">39 <Files Count="17"> 40 40 <Item1> 41 41 <Filename Value="Area.pas"/> … … 104 104 <Item15> 105 105 <Filename Value="GraphicSet.pas"/> 106 <HasRegisterProc Value="True"/> 106 107 <UnitName Value="GraphicSet"/> 107 108 </Item15> … … 110 111 <UnitName Value="Texture"/> 111 112 </Item16> 113 <Item17> 114 <Filename Value="ButtonG.pas"/> 115 <HasRegisterProc Value="True"/> 116 <UnitName Value="ButtonG"/> 117 </Item17> 112 118 </Files> 113 119 <CompatibilityMode Value="True"/> -
trunk/Packages/CevoComponents/CevoComponents.pas
r456 r554 10 10 uses 11 11 Area, ButtonA, ButtonB, ButtonC, ButtonN, EOTButton, ButtonBase, DrawDlg, 12 Sound, BaseWin, AsyncProcess2, GraphicSet, Texture, LazarusPackageIntf; 12 Sound, BaseWin, AsyncProcess2, GraphicSet, Texture, ButtonG, 13 LazarusPackageIntf; 13 14 14 15 implementation … … 24 25 RegisterUnit('DrawDlg', @DrawDlg.Register); 25 26 RegisterUnit('BaseWin', @BaseWin.Register); 27 RegisterUnit('GraphicSet', @GraphicSet.Register); 28 RegisterUnit('ButtonG', @ButtonG.Register); 26 29 end; 27 30 -
trunk/Packages/CevoComponents/DrawDlg.pas
r531 r554 132 132 MousePos2: TPoint; 133 133 {$IFDEF UNIX} 134 MousePosNew: TPoint;135 134 NewFormPos: TPoint; 136 135 {$ENDIF} … … 149 148 MoveMousePos := ClientToScreen(Point(X, Y)); 150 149 MoveFormPos := Point(Left, Top); 151 MousePosNew := Mouse.CursorPos;152 150 // Activate move only if mouse position was not changed during inherited call 153 151 if (MousePos1.X = MousePos2.X) and (MousePos1.Y = MousePos2.Y) then begin -
trunk/Packages/CevoComponents/EOTButton.pas
r533 r554 25 25 procedure Paint; override; 26 26 public 27 constructor Create( aOwner: TComponent); override;27 constructor Create(AOwner: TComponent); override; 28 28 destructor Destroy; override; 29 29 procedure SetButtonIndexFast(X: Integer); -
trunk/Packages/CevoComponents/GraphicSet.pas
r471 r554 43 43 { TGraphicSet } 44 44 45 TGraphicSet = class 45 TGraphicSet = class(TComponent) 46 public 46 47 Name: string; 47 48 Data: TBitmap; … … 53 54 procedure LoadFromFile(FileName: string); 54 55 procedure SaveToFile(FileName: string); 55 constructor Create ;56 constructor Create(AOwner: TComponent); override; 56 57 destructor Destroy; override; 57 58 end; … … 71 72 GraphicSetFileExt = '.grs'; 72 73 74 procedure Register; 75 73 76 74 77 implementation … … 77 80 SWrongFileFormat = 'Wrong file format.'; 78 81 SGraphicItemNotFound = 'Graphic item %s not found in graphic set %s.'; 82 83 procedure Register; 84 begin 85 RegisterComponents('C-evo', [TGraphicSet]); 86 end; 79 87 80 88 { TGraphicSetItem } … … 227 235 end; 228 236 229 constructor TGraphicSet.Create; 230 begin 237 constructor TGraphicSet.Create(AOwner: TComponent); 238 begin 239 inherited; 231 240 Data := TBitmap.Create; 232 241 Data.PixelFormat := TPixelFormat.pf24bit; … … 259 268 function TGraphicSets.AddNew(Name: string): TGraphicSet; 260 269 begin 261 Result := TGraphicSet.Create ;270 Result := TGraphicSet.Create(nil); 262 271 Result.Name := Name; 263 272 Add(Result); -
trunk/Packages/Common/Common.pas
r531 r554 185 185 var 186 186 SHFileOpStruct: TSHFileOpStruct; 187 DirBuf: array [0..255] of char;187 DirBuf: array [0..255] of Char; 188 188 begin 189 189 DirName := UTF8Decode(DirName); -
trunk/Start.pas
r533 r554 60 60 ReplayBtn: TButtonB; 61 61 procedure ListKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); 62 procedure ListKeyPress(Sender: TObject; var Key: char);62 procedure ListKeyPress(Sender: TObject; var Key: Char); 63 63 procedure StartBtnClick(Sender: TObject); 64 64 procedure FormPaint(Sender: TObject); … … 1063 1063 end; 1064 1064 1065 procedure TStartDlg.ListKeyPress(Sender: TObject; var Key: char);1065 procedure TStartDlg.ListKeyPress(Sender: TObject; var Key: Char); 1066 1066 begin 1067 1067 if Key = #13 then StartBtnClick(Sender);
Note:
See TracChangeset
for help on using the changeset viewer.