Changeset 544 for trunk/Brain.pas
- Timestamp:
- Apr 16, 2024, 9:47:10 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Brain.pas
r468 r544 21 21 22 22 TBrain = class 23 private 24 FName: string; 25 function GetName: string; 26 procedure SetName(AValue: string); 27 public 23 28 FileName: string; 24 29 DLLName: string; 25 Name: string;30 LookupName: string; 26 31 Credits: string; { filename and full name } 27 32 hm: TLibHandle; { module handle } … … 39 44 constructor Create; 40 45 destructor Destroy; override; 46 property Name: string read GetName write SetName; 41 47 end; 42 48 … … 58 64 59 65 { TBrain } 66 67 function TBrain.GetName: string; 68 begin 69 if FName <> '' then Result := FName 70 else Result := Phrases.Lookup(LookupName); 71 end; 72 73 procedure TBrain.SetName(AValue: string); 74 begin 75 FName := AValue; 76 end; 60 77 61 78 procedure TBrain.LoadPicture;
Note:
See TracChangeset
for help on using the changeset viewer.